-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug]: Inconsistent upsert/update API responses #1466
Comments
Can you assign this to me? |
Of course! Thanks. |
raised PR. #1470 Please review. |
Also noticed that the upsert endpoint returns null since chroma >=0.4.16 instead of true/false. Will #1470 also fix this? |
@ChrisLahaye, I don't think it will. The change you are referring to was introduced way way back in May-23 - https://github.com/chroma-core/chroma/pull/524/files#diff-1782a536c97875ef5659801ed08b6157216affe33150a87e6adbae02844fc56bL209 Returning |
@tazarov Thank you for that information! Great to know that it is the intended behavior and not a bug. The chromadb JavaScript package still uses a promise boolean as return type for the upsert function though. |
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Error response was containing status code and stack massage altered to chroma error to make uniform response to user. followed same logic as add. ## Test plan *How are these changes tested?* To reproduce: https://gist.github.com/tazarov/35539b3a52bd02814edc0b565ec227eb ## Documentation Changes *Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*
Fix for this implemented. Closing |
What happened?
In client/server mode, the API does not return a proper response for
update
andupsert
collection ops when there is a mismatch in embedding and collection dimensions.Versions
Chroma 0.4.18, Python 3.11
Relevant log output
Response for add:
Response for
update
andupsert
:The text was updated successfully, but these errors were encountered: