Share via


AzureCosmosDBNoSQLMemoryStore Constructors

Definition

Overloads

AzureCosmosDBNoSQLMemoryStore(CosmosClient, String, VectorEmbeddingPolicy, IndexingPolicy)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a CosmosClient instance and other properties required for vector search.

AzureCosmosDBNoSQLMemoryStore(String, String, VectorEmbeddingPolicy, IndexingPolicy, String)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a Azure Cosmos DB connection string and other properties required for vector search.

AzureCosmosDBNoSQLMemoryStore(String, String, UInt64, VectorDataType, VectorIndexType, String)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a Azure Cosmos DB connection string and other properties required for vector search.

AzureCosmosDBNoSQLMemoryStore(CosmosClient, String, VectorEmbeddingPolicy, IndexingPolicy)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a CosmosClient instance and other properties required for vector search.

public AzureCosmosDBNoSQLMemoryStore (Microsoft.Azure.Cosmos.CosmosClient cosmosClient, string databaseName, Microsoft.Azure.Cosmos.VectorEmbeddingPolicy vectorEmbeddingPolicy, Microsoft.Azure.Cosmos.IndexingPolicy indexingPolicy);
new Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore : Microsoft.Azure.Cosmos.CosmosClient * string * Microsoft.Azure.Cosmos.VectorEmbeddingPolicy * Microsoft.Azure.Cosmos.IndexingPolicy -> Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore
Public Sub New (cosmosClient As CosmosClient, databaseName As String, vectorEmbeddingPolicy As VectorEmbeddingPolicy, indexingPolicy As IndexingPolicy)

Parameters

cosmosClient
CosmosClient

An existing CosmosClient to use. NOTE: This must support serializing with System.Text.Json, not the default Cosmos serializer.

databaseName
String

The database name to operate against.

vectorEmbeddingPolicy
Microsoft.Azure.Cosmos.VectorEmbeddingPolicy

The Microsoft.Azure.Cosmos.VectorEmbeddingPolicy to use if a collection is created. NOTE that embeddings will be stored in a property named 'embedding'.

indexingPolicy
IndexingPolicy

The IndexingPolicy to use if a collection is created. NOTE that embeddings will be stored in a property named 'embedding'.

Applies to

AzureCosmosDBNoSQLMemoryStore(String, String, VectorEmbeddingPolicy, IndexingPolicy, String)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a Azure Cosmos DB connection string and other properties required for vector search.

public AzureCosmosDBNoSQLMemoryStore (string connectionString, string databaseName, Microsoft.Azure.Cosmos.VectorEmbeddingPolicy vectorEmbeddingPolicy, Microsoft.Azure.Cosmos.IndexingPolicy indexingPolicy, string? applicationName = default);
new Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore : string * string * Microsoft.Azure.Cosmos.VectorEmbeddingPolicy * Microsoft.Azure.Cosmos.IndexingPolicy * string -> Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore
Public Sub New (connectionString As String, databaseName As String, vectorEmbeddingPolicy As VectorEmbeddingPolicy, indexingPolicy As IndexingPolicy, Optional applicationName As String = Nothing)

Parameters

connectionString
String

Connection string required to connect to Azure Cosmos DB.

databaseName
String

The database name to connect to.

vectorEmbeddingPolicy
Microsoft.Azure.Cosmos.VectorEmbeddingPolicy

The Microsoft.Azure.Cosmos.VectorEmbeddingPolicy to use if a collection is created. NOTE that embeddings will be stored in a property named 'embedding'.

indexingPolicy
IndexingPolicy

The IndexingPolicy to use if a collection is created. NOTE that embeddings will be stored in a property named 'embedding'.

applicationName
String

The application name to use in requests.

Applies to

AzureCosmosDBNoSQLMemoryStore(String, String, UInt64, VectorDataType, VectorIndexType, String)

Initiates a AzureCosmosDBNoSQLMemoryStore instance using a Azure Cosmos DB connection string and other properties required for vector search.

public AzureCosmosDBNoSQLMemoryStore (string connectionString, string databaseName, ulong dimensions, Microsoft.Azure.Cosmos.VectorDataType vectorDataType, Microsoft.Azure.Cosmos.VectorIndexType vectorIndexType, string? applicationName = default);
new Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore : string * string * uint64 * Microsoft.Azure.Cosmos.VectorDataType * Microsoft.Azure.Cosmos.VectorIndexType * string -> Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLMemoryStore
Public Sub New (connectionString As String, databaseName As String, dimensions As ULong, vectorDataType As VectorDataType, vectorIndexType As VectorIndexType, Optional applicationName As String = Nothing)

Parameters

connectionString
String

Connection string required to connect to Azure Cosmos DB.

databaseName
String

The database name to connect to.

dimensions
UInt64

The number of dimensions the embedding vectors to be stored.

vectorDataType
Microsoft.Azure.Cosmos.VectorDataType

The data type of the embedding vectors to be stored.

vectorIndexType
Microsoft.Azure.Cosmos.VectorIndexType

The type of index to use for the embedding vectors to be stored.

applicationName
String

The application name to use in requests.

Applies to