Skip to content

Commit 9c35b36

Browse files
sobychackoTheovanKraay
authored andcommitted
Remove the assertion on partition key path in CosmosDBVectorStore constructor
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com> Signed-off-by: Theo van Kraay <theo.van@microsoft.com>
1 parent 5e1fb07 commit 9c35b36

File tree

1 file changed

+0
-1
lines changed
  • vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb

1 file changed

+0
-1
lines changed

vector-stores/spring-ai-azure-cosmos-db-store/src/main/java/org/springframework/ai/vectorstore/cosmosdb/CosmosDBVectorStore.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ protected CosmosDBVectorStore(Builder builder) {
113113
Assert.notNull(builder.cosmosClient, "CosmosClient must not be null");
114114
Assert.hasText(builder.containerName, "Container name must not be empty");
115115
Assert.hasText(builder.databaseName, "Database name must not be empty");
116-
Assert.hasText(builder.partitionKeyPath, "Partition key path must not be empty");
117116

118117
this.cosmosClient = builder.cosmosClient;
119118
this.containerName = builder.containerName;

0 commit comments

Comments
 (0)