DocumentChunk.GetVectorDefinition

DocumentChunk.GetVectorDefinition method

Returns a VectorStoreCollectionDefinition describing the schema of DocumentChunk for use with a vector store collection.

public static VectorStoreCollectionDefinition GetVectorDefinition(int dimensions)
ParameterTypeDescription
dimensionsInt32The number of dimensions of the embedding vector produced by the embedding model.

Return Value

A VectorStoreCollectionDefinition that maps all relevant DocumentChunk properties to their vector store roles.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionThrown when dimensions is less than or equal to zero.

See Also