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

MB-61093 Add method to compute distance from codes for IVF index #41

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

deepkaran
Copy link
Collaborator

  • Added new function compute_distance_to_codes_for_list to IndexIVF. Given a query vector x, this function computes distance to provided codes for the input list_no. This is a special purpose method to be used as a flat distance computer for an inverted list where codes are provided externally. This allows to use the quantizer independently while computing distance for the quantized codes.

  • This function is currently implemented only for IndexIVFScalarQuantizer.

  • Extended c_api interface for the new function.

* Added new function compute_distance_to_codes_for_list to IndexIVF.
Given a query vector x, this function computes distance to provided
codes for the input list_no. This is a special purpose method
to be used as a flat distance computer for an inverted
list where codes are provided externally. This allows to
use the quantizer independently while computing distance for
the quantized codes.

* This function is currently implemented only for IndexIVFScalarQuantizer.

* Extended c_api interface for the new function.
@deepkaran deepkaran merged commit 3001b51 into blevesearch:bleve Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants