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.

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
NameDescription
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
TypeNameDescription
VectorStoreCollection<TKey, TRecord>collection

VectorStoreDestination(VectorStoreCollection<TKey, TRecord>, int)

Declaration
    public VectorStoreDestination(VectorStoreCollection<TKey, TRecord> collection, int batchSize)
Parameters
TypeNameDescription
VectorStoreCollection<TKey, TRecord>collection
intbatchSize

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
TypeDescription
VectorStoreCollection<TKey, TRecord>

Methods

BulkInsertData(TRecord[])

Declaration
    protected override void BulkInsertData(TRecord[] data)
Parameters
TypeNameDescription
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()

Implements