Table of Contents

Method HasEdgeOptions

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

HasEdgeOptions(int, int)

Configures Hierarchical Navigable Small Worlds options for ANN searches.

public VectorIndexBuilder<TEntity> HasEdgeOptions(int maxEdges, int numEdgeCandidates)

Parameters

maxEdges int

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

numEdgeCandidates 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.

Returns

VectorIndexBuilder<TEntity>

The same builder instance so that multiple configuration calls can be chained.