Table of Contents

Class VectorSearchOptions<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Vector search options.

public sealed class VectorSearchOptions<TDocument>

Type Parameters

TDocument

The type of the document.

Inheritance
VectorSearchOptions<TDocument>
Inherited Members

Properties

AutoEmbeddingModelName

The model to for auto-embedding in the query. Must be compatible with the model used to create the index.

Exact

Gets or sets a value indicating if exact nearest neighbor (ENN) is to be used, false by default. If false, approximate nearest neighbor (ANN) is used.

Filter

Gets or sets the filter.

IndexName

Gets or sets the name of the index.

NumberOfCandidates

Gets or sets the number of candidates.