From 329e6c02191dfaa6e34d59e0898c2a23a1a14a52 Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Thu, 9 Jan 2025 11:16:11 -0500 Subject: [PATCH] Remove superfluous batchingStrategy implementation in CosmosDBVectorStore --- .../ai/vectorstore/cosmosdb/CosmosDBVectorStore.java | 12 ------------ 1 file changed, 12 deletions(-) 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 c56134b87..ec40ee9d2 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 @@ -477,18 +477,6 @@ public class CosmosDBVectorStore extends AbstractObservationVectorStore implemen return this; } - /** - * Sets the batching strategy. - * @param batchingStrategy the strategy to use - * @return the builder instance - * @throws IllegalArgumentException if batchingStrategy is null - */ - public Builder batchingStrategy(BatchingStrategy batchingStrategy) { - Assert.notNull(this.batchingStrategy, "BatchingStrategy must not be null"); - this.batchingStrategy = batchingStrategy; - return this; - } - @Override public CosmosDBVectorStore build() { return new CosmosDBVectorStore(this);