AzureCosmosDBNoSQLServiceCollectionExtensions.AddAzureCosmosDBNoSQLVectorStoreRecordCollection 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
| AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(IServiceCollection, String, AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>, String) |
Register an Azure CosmosDB NoSQL Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Azure CosmosDB NoSQL Database is retrieved from the dependency injection container. |
| AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, String, AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>, String) |
Register an Azure CosmosDB NoSQL Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID
and where the Azure CosmosDB NoSQL Database is constructed using the provided |
AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(IServiceCollection, String, AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>, String)
Register an Azure CosmosDB NoSQL Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 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 AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string collectionName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBNoSQLVectorStoreRecordCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBNoSQLVectorStoreRecordCollection(Of TRecord) (services As IServiceCollection, collectionName As String, Optional options As AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Type Parameters
- TRecord
The type of the record.
Parameters
- services
- IServiceCollection
The IServiceCollection to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.
- collectionName
- String
The name of the collection.
Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.
- serviceId
- String
An optional service id to use as the service key.
Returns
Service collection.
Applies to
AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, String, AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>, String)
Register an Azure CosmosDB NoSQL Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 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 AddAzureCosmosDBNoSQLVectorStoreRecordCollection<TRecord>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string collectionName, string connectionString, string databaseName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBNoSQLVectorStoreRecordCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBNoSQL.AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBNoSQLVectorStoreRecordCollection(Of TRecord) (services As IServiceCollection, collectionName As String, connectionString As String, databaseName As String, Optional options As AzureCosmosDBNoSQLVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Type Parameters
- TRecord
The type of the record.
Parameters
- services
- IServiceCollection
The IServiceCollection to register the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 on.
- collectionName
- String
The name of the collection.
- connectionString
- String
Connection string required to connect to Azure CosmosDB NoSQL.
- databaseName
- String
Database name for Azure CosmosDB NoSQL.
Optional options to further configure the Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.
- serviceId
- String
An optional service id to use as the service key.
Returns
Service collection.