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

[Backport 2.10] Update Faiss engine to allow PQ and HNSW #1077

Merged

Conversation

jmazanec15
Copy link
Member

Backport #1074 to 2.10

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.

@jmazanec15 jmazanec15 changed the title [Backport 2.1] Update Faiss engine to allow PQ and HNSW [Backport 2.10] Update Faiss engine to allow PQ and HNSW Aug 31, 2023
Updates faiss engine to enable hnsw and faiss to work together. For
HNSW, code_size must be equal to 8 (refer to
facebookresearch/faiss#3027). Therefore, the
index description string "HNSW32,PQXxY" does not work. Only "HNSW32,PQX"
ends up working.

Additionally, adds several unit tests and integration tests in order to
validate the functionality.

Signed-off-by: John Mazanec <[email protected]>
@jmazanec15 jmazanec15 force-pushed the backport/backport-1074-to-2.10 branch from cebc358 to 3df15d9 Compare August 31, 2023 03:44
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #1077 (4c3e7f5) into 2.10 (8d18bc7) will increase coverage by 0.03%.
The diff coverage is 74.46%.

@@             Coverage Diff              @@
##               2.10    #1077      +/-   ##
============================================
+ Coverage     85.03%   85.06%   +0.03%     
- Complexity     1159     1162       +3     
============================================
  Files           154      154              
  Lines          4730     4753      +23     
  Branches        434      434              
============================================
+ Hits           4022     4043      +21     
- Misses          513      514       +1     
- Partials        195      196       +1     
Files Changed Coverage Δ
...main/java/org/opensearch/knn/index/util/Faiss.java 78.51% <74.46%> (+3.00%) ⬆️

@naveentatikonda
Copy link
Member

@jmazanec15 Some Faiss_tests are failing on MacOS

navneet1v
navneet1v previously approved these changes Aug 31, 2023
@navneet1v
Copy link
Collaborator

@jmazanec15 mac os build and test is failing

@jmazanec15
Copy link
Member Author

Looks like a locale issue. Let me fix

@jmazanec15 jmazanec15 mentioned this pull request Aug 31, 2023
1 task
@jmazanec15 jmazanec15 requested a review from navneet1v August 31, 2023 19:53
@jmazanec15 jmazanec15 merged commit d1fb064 into opensearch-project:2.10 Aug 31, 2023
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.

5 participants