Freigeben über


AzureCosmosDBNoSQLServiceCollectionExtensions.AddAzureCosmosDBNoSQLVectorStore Method

Definition

Overloads

AddAzureCosmosDBNoSQLVectorStore(IServiceCollection, AzureCosmosDBNoSQLVectorStoreOptions, String)

Register an Azure CosmosDB NoSQL IVectorStore with the specified service ID and where the Azure CosmosDB NoSQL Database is retrieved from the dependency injection container.

AddAzureCosmosDBNoSQLVectorStore(IServiceCollection, String, String, AzureCosmosDBNoSQLVectorStoreOptions, String)

Register an Azure CosmosDB NoSQL IVectorStore with the specified service ID and where the Azure CosmosDB NoSQL Database is constructed using the provided connectionString and databaseName.

AddAzureCosmosDBNoSQLVectorStore(IServiceCollection, AzureCosmosDBNoSQLVectorStoreOptions, String)

Register an Azure CosmosDB NoSQL IVectorStore with the specified service ID and where the Azure CosmosDB NoSQL Database is retrieved from the dependency injection container.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureCosmosDBNoSQLVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureCosmosDBNoSQLVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBNoSQLVectorStore (services As IServiceCollection, Optional options As AzureCosmosDBNoSQLVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to register the IVectorStore on.

options
AzureCosmosDBNoSQLVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

Service collection.

Applies to

AddAzureCosmosDBNoSQLVectorStore(IServiceCollection, String, String, AzureCosmosDBNoSQLVectorStoreOptions, String)

Register an Azure CosmosDB NoSQL IVectorStore with the specified service ID and where the Azure CosmosDB NoSQL Database is constructed using the provided connectionString and databaseName.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureCosmosDBNoSQLVectorStore (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string connectionString, string databaseName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreOptions? options = default, string? serviceId = default);
static member AddAzureCosmosDBNoSQLVectorStore : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreOptions * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBNoSQLVectorStore (services As IServiceCollection, connectionString As String, databaseName As String, Optional options As AzureCosmosDBNoSQLVectorStoreOptions = Nothing, Optional serviceId As String = Nothing) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to register the IVectorStore on.

connectionString
String

Connection string required to connect to Azure CosmosDB NoSQL.

databaseName
String

Database name for Azure CosmosDB NoSQL.

options
AzureCosmosDBNoSQLVectorStoreOptions

Optional options to further configure the IVectorStore.

serviceId
String

An optional service id to use as the service key.

Returns

Service collection.

Applies to