Class AzureCosmosDBNoSqlMemoryStore.Builder
java.lang.Object
dev.langchain4j.store.memory.azure.cosmos.nosql.AzureCosmosDBNoSqlMemoryStore.Builder
- Enclosing class:
AzureCosmosDBNoSqlMemoryStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the Azure AI Search API key.build()
containerName
(String containerName) Sets the container name.databaseName
(String databaseName) Sets the database name.Sets the Cosmos DB endpoint.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 AzureCosmosDBNoSqlMemoryStore.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
-
vectorStoreThroughput
-
build
-