-
Notifications
You must be signed in to change notification settings - Fork 132
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
Integrate Lucene Vector field with native engines to use KNNVectorFormat during segment creation #1945
Conversation
Checking why CIs are failing. it doesn't seem the issue with the code. |
Does this mean if someone upgrades their index with knn=false, it is going to switch from binary doc values to lucene? |
To limit the scope of this pr and refactoring you are doing if its not a knn index we will still BDV |
src/main/java/org/opensearch/knn/index/mapper/KNNVectorFieldMapper.java
Outdated
Show resolved
Hide resolved
3b9a5a0
to
9958d0a
Compare
No. I have clarified the description now. I see how the confusion was happening. |
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.
Looks good. Needs a rebase but approving
Thanks. I am fixing the conflicts. Will raise the PR in few hours. |
…mat during segment creation Signed-off-by: Navneet Verma <[email protected]>
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.
One small comment for the future, but LGTM!
src/main/java/org/opensearch/knn/index/mapper/KNNVectorFieldMapperUtil.java
Show resolved
Hide resolved
…mat during segment creation (#1945) Signed-off-by: Navneet Verma <[email protected]> (cherry picked from commit 5a5351f)
…mat during segment creation (#1945) Signed-off-by: Navneet Verma <[email protected]> (cherry picked from commit 5a5351f)
…mat during segment creation (#1945) (#1948) Signed-off-by: Navneet Verma <[email protected]> (cherry picked from commit 5a5351f) Co-authored-by: Navneet Verma <[email protected]>
…mat during segment creation (opensearch-project#1945) Signed-off-by: Navneet Verma <[email protected]>
Description
Integrate Lucene Vector field with native engines, to use KNNVectorFormat during segment creation
What has changed and why:
index.knn
is false then we will use DocValuesBased Vector Field. Because if we use the Lucene based vector field then KNNCodec will not be triggered and default KNNFormat will be used which will create the HNSW graph as that is what default behavior of Lucene library. This is the reason why indexKNN check is added while deciding which VectorField to use.Related Issues
#1853
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.