AzureCosmosDBMongoDBKernelBuilderExtensions.AddAzureCosmosDBMongoDBVectorStore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAzureCosmosDBMongoDBVectorStore(IKernelBuilder, AzureCosmosDBMongoDBVectorStoreOptions, String) |
Register a Azure CosmosDB MongoDB IVectorStore with the specified service ID and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is retrieved from the dependency injection container. |
AddAzureCosmosDBMongoDBVectorStore(IKernelBuilder, String, String, AzureCosmosDBMongoDBVectorStoreOptions, String) |
Register a Azure CosmosDB MongoDB IVectorStore with the specified service ID
and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is constructed using the provided |
AddAzureCosmosDBMongoDBVectorStore(IKernelBuilder, AzureCosmosDBMongoDBVectorStoreOptions, String)
Register a Azure CosmosDB MongoDB IVectorStore with the specified service ID and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is retrieved from the dependency injection container.
public static Microsoft.SemanticKernel.IKernelBuilder AddAzureCosmosDBMongoDBVectorStore (this Microsoft.SemanticKernel.IKernelBuilder builder, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStore : Microsoft.SemanticKernel.IKernelBuilder * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStore (builder As IKernelBuilder, Optional options As AzureCosmosDBMongoDBVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The builder to register the IVectorStore on.
Optional options to further configure the IVectorStore.
- serviceId
- String
An optional service id to use as the service key.
Returns
The kernel builder.
Applies to
AddAzureCosmosDBMongoDBVectorStore(IKernelBuilder, String, String, AzureCosmosDBMongoDBVectorStoreOptions, String)
Register a Azure CosmosDB MongoDB IVectorStore with the specified service ID
and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is constructed using the provided connectionString
and databaseName
.
public static Microsoft.SemanticKernel.IKernelBuilder AddAzureCosmosDBMongoDBVectorStore (this Microsoft.SemanticKernel.IKernelBuilder builder, string connectionString, string databaseName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStore : Microsoft.SemanticKernel.IKernelBuilder * string * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreOptions * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStore (builder As IKernelBuilder, connectionString As String, databaseName As String, Optional options As AzureCosmosDBMongoDBVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The builder to register the IVectorStore on.
- connectionString
- String
Connection string required to connect to Azure CosmosDB MongoDB.
- databaseName
- String
Database name for Azure CosmosDB MongoDB.
Optional options to further configure the IVectorStore.
- serviceId
- String
An optional service id to use as the service key.
Returns
The kernel builder.