opensearch-project / k-NN

🆕 Find the k-nearest neighbors (k-NN) for your vector data
https://opensearch.org/docs/latest/search-plugins/knn/index/
Apache License 2.0
152 stars 113 forks source link

[Backport 2.x] Quantization Framework Implementation with 1bit and MultiBit Binary Quantizer #1955

Closed Vikasht34 closed 1 month ago

Vikasht34 commented 1 month ago

Description

This pull request introduces a new quantization framework, including the MultiBitScalarQuantizer and OneBitScalarQuantizer, to provide efficient quantization methods for vectors in OpenSearch.

Key features:

OneBitScalarQuantizer

MultiBitScalarQuantizer

Related Issues

Resolves #1889

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

navneet1v commented 1 month ago

@Vikasht34 lets ensure to port this change around java doc to main branch too otherwise everytime there is change in QF the build of 2.x will break.