Table of Contents

Struct VectorQueryOptions

Namespace
MongoDB.EntityFrameworkCore.Metadata
Assembly
MongoDB.EntityFrameworkCore.dll
public readonly record struct VectorQueryOptions : IEquatable<VectorQueryOptions>
Implements
Inherited Members

Constructors

VectorQueryOptions(string?, int?, bool)

Query options for running an Atlas Vector Search with VectorSearch<TSource, TProperty>(IQueryable<TSource>, Expression<Func<TSource, TProperty>>, Expression<Func<TSource, bool>>, QueryVector, int, VectorQueryOptions?).

Properties

Exact

If true, then an exact ENN search is used, otherwise an approximate ANN search is used. ENN must be used if the number of candidates is omitted.

IndexName

The name of the vector search index to use.

NumberOfCandidates

Number of nearest neighbors to use during the search. Value must be less than or equal to 10000, and greater than or equal to the document limit. We recommend that you specify a number at least 20 times higher than the number of documents to return (limit) to increase accuracy.