chromaDb usually keeps it as default_tenant and default_database, for the tenant and database. This should be the same in Spring AI.
Otherwise, allow overriding through application properties. Like - spring.ai.vectorstore.chroma.client.tenant=default_tenant spring.ai.vectorstore.chroma.client.database=default_database
Current Behavior
At present, public static final String DEFAULT_TENANT_NAME = "SpringAiTenant"; public static final String DEFAULT_DATABASE_NAME = "SpringAiDatabase";
not able to override through application properties.
Even the logs are misleading somehow-
log:
Collection
Log does not mention the tenant or database under which it is trying to search the collection.
Context
Comment From: sunyuhan1998
May I ask what version of Spring AI you are using? PR: https://github.com/spring-projects/spring-ai/pull/3435 seems to have fixed this issue.
Comment From: AmritSDutta
'springAiVersion', "1.0.0"
Not sure what is fixed . Is it possible to override like following?
spring.ai.vectorstore.chroma.database-name=default_database spring.ai.vectorstore.chroma.tenant-name=default_tenant
Comment From: sunyuhan1998
'springAiVersion', "1.0.0"
Not sure what is fixed . Is it possible to override like following?
spring.ai.vectorstore.chroma.database-name=default_database spring.ai.vectorstore.chroma.tenant-name=default_tenant
I think this PR fixes the issue you are talking about, but it should not be included in the Spring AI 1.0.0 GA version, maybe you could err on the side of upgrading to the latest 1.1.0-SNAPSHOT version!