-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[ENH] add included
to .get()
& .query()
response
#2044
Conversation
Clarifies behavior when fields like `embeddings` are returned as `None`.
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
6ea9699
to
d8e0bf0
Compare
d8e0bf0
to
5e59276
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great
@@ -1290,6 +1319,8 @@ def test_get_nearest_neighbors_where_n_results_more_than_element(api): | |||
for key in results.keys(): | |||
if key in includes or key == "ids": | |||
assert len(results[key][0]) == 2 | |||
elif key == "included": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh for future reference, this is really a grab bag of tests, we try to pull tests out on-demand, we can leave for now
👏 |
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Ran prettier to fix breakage lint rule breakge in #2044 - New functionality - ... ## Test plan *How are these changes tested?* Lint CI failed, this is a fix - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## 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)?*
Helps clarify behavior when fields like
embeddings
are returned asNone
. Not a breaking change.Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
I didn't see any relevant documentation that needs to be updated.