Class AzureCosmosDbNoSqlEmbeddingStore

java.lang.Object
dev.langchain4j.store.embedding.azure.cosmos.nosql.AzureCosmosDbNoSqlEmbeddingStore
All Implemented Interfaces:
EmbeddingStore<TextSegment>

public class AzureCosmosDbNoSqlEmbeddingStore extends Object implements EmbeddingStore<TextSegment>
Implementation of EmbeddingStore that uses Azure Cosmos DB NoSQL API for storing and retrieving embeddings. This store provides vector search capabilities using Cosmos DB's vector search functionality.

You can read more about vector search using Azure Cosmos DB NoSQL here.

  • Constructor Details

    • AzureCosmosDbNoSqlEmbeddingStore

      public AzureCosmosDbNoSqlEmbeddingStore(com.azure.cosmos.CosmosClient cosmosClient, String databaseName, String containerName, com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy, List<com.azure.cosmos.models.CosmosVectorIndexSpec> cosmosVectorIndexes, com.azure.cosmos.models.CosmosContainerProperties containerProperties)
      Creates a new instance of AzureCosmosDbNoSqlEmbeddingStore.
      Parameters:
      cosmosClient - The Cosmos DB client
      databaseName - The name of the database
      containerName - The name of the container
      cosmosVectorEmbeddingPolicy - The vector embedding policy
      cosmosVectorIndexes - The vector indexes
      containerProperties - The container properties
      Throws:
      IllegalArgumentException - if any of the required parameters is null or empty
  • Method Details