Class AzureCosmosDbNoSqlEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.azure.cosmos.nosql.AzureCosmosDbNoSqlEmbeddingStore.Builder
- Enclosing class:
AzureCosmosDbNoSqlEmbeddingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the Azure AI Search API key.build()
Builds a newAzureCosmosDbNoSqlEmbeddingStore
instance with the configured properties.containerName
(String containerName) Sets the container name.cosmosFullTextPolicy
(String cosmosFullTextPolicy) cosmosVectorEmbeddingPolicy
(com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy) databaseName
(String databaseName) Sets the database name.Sets the Cosmos DB endpoint.filterMapper
(AzureCosmosDBNoSqlFilterMapper filterMapper) indexingPolicy
(com.azure.cosmos.models.IndexingPolicy indexingPolicy) partitionKeyPath
(String partitionKeyPath) searchQueryType
(AzureCosmosDBSearchQueryType searchQueryType) tokenCredential
(com.azure.core.credential.TokenCredential tokenCredential) Used to authenticate to Azure OpenAI with Azure Active Directory credentials.vectorStoreThroughput
(int vectorStoreThroughput)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
Sets the Cosmos DB endpoint.- Parameters:
endpoint
- the Cosmos DB endpoint- Returns:
- this builder instance
-
apiKey
Sets the Azure AI Search API key.- Parameters:
apiKey
- The Azure AI Search API key.- Returns:
- builder
-
tokenCredential
public AzureCosmosDbNoSqlEmbeddingStore.Builder tokenCredential(com.azure.core.credential.TokenCredential tokenCredential) Used to authenticate to Azure OpenAI with Azure Active Directory credentials.- Parameters:
tokenCredential
- the credentials to authenticate with Azure Active Directory- Returns:
- builder
-
databaseName
Sets the database name.- Parameters:
databaseName
- the database name- Returns:
- this builder instance
-
containerName
Sets the container name.- Parameters:
containerName
- the container name- Returns:
- this builder instance
-
partitionKeyPath
-
indexingPolicy
public AzureCosmosDbNoSqlEmbeddingStore.Builder indexingPolicy(com.azure.cosmos.models.IndexingPolicy indexingPolicy) -
cosmosVectorEmbeddingPolicy
public AzureCosmosDbNoSqlEmbeddingStore.Builder cosmosVectorEmbeddingPolicy(com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy) -
cosmosFullTextPolicy
-
vectorStoreThroughput
-
searchQueryType
public AzureCosmosDbNoSqlEmbeddingStore.Builder searchQueryType(AzureCosmosDBSearchQueryType searchQueryType) -
filterMapper
public AzureCosmosDbNoSqlEmbeddingStore.Builder filterMapper(AzureCosmosDBNoSqlFilterMapper filterMapper) -
build
Builds a newAzureCosmosDbNoSqlEmbeddingStore
instance with the configured properties.- Returns:
- a new AzureCosmosDbNoSqlEmbeddingStore instance
-