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

Vector quantization #5

Merged
merged 31 commits into from
Aug 25, 2024
Merged

Vector quantization #5

merged 31 commits into from
Aug 25, 2024

Conversation

mrjleo
Copy link
Owner

@mrjleo mrjleo commented Aug 25, 2024

This PR adds support for index compression via vector quantization:

  • Base class/interface for quantizers is added.
  • (Trained) quantizers are serialized and stored in the index itself.
  • A simple product quantizer based on nanopq is implemented.
  • API change: Index dimension is not required in Index constructors anymore but will instead be inferred from the first batch of vectors that's added to the index.

mrjleo added 30 commits August 20, 2024 13:00
@mrjleo mrjleo merged commit 5ea0708 into main Aug 25, 2024
4 checks passed
@mrjleo mrjleo deleted the quantization branch August 25, 2024 11:58
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.

1 participant