Method BuildDefinition
BuildDefinition(int, string, bool)
Builds the chunk collection's definition programmatically — no attributed record type, no reflection, so the dimension is a runtime value and 384-dim MiniLM and 768-dim nomic share one code path.
The vector property is declared ReadOnlyMemory<T> of float,
not a string source, because SP3 resolves every vector itself (spec 9.5
step a1). That single decision is what makes EmbedCalls countable and 6206 separable
from 6207.
public static VectorStoreCollectionDefinition BuildDefinition(int dimensions, string distanceFunction, bool fullTextIndexed)
Parameters
dimensionsintThe vector width.
distanceFunctionstringOne of MEVD's
DistanceFunctionconstants.fullTextIndexedboolMark
textandheading_pathfull-text indexed.
Returns
- VectorStoreCollectionDefinition
The definition.