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

Bug: python radius has no effect #549

Open
3 tasks done
jmif opened this issue Jan 10, 2025 · 1 comment
Open
3 tasks done

Bug: python radius has no effect #549

jmif opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jmif
Copy link

jmif commented Jan 10, 2025

Describe the bug

Whens searching with

res = self.index.search(
    query_value,
    radius=1.5,
)

The results returned do not respect radius, looking at the code it seems that radius isn't passed along. When I try to pass it along I get an error and inspecting the C++ API I don't see radius as a supported param.

Steps to reproduce

  1. Build a basic python index
  2. Search with a radius parameter
  3. Notice that results are returned with higher radius

Expected behavior

Only results within the radius are returned.

USearch version

latest

Operating System

macOS

Hardware architecture

Arm

Which interface are you using?

Python bindings

Contact Details

No response

Are you open to being tagged as a contributor?

  • I am open to being mentioned in the project .git history as a contributor

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
@jmif jmif added the bug Something isn't working label Jan 10, 2025
@ashvardanian
Copy link
Contributor

That's true, @jmif! The radius support was meant to be added in v2, but didn't receive enough interest and has been abandoned. Let me see if we can integrate it in the next major release 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants