Class AzureCosmosDBNoSQLIndexingService
- Namespace
- FoundationaLLM.SemanticKernel.Core.Services.Indexing
- Assembly
- FoundationaLLM.SemanticKernel.Core.dll
Provides vector embedding indexing based on the Azure Cosmos DB NoSQL API.
public class AzureCosmosDBNoSQLIndexingService : IIndexingService
- Inheritance
-
AzureCosmosDBNoSQLIndexingService
- Implements
- Inherited Members
- Extension Methods
Constructors
AzureCosmosDBNoSQLIndexingService(IOptions<AzureCosmosDBNoSQLIndexingServiceSettings>, CosmosClient, ILogger<AzureCosmosDBNoSQLIndexingService>)
Creates a new AzureCosmosDBNoSQLIndexingService instance.
public AzureCosmosDBNoSQLIndexingService(IOptions<AzureCosmosDBNoSQLIndexingServiceSettings> options, CosmosClient cosmosClient, ILogger<AzureCosmosDBNoSQLIndexingService> logger)
Parameters
options
IOptions<AzureCosmosDBNoSQLIndexingServiceSettings>The IOptions<TOptions> providing configuration settings.
cosmosClient
CosmosClientAn instance of the CosmosClient used for completing vectorization-related requests and workspace management.
logger
ILogger<AzureCosmosDBNoSQLIndexingService>The ILogger used for logging.
Methods
IndexEmbeddingsAsync(EmbeddedContent, string)
Adds to a specified index the list of embeddings associated with a content.
public Task<List<string>> IndexEmbeddingsAsync(EmbeddedContent embeddedContent, string indexName)
Parameters
embeddedContent
EmbeddedContentThe EmbeddedContent containind the embeddings to index.
indexName
stringThe name of the index.