Constructor EdgeVectorStoreMediWriter
- Namespace
- Qavren.Edge.Ingestion.DataIngestion
- Assembly
- Qavren.Edge.Ingestion.DataIngestion.dll
EdgeVectorStoreMediWriter(VectorStoreCollection<object, Dictionary<string, object?>>, IEmbeddingGenerator<string, Embedding<float>>, string, IChunkTokenizer?, int, TimeProvider?)
Creates the writer.
public EdgeVectorStoreMediWriter(VectorStoreCollection<object, Dictionary<string, object?>> collection, IEmbeddingGenerator<string, Embedding<float>> generator, string sourceId, IChunkTokenizer? tokenizer = null, int batchSize = 32, TimeProvider? timeProvider = null)
Parameters
collectionVectorStoreCollection<object, Dictionary<string, object>>An SP2 dynamic collection over the ingestion schema — what
EdgeVectorStore.GetDynamicCollectionreturns for BuildDefinition(int, string, bool). Its data table and database are resolved throughGetService, so any other provider's collection is refused.generatorIEmbeddingGenerator<string, Embedding<float>>The embedding generator. Called once per batch, outside any transaction.
sourceIdstringThe source id every row carries; the identity's first input.
tokenizerIChunkTokenizerCounts tokens for chunks that carry no count. Null stores 0 for them.
batchSizeintChunks per embed-and-upsert pair. 32 matches
IngestionOptions.WriteBatchSize.timeProviderTimeProviderStamps
created_utc. Null is the system clock.