From 7b265bffa5f961a5ef29a8e5433f67bb273ca98d Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Thu, 10 Apr 2025 11:33:57 -0400 Subject: [PATCH] Remove the assertion on partition key path in CosmosDBVectorStore constructor Signed-off-by: Soby Chacko --- .../ai/vectorstore/cosmosdb/CosmosDBVectorStore.java | 1 - 1 file changed, 1 deletion(-) diff --git a/vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb/CosmosDBVectorStore.java b/vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb/CosmosDBVectorStore.java index 3a2f3edc3..5d0907b2c 100644 --- a/vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb/CosmosDBVectorStore.java +++ b/vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb/CosmosDBVectorStore.java @@ -107,7 +107,6 @@ public class CosmosDBVectorStore extends AbstractObservationVectorStore implemen Assert.notNull(builder.cosmosClient, "CosmosClient must not be null"); Assert.hasText(builder.containerName, "Container name must not be empty"); Assert.hasText(builder.databaseName, "Database name must not be empty"); - Assert.hasText(builder.partitionKeyPath, "Partition key path must not be empty"); this.cosmosClient = builder.cosmosClient; this.containerName = builder.containerName;