Table of Contents

Constructor CreateVectorSearchIndexModelBase

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

CreateVectorSearchIndexModelBase(FieldDefinition<TDocument>, string, params FieldDefinition<TDocument>[])

Initializes a new instance of the CreateVectorSearchIndexModelBase<TDocument> class for a vector index where the vector embeddings are created manually. The required options for VectorSimilarity and the number of vector dimensions are passed to the constructor.

protected CreateVectorSearchIndexModelBase(FieldDefinition<TDocument> field, string name, params FieldDefinition<TDocument>[] filterFields)

Parameters

field FieldDefinition<TDocument>

The field containing the vectors to index.

name string

The index name.

filterFields FieldDefinition<TDocument>[]

Fields that may be used as filters in the vector query.