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: auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-azure-cosmos-db/src/main/java/org/springframework/ai/vectorstore/cosmosdb/autoconfigure/CosmosDBVectorStoreAutoConfiguration.java
Copy file name to clipboardExpand all lines: auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-azure-cosmos-db/src/main/java/org/springframework/ai/vectorstore/cosmosdb/autoconfigure/CosmosDBVectorStoreProperties.java
Copy file name to clipboardExpand all lines: auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-azure-cosmos-db/src/test/java/org/springframework/ai/vectorstore/cosmosdb/autoconfigure/CosmosDBVectorStoreAutoConfigurationIT.java
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
@@ -112,7 +112,7 @@ The following configuration properties are available for the Cosmos DB vector st
112
112
| spring.ai.vectorstore.cosmosdb.vectorStoreThroughput | The throughput for the vector store.
113
113
| spring.ai.vectorstore.cosmosdb.vectorDimensions | The number of dimensions for the vectors.
114
114
| spring.ai.vectorstore.cosmosdb.endpoint | The endpoint for the Cosmos DB.
115
-
| spring.ai.vectorstore.cosmosdb.key | The key for the Cosmos DB.
115
+
| 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
148
148
149
-
The following code demonstrates how to set up the `CosmosDBVectorStore` without relying on auto-configuration:
149
+
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.
150
150
151
151
[source,java]
152
152
----
@@ -155,7 +155,7 @@ public VectorStore vectorStore(ObservationRegistry observationRegistry) {
155
155
// Create the Cosmos DB client
156
156
CosmosAsyncClient cosmosClient = new CosmosClientBuilder()
0 commit comments