Skip to content
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

[Feature Request]: query by distance #3249

Open
javixeneize opened this issue Dec 5, 2024 · 1 comment
Open

[Feature Request]: query by distance #3249

javixeneize opened this issue Dec 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@javixeneize
Copy link

Describe the problem

ChromaDB can be configured to return n number of documents, but sometimes the documents dont relate to the query

Describe the proposed solution

It would be good to add an extra parameter to the query method to return documents only when a given similarity is reached. It is, if i set it to return 2 documents, and the distances are 1.05 and 1.78, if i set the new distance parameter to 1.5 for example, it will only return the first document

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@javixeneize javixeneize added the enhancement New feature or request label Dec 5, 2024
@frieda-huang
Copy link

Hi @javixeneize! I agree, it’s a good feature to have. I’ve opened PR #3268 to address it and will wait for the Chroma team’s feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants