You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/azure-cosmos-db.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ The following configuration properties are available for the Cosmos DB vector st
118
118
| spring.ai.vectorstore.cosmosdb.vectorStoreThroughput | The throughput for the vector store.
119
119
| spring.ai.vectorstore.cosmosdb.vectorDimensions | The number of dimensions for the vectors.
120
120
| spring.ai.vectorstore.cosmosdb.endpoint | The endpoint for the Cosmos DB.
121
-
| spring.ai.vectorstore.cosmosdb.key | The key for the Cosmos DB.
121
+
| spring.ai.vectorstore.cosmosdb.key | The key for the Cosmos DB (if key is not present, [DefaultAzureCredential](https://learn.microsoft.com/azure/developer/java/sdk/authentication/credential-chains#defaultazurecredential-overview) will be used).
== Setting up Azure Cosmos DB Vector Store without Auto Configuration
154
154
155
-
The following code demonstrates how to set up the `CosmosDBVectorStore` without relying on auto-configuration:
155
+
The following code demonstrates how to set up the `CosmosDBVectorStore` without relying on auto-configuration. [DefaultAzureCredential](https://learn.microsoft.com/azure/developer/java/sdk/authentication/credential-chains#defaultazurecredential-overview) is recommended for authentication to Azure Cosmos DB.
156
156
157
157
[source,java]
158
158
----
@@ -161,7 +161,7 @@ public VectorStore vectorStore(ObservationRegistry observationRegistry) {
161
161
// Create the Cosmos DB client
162
162
CosmosAsyncClient cosmosClient = new CosmosClientBuilder()
0 commit comments