diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc index 2d4e0446f..21a5dfabe 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc @@ -74,7 +74,7 @@ spring.ai.vectorstore.chroma.client.username= spring.ai.vectorstore.chroma.client.password= # Chroma Vector Store collection properties -spring.ai.vectorstore.chroma.store.collection-name= +spring.ai.vectorstore.chroma.collection-name= # Chroma Vector Store configuration properties @@ -116,7 +116,7 @@ You can use the following properties in your Spring Boot configuration to custom |`spring.ai.vectorstore.chroma.client.key-token`| Access token (if configured) | - |`spring.ai.vectorstore.chroma.client.username`| Access username (if configured) | - |`spring.ai.vectorstore.chroma.client.password`| Access password (if configured) | - -|`spring.ai.vectorstore.chroma.store.collection-name`| Collection name | `SpringAiCollection` +|`spring.ai.vectorstore.chroma.collection-name`| Collection name | `SpringAiCollection` |=== [NOTE] diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/upgrade-notes.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/upgrade-notes.adoc index eae7f4f55..2ce99d0b5 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/upgrade-notes.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/upgrade-notes.adoc @@ -1,6 +1,10 @@ [[upgrade-notes]] = Upgrading Notes +== Upgrading to 1.0.0.M2 + +* The configuration prefix for the Chroma Vector Store has been changes from `spring.ai.vectorstore.chroma.store` to `spring.ai.vectorstore.chroma` in order to align with the naming conventions of other vector stores. + == Upgrading to 1.0.0.M1 On our march to release 1.0.0 M1 we have made several breaking changes. Apologies, it is for the best! diff --git a/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreProperties.java b/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreProperties.java index 9b2c8c860..8283cb6ac 100644 --- a/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreProperties.java +++ b/spring-ai-spring-boot-autoconfigure/src/main/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 - 2024 the original author or authors. + * Copyright 2023-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,11 +21,12 @@ import org.springframework.boot.context.properties.ConfigurationProperties; /** * @author Christian Tzolov + * @author Soby Chacko */ @ConfigurationProperties(ChromaVectorStoreProperties.CONFIG_PREFIX) public class ChromaVectorStoreProperties extends CommonVectorStoreProperties { - public static final String CONFIG_PREFIX = "spring.ai.vectorstore.chroma.store"; + public static final String CONFIG_PREFIX = "spring.ai.vectorstore.chroma"; private String collectionName = ChromaVectorStore.DEFAULT_COLLECTION_NAME; diff --git a/spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreAutoConfigurationIT.java b/spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreAutoConfigurationIT.java index d20f14809..14096e313 100644 --- a/spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreAutoConfigurationIT.java +++ b/spring-ai-spring-boot-autoconfigure/src/test/java/org/springframework/ai/autoconfigure/vectorstore/chroma/ChromaVectorStoreAutoConfigurationIT.java @@ -50,7 +50,7 @@ public class ChromaVectorStoreAutoConfigurationIT { .withUserConfiguration(Config.class) .withPropertyValues("spring.ai.vectorstore.chroma.client.host=http://" + chroma.getHost(), "spring.ai.vectorstore.chroma.client.port=" + chroma.getMappedPort(8000), - "spring.ai.vectorstore.chroma.store.collectionName=TestCollection"); + "spring.ai.vectorstore.chroma.collectionName=TestCollection"); @Test public void addAndSearchWithFilters() {