-
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
[Bug]: Operator $in and $nin do not exist. #1105
Comments
Please upgrade to 0.4.9. Those operators were released in that version. |
If I understand correctly 0.48 is the current „stable“ release, should the documentation not always feature that version? Is it possible to check the documentation of a specific version? |
Unfortunately we don't have versioned documentation yet. We 100% want to do that. 0.4.9 is the latest stable release. |
Does JavaScript version support the $in and $nin in where operators? The current version is |
@lanvige, PR for JS support is coming soon |
Refs: #1105 ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - JS Client support for $in and $nin ## Test plan *How are these changes tested?* - [x] Tests pass locally `yarn test` for js ## Documentation Changes TBD
chroma v1.8.1 Still running into this error: const vectorDocs = await vectorCollection.get({
where: {
knowledgeBaseId: {
$in: knowledgeBaseIds, // array of strings
},
},
}); Error:
Am i querying it wrong? |
What happened?
The documentation talks about $in and $nin operators here and here
However the
validate_where
function throws:ValueError: Expected where operator to be one of $gt, $gte, $lt, $lte, $ne, $eq, got $nin
Browsing through the code I do not see $in and $nin mentioned anywhere.
Versions
Chroma v0.48, Python 3.11.3, Manjaro Linux
Relevant log output
The text was updated successfully, but these errors were encountered: