Skip to content

Commit 7b265bf

Browse files
committed
Remove the assertion on partition key path in CosmosDBVectorStore constructor
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
1 parent 923e09a commit 7b265bf

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
@@ -107,7 +107,6 @@ protected CosmosDBVectorStore(Builder builder) {
107107
Assert.notNull(builder.cosmosClient, "CosmosClient must not be null");
108108
Assert.hasText(builder.containerName, "Container name must not be empty");
109109
Assert.hasText(builder.databaseName, "Database name must not be empty");
110-
Assert.hasText(builder.partitionKeyPath, "Partition key path must not be empty");
111110

112111
this.cosmosClient = builder.cosmosClient;
113112
this.containerName = builder.containerName;

0 commit comments

Comments
 (0)