Table of Contents

Constructor VectorIndexOptions

Namespace
MongoDB.EntityFrameworkCore.Metadata
Assembly
MongoDB.EntityFrameworkCore.dll

VectorIndexOptions(VectorSimilarity, int, VectorQuantization?, int?, int?, IReadOnlyList<string>?)

Atlas Vector Search index options. See How to Index Fields for Vector Search for more information.

public VectorIndexOptions(VectorSimilarity Similarity, int Dimensions, VectorQuantization? Quantization = null, int? HnswMaxEdges = null, int? HnswNumEdgeCandidates = null, IReadOnlyList<string>? FilterPaths = null)

Parameters

Similarity VectorSimilarity

The MongoDB.Driver.VectorSimilarity to use to search for top K-nearest neighbors.

Dimensions int

Number of vector dimensions that Atlas Vector Search enforces at index-time and query-time.

Quantization VectorQuantization?

Type of automatic vector quantization for your vectors.

HnswMaxEdges int?

Maximum number of edges (or connections) that a node can have in the Hierarchical Navigable Small Worlds graph.

HnswNumEdgeCandidates int?

Analogous to numCandidates at query-time, this parameter controls the maximum number of nodes to evaluate to find the closest neighbors to connect to a new node.

FilterPaths IReadOnlyList<string>

Paths to properties that may be used as filters on the entity type or its nested types.

VectorIndexOptions()

Creates an uninitialized Atlas Vector Search index options object.

public VectorIndexOptions()