Skip to content

Correctly set Chroma collection id when initializeSchema set to false #1442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

alexcheng1982
Copy link
Contributor

In the current implementation of ChromaVectorStore, when initializeSchema is set to false, collectionId will be set to null, all Chroma API calls will fail with 404 error due to empty collection id.

I updated the logic of handling initializeSchema. When the collection doesn't exist, if initializeSchema is set to true, the collection will be created. Otherwise, an exception is thrown. This makes sure that collectionId will be correctly set.

@tzolov tzolov added bug Something isn't working vector store chromadb labels Oct 6, 2024
@tzolov tzolov added this to the 1.0.0-M3 milestone Oct 6, 2024
@tzolov tzolov self-assigned this Oct 6, 2024
@tzolov
Copy link
Contributor

tzolov commented Oct 6, 2024

Thank you @alexcheng1982

rebased, squashed and merged at ae743f9

@tzolov tzolov closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chromadb vector store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants