Class VectorStoreDestination<TKey, TRecord>
Writes batches of records into a Microsoft.Extensions.VectorData.VectorStoreCollection<TKey, TRecord>. Embeddings are not created here. Run an embedding transformation before this destination when the record needs a vector.
Inheritance
DataFlowDestination<TRecord>
DataFlowBatchDestination<TRecord>
VectorStoreDestination<TKey, TRecord>
Inherited Members
Namespace: ETLBox.AI
Assembly: ETLBox.AI.dll
Syntax
public class VectorStoreDestination<TKey, TRecord> : DataFlowBatchDestination<TRecord>, IDataFlowBatchDestination<TRecord>, IDataFlowDestination<TRecord>, IDataFlowBatchDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask where TRecord : class
Type Parameters
| Name | Description |
|---|---|
| TKey | Type of the vector store key. |
| TRecord | Type of ingoing records. |
Constructors
VectorStoreDestination()
Declaration
public VectorStoreDestination()VectorStoreDestination(VectorStoreCollection<TKey, TRecord>)
Declaration
public VectorStoreDestination(VectorStoreCollection<TKey, TRecord> collection)Parameters
| Type | Name | Description |
|---|---|---|
| VectorStoreCollection<TKey, TRecord> | collection |
VectorStoreDestination(VectorStoreCollection<TKey, TRecord>, int)
Declaration
public VectorStoreDestination(VectorStoreCollection<TKey, TRecord> collection, int batchSize)Parameters
| Type | Name | Description |
|---|---|---|
| VectorStoreCollection<TKey, TRecord> | collection | |
| int | batchSize |
Properties
Collection
Vector store collection created by the caller from a Microsoft vector store implementation.
Declaration
public VectorStoreCollection<TKey, TRecord> Collection { get; set; }Property Value
| Type | Description |
|---|---|
| VectorStoreCollection<TKey, TRecord> |
Methods
BulkInsertData(TRecord[])
Declaration
protected override void BulkInsertData(TRecord[] data)Parameters
| Type | Name | Description |
|---|---|---|
| TRecord[] | data |
Overrides
ETLBox.DataFlow.DataFlowBatchDestination<TRecord>.BulkInsertData(TRecord[])
CheckParameter()
Declaration
protected override void CheckParameter()Overrides
FinishWrite()
Declaration
protected override void FinishWrite()Overrides
ETLBox.DataFlow.DataFlowBatchDestination<TRecord>.FinishWrite()
PrepareWrite()
Declaration
protected override void PrepareWrite()Overrides
ETLBox.DataFlow.DataFlowBatchDestination<TRecord>.PrepareWrite()