-
Notifications
You must be signed in to change notification settings - Fork 114
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
Introduces query parameter ef_search for NMSLIB #1732
Introduces query parameter ef_search for NMSLIB #1732
Conversation
Date: Mon, 27 May 2024 22:02:12 -0700 | ||
Subject: [PATCH] Adds ability to pass ef parameter in the query for hnsw | ||
|
||
It defaults to index ef_ value if its not type HNSWQuery |
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.
Here is the diff for this patch
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.
Shouldn't there be a unit test for this change in nmslib code base?
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.
There are no unit test in the entire lib. There is no way to test it out unless we end up writing it for the entire search which will become a heavy lift.
There is an integ test though and I tested it out using this code shatejas/nmslib@c5dd7cd. I did not add it in the patch because its not generic enough. There are some validations in the hnsw code which is making it difficult to add more parameters in the integ test
Signed-off-by: Tejas Shah <[email protected]>
Signed-off-by: Tejas Shah <[email protected]>
c809985
to
6da2592
Compare
@shatejas please fix the failing GH actions |
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.
lgtm - waiting on CI
6da2592
to
218686a
Compare
The build in linux is failing with the same failure as main |
Date: Mon, 27 May 2024 22:02:12 -0700 | ||
Subject: [PATCH] Adds ability to pass ef parameter in the query for hnsw | ||
|
||
It defaults to index ef_ value if its not type HNSWQuery |
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.
Shouldn't there be a unit test for this change in nmslib code base?
Signed-off-by: Tejas Shah <[email protected]>
218686a
to
336ccbf
Compare
Build failure will be fixed in #1748 |
79148f9
into
opensearch-project:feature/ef-search
Description
Integrates NMSLIB with ef_search
Issues Resolved
#1537
Check List - Pending
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.