Class AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder
java.lang.Object
dev.langchain4j.store.embedding.azure.cosmos.nosql.AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder
- Enclosing class:
AzureCosmosDbNoSqlEmbeddingStore
public static class AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder
extends Object
Builder for creating
AzureCosmosDbNoSqlEmbeddingStore
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newAzureCosmosDbNoSqlEmbeddingStore
instance with the configured properties.containerName
(String containerName) Sets the container name.containerProperties
(com.azure.cosmos.models.CosmosContainerProperties containerProperties) Sets the container properties.cosmosClient
(com.azure.cosmos.CosmosClient cosmosClient) Sets the Cosmos client.cosmosVectorEmbeddingPolicy
(com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy) Sets the Cosmos vector embedding policy.cosmosVectorIndexes
(List<com.azure.cosmos.models.CosmosVectorIndexSpec> cosmosVectorIndexes) Sets the Cosmos vector indexes.databaseName
(String databaseName) Sets the database name.toString()
-
Method Details
-
cosmosClient
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder cosmosClient(com.azure.cosmos.CosmosClient cosmosClient) Sets the Cosmos client.- Parameters:
cosmosClient
- the Cosmos client- Returns:
- this builder instance
-
databaseName
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder databaseName(String databaseName) Sets the database name.- Parameters:
databaseName
- the database name- Returns:
- this builder instance
-
containerName
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder containerName(String containerName) Sets the container name.- Parameters:
containerName
- the container name- Returns:
- this builder instance
-
cosmosVectorEmbeddingPolicy
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder cosmosVectorEmbeddingPolicy(com.azure.cosmos.models.CosmosVectorEmbeddingPolicy cosmosVectorEmbeddingPolicy) Sets the Cosmos vector embedding policy.- Parameters:
cosmosVectorEmbeddingPolicy
- the vector embedding policy- Returns:
- this builder instance
-
cosmosVectorIndexes
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder cosmosVectorIndexes(List<com.azure.cosmos.models.CosmosVectorIndexSpec> cosmosVectorIndexes) Sets the Cosmos vector indexes.- Parameters:
cosmosVectorIndexes
- the vector indexes- Returns:
- this builder instance
-
containerProperties
public AzureCosmosDbNoSqlEmbeddingStore.AzureCosmosDbNoSqlEmbeddingStoreBuilder containerProperties(com.azure.cosmos.models.CosmosContainerProperties containerProperties) Sets the container properties.- Parameters:
containerProperties
- the container properties- Returns:
- this builder instance
-
build
Builds a newAzureCosmosDbNoSqlEmbeddingStore
instance with the configured properties.- Returns:
- a new AzureCosmosDbNoSqlEmbeddingStore instance
-
toString
-