Microsoft.Extensions.VectorData Namespace

Contains classes and interfaces for vector data operations, including vector search, filtering, indexing, and mapping between storage and data models.

Classes

Name Description
AnyTagEqualToFilterClause

Represents a filter clause that filters by checking if a field consisting of a list of values contains a specific value.

DistanceFunction

Defines a list of well-known distance functions that can be used to compare vectors.

EqualToFilterClause

Represents a filter clause that filters using equality of a field value.

FilterClause

Defines a base class for filter clauses.

FilteredRecordRetrievalOptions.OrderByDefinition.SortInfo

Provides a way to define property ordering.

FilteredRecordRetrievalOptions.OrderByDefinition

Represents a builder for sorting.

FilteredRecordRetrievalOptions

Defines options for calling GetAsync(Expression>, Int32, FilteredRecordRetrievalOptions, CancellationToken).

HybridSearchOptions

Defines options for hybrid search when using a dense vector and string keywords to do the search.

IndexKind

Defines a list of well-known index types that can be used to index vectors.

RecordRetrievalOptions

Defines options for calling GetAsync(TKey, RecordRetrievalOptions, CancellationToken) or GetAsync(IEnumerable, RecordRetrievalOptions, CancellationToken).

VectorSearchOptions

Defines options for vector search via SearchAsync(TInput, Int32, VectorSearchOptions, CancellationToken).

VectorSearchResult

Represents a single search result from a vector search.

VectorStore

Represents a vector store that contains collections of records.

VectorStoreCollection

Represents a named collection of records in a vector store, and can be used to search and manage records, and to create or delete the collection itself.

VectorStoreCollectionDefinition

Describes the properties of a record in a vector store collection.

VectorStoreCollectionMetadata

Provides metadata about an VectorStoreCollection.

VectorStoreCollectionOptions

Defines an abstract base class for options passed to a collection.

VectorStoreDataAttribute

Defines an attribute to mark a property on a record class as 'data'.

VectorStoreDataProperty

Defines a data property on a vector store record.

VectorStoreException

Defines a base exception type for any type of failure when using vector stores.

VectorStoreKeyAttribute

Defines an attribute to mark a property on a record class as the key under which the record is stored in a vector store.

VectorStoreKeyProperty

Defines a key property on a vector store record.

VectorStoreMetadata

Provides metadata about an VectorStore.

VectorStoreProperty

Defines a base property class for properties on a vector store record.

VectorStoreVectorAttribute

Defines an attribute to mark a property on a record class as a vector.

VectorStoreVectorProperty

Defines a vector property on a vector store record.

VectorStoreVectorProperty

Defines a vector property on a vector store record.

Interfaces

Name Description
IKeywordHybridSearchable

Contains a method for performing a hybrid search using a vector and keywords.

IVectorSearchable

Defines an interface for performing vector searches on a vector store.