-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add binary index support for Lucene engine #2292
Add binary index support for Lucene engine #2292
Conversation
efdd815
to
625fd1c
Compare
625fd1c
to
882a672
Compare
@heemin32 @navneet1v @jmazanec15 could you please help review? Also it looks like the linux build is broken. |
882a672
to
0ab5494
Compare
@peterzhuamazon are there changes in the CI image? we are seeing failures due to GlibC |
Hi @navneet1v you can follow the guide here to mitigate the issue: Please let me know if you have more questions, thanks! |
@jed326 please pull in latest changes from main branch. CI setup fix is done. |
src/main/java/org/opensearch/knn/index/KNNVectorSimilarityFunction.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990BinaryVectorScorer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990BinaryVectorScorer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990HnswBinaryVectorsFormat.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990HnswBinaryVectorsFormat.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990HnswBinaryVectorsFormat.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990HnswBinaryVectorsFormat.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/params/KNNVectorsFormatParams.java
Show resolved
Hide resolved
src/main/java/org/opensearch/knn/index/codec/KNN990Codec/KNN990BinaryVectorScorer.java
Outdated
Show resolved
Hide resolved
0f768ed
to
313a1f2
Compare
@navneet1v thanks for the feedback, mind taking another look after the latest revisions? |
313a1f2
to
a4131fc
Compare
@navneet1v added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me. Just 1 minor comments
src/main/java/org/opensearch/knn/index/codec/KNN9120Codec/KNN9120BinaryVectorScorer.java
Outdated
Show resolved
Hide resolved
a4131fc
to
978161b
Compare
@heemin32 @jmazanec15 could one of you help with a second review here? Thanks! |
LGTM. Could you also add integ test with lucene engine in |
Signed-off-by: Jay Deng <[email protected]>
978161b
to
bd0719f
Compare
Thanks @heemin32 -- added the same engine parameterization to these two classes as well in the latest revision. |
Lets wait for all CIs to complete before we can merge this change. @jed326 lets complete the benchmarks for Lucene binary vectors, @heemin32 can you please share details on how benchmarks was done for this blog: https://opensearch.org/blog/lower-your-cost-on-opensearch-using-binary-vectors/ and lets kick off the documentation update too for this feature. |
Created the docs issue here: opensearch-project/documentation-website#8955 |
Signed-off-by: Jay Deng <[email protected]> (cherry picked from commit 8005bbf)
Signed-off-by: Jay Deng <[email protected]> (cherry picked from commit 8005bbf) Co-authored-by: Jay Deng <[email protected]>
Signed-off-by: Jay Deng <[email protected]>
Description
Add binary vector support for Lucene engine. For testing I parameterized
BinaryIndexIT.java
to run with bothFAISS
andLUCENE
engines.Related Issues
Resolves #1857
Check List
--signoff
.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.