Skip to content

Feature: Search based on distance threshold instead of count #605

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

Closed
2 of 3 tasks
laurenspriem opened this issue May 14, 2025 · 1 comment
Closed
2 of 3 tasks

Feature: Search based on distance threshold instead of count #605

laurenspriem opened this issue May 14, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@laurenspriem
Copy link

Describe what you are looking for

It would be really helpful to have search functionality where we can search for all embeddings withing a certain distance threshold.

The current search api is bit clunky for this, right now I have to set the count parameters purposefully too high and then do a second round filtering to get only the embeddings within my desired range. An alternative search method with a threshold parameter instead of a count parameter would be really helpful.

(I'm using usearch in rust, so would be great if it can also be added to the rust bindings.)

Can you contribute to the implementation?

  • I can contribute

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

laurenspriem

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@laurenspriem laurenspriem added the enhancement New feature or request label May 14, 2025
@ashvardanian
Copy link
Contributor

Hi @laurenspriem! That's a common request. Let's merge it with #549 🤗

@ashvardanian ashvardanian added the duplicate This issue or pull request already exists label Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants