Table of Contents

Class VectorIndexBuilder<TEntity>

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

A fluent builder API for configuring MongoDB vector index options.

public class VectorIndexBuilder<TEntity> : VectorIndexBuilder

Type Parameters

TEntity
Inheritance
VectorIndexBuilder<TEntity>
Inherited Members

Constructors

VectorIndexBuilder(IMutableIndex, VectorIndexOptions)

A fluent builder API for configuring MongoDB vector index options.

Methods

AllowsFiltersOn(string)

Adds the given property to those that can be used to filter in vector queries with this index.

AllowsFiltersOn<TProperty>(Expression<Func<TEntity, TProperty>>)

Adds the given property to those that can be used to filter in vector queries with this index.

HasEdgeOptions(int, int)

Configures Hierarchical Navigable Small Worlds options for ANN searches.

HasQuantization(VectorQuantization?)

Configures Type of automatic vector quantization for your vectors. Use this setting only if your embeddings are float or double vectors.