AzureCosmosDBMongoDBServiceCollectionExtensions.AddAzureCosmosDBMongoDBVectorStoreRecordCollection 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
| AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(IServiceCollection, String, AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>, String) |
Register an Azure CosmosDB MongoDB Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is retrieved from the dependency injection container. |
| AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, String, AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>, String) |
Register an Azure CosmosDB MongoDB Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID
and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is constructed using the provided |
AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(IServiceCollection, String, AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>, String)
Register an Azure CosmosDB MongoDB Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 with the specified service ID and where the Azure CosmosDB MongoDB MongoDB.Driver.IMongoDatabase is retrieved from the dependency injection container.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string collectionName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStoreRecordCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStoreRecordCollection(Of TRecord) (services As IServiceCollection, collectionName As String, Optional options As AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions(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
AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(IServiceCollection, String, String, String, AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>, String)
Register an Azure CosmosDB MongoDB Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2 and Microsoft.Extensions.VectorData.IVectorizedSearch`1 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.Extensions.DependencyInjection.IServiceCollection AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string collectionName, string connectionString, string databaseName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStoreRecordCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStoreRecordCollection(Of TRecord) (services As IServiceCollection, collectionName As String, connectionString As String, databaseName As String, Optional options As AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions(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 MongoDB.
- databaseName
- String
Database name for Azure CosmosDB MongoDB.
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.