Skip to content

Commit da94833

Browse files
authored
fix: Fixed the missing properties in the AutoConfiguration of ChromaVectorStore. (#3435)
Auto-cherry-pick to 1.0.x Signed-off-by: Sun Yuhan <1085481446@qq.com>
1 parent 8af1d39 commit da94833

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-chroma/src/main/java/org/springframework/ai/vectorstore/chroma/autoconfigure/ChromaVectorStoreAutoConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public ChromaVectorStore vectorStore(EmbeddingModel embeddingModel, ChromaApi ch
9595
BatchingStrategy chromaBatchingStrategy) {
9696
return ChromaVectorStore.builder(chromaApi, embeddingModel)
9797
.collectionName(storeProperties.getCollectionName())
98+
.databaseName(storeProperties.getDatabaseName())
99+
.tenantName(storeProperties.getTenantName())
98100
.initializeSchema(storeProperties.isInitializeSchema())
99101
.observationRegistry(observationRegistry.getIfUnique(() -> ObservationRegistry.NOOP))
100102
.customObservationConvention(customObservationConvention.getIfAvailable(() -> null))

0 commit comments

Comments
 (0)