Table of Contents

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

collection VectorStoreCollection<object, Dictionary<string, object>>

An SP2 dynamic collection over the ingestion schema — what EdgeVectorStore.GetDynamicCollection returns for BuildDefinition(int, string, bool). Its data table and database are resolved through GetService, so any other provider's collection is refused.

generator IEmbeddingGenerator<string, Embedding<float>>

The embedding generator. Called once per batch, outside any transaction.

sourceId string

The source id every row carries; the identity's first input.

tokenizer IChunkTokenizer

Counts tokens for chunks that carry no count. Null stores 0 for them.

batchSize int

Chunks per embed-and-upsert pair. 32 matches IngestionOptions.WriteBatchSize.

timeProvider TimeProvider

Stamps created_utc. Null is the system clock.