Skip to content

AutoConfiguration of ChromaVectorStore lacks tenant and database definition #3427

@77fill

Description

@77fill

Bug description
The problem is in auto-configurations/vector-stores/spring-ai-autoconfigure-vector-store-chroma/src/main/java/org/springframework/ai/vectorstore/chroma/autoconfigure/ChromaVectorStoreAutoConfiguration.java

The vectorStore bean definition does not set the tenantName and databaseName (only collectionName).

The necessary values are in storeProperties (just like with collectionName).

(I think these properties are also not documented?)

I found this when my application crashed and the logs showed this URL: http://localhost:8008/api/v2/tenants/SpringAiTenant/databases/SpringAiDatabase/collections/knowledge

The tenant and database are wrong even though I set them in my application.yml

The collection name is correct: 'knowledge'

I think the code should look something like this:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions