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

[Feat] Expose search with bitset C API for Brute Force #717

Open
wants to merge 3 commits into
base: branch-25.04
Choose a base branch
from

Conversation

rhdong
Copy link
Member

@rhdong rhdong commented Feb 24, 2025

No description provided.

@rhdong rhdong requested a review from a team as a code owner February 24, 2025 16:47
@github-actions github-actions bot added the cpp label Feb 24, 2025
@rhdong rhdong added feature request New feature or request non-breaking Introduces a non-breaking change labels Feb 24, 2025
@rhdong rhdong requested a review from benfred February 25, 2025 00:00
Copy link
Member

@benfred benfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great - thanks for submitting!

Can we get this exposed to python as well? This might only involve updating the documentation and adding a unittest (and since cagra/ivf-flat share the same test

@pytest.mark.parametrize("sparsity", [0.5, 0.7, 1.0])
def test_filtered_ivf_flat(sparsity):
run_filtered_search_test(ivf_flat, sparsity)
adding the unittest will hopefully be pretty easy)

@rhdong rhdong requested a review from a team as a code owner February 28, 2025 01:09
@rhdong
Copy link
Member Author

rhdong commented Feb 28, 2025

This PR looks great - thanks for submitting!

Can we get this exposed to python as well? This might only involve updating the documentation and adding a unittest (and since cagra/ivf-flat share the same test

@pytest.mark.parametrize("sparsity", [0.5, 0.7, 1.0])
def test_filtered_ivf_flat(sparsity):
run_filtered_search_test(ivf_flat, sparsity)

adding the unittest will hopefully be pretty easy)

Hi @benfred, thank you for your time. After studying our code, I believe there should be no need to change the Python API, and I just updated the doc work for filter.from_bitset. cc: @cjnolet

Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp feature request New feature or request non-breaking Introduces a non-breaking change Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants