Share via


AzureCosmosDBMongoDBVectorStore Class

Definition

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

public sealed class AzureCosmosDBMongoDBVectorStore : Microsoft.SemanticKernel.Data.IVectorStore
type AzureCosmosDBMongoDBVectorStore = class
    interface IVectorStore
Public NotInheritable 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)

Get a collection from the vector store.

ListCollectionNamesAsync(CancellationToken)

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

Applies to