AzureCosmosDBMongoDBKernelBuilderExtensions.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>(IKernelBuilder, 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>(IKernelBuilder, 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>(IKernelBuilder, 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.SemanticKernel.IKernelBuilder AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, Optional options As AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Type Parameters
- TRecord
The type of the record.
Parameters
- builder
- IKernelBuilder
The builder 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
The kernel builder.
Applies to
AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(IKernelBuilder, 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.SemanticKernel.IKernelBuilder AddAzureCosmosDBMongoDBVectorStoreRecordCollection<TRecord>(this Microsoft.SemanticKernel.IKernelBuilder builder, string collectionName, string connectionString, string databaseName, Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<TRecord>? options = default, string? serviceId = default);
static member AddAzureCosmosDBMongoDBVectorStoreRecordCollection : Microsoft.SemanticKernel.IKernelBuilder * string * string * string * Microsoft.SemanticKernel.Connectors.AzureCosmosDBMongoDB.AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions<'Record> * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureCosmosDBMongoDBVectorStoreRecordCollection(Of TRecord) (builder As IKernelBuilder, collectionName As String, connectionString As String, databaseName As String, Optional options As AzureCosmosDBMongoDBVectorStoreRecordCollectionOptions(Of TRecord) = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder
Type Parameters
- TRecord
The type of the record.
Parameters
- builder
- IKernelBuilder
The builder 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
The kernel builder.