Поделиться через


AzureCosmosDBMongoDBVectorStore Class

Definition

Class for accessing the list of collections in a Azure CosmosDB MongoDB vector store.

public class AzureCosmosDBMongoDBVectorStore : Microsoft.Extensions.VectorData.IVectorStore
type AzureCosmosDBMongoDBVectorStore = class
    interface IVectorStore
Public Class AzureCosmosDBMongoDBVectorStore
Implements IVectorStore
Inheritance
AzureCosmosDBMongoDBVectorStore
Implements

Remarks

This class can be used with collections of any schema type, but requires you to provide schema information when getting a collection.

Constructors

AzureCosmosDBMongoDBVectorStore(IMongoDatabase, AzureCosmosDBMongoDBVectorStoreOptions)

Initializes a new instance of the AzureCosmosDBMongoDBVectorStore class.

Methods

GetCollection<TKey,TRecord>(String, VectorStoreRecordDefinition)

Gets a collection from the vector store.

ListCollectionNamesAsync(CancellationToken)

Retrieves the names of all the collections in the vector store.

Applies to