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

Use 0.95 as default ratio for lucene radial search traversal similarity #1619

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

junqiu-lei
Copy link
Member

@junqiu-lei junqiu-lei commented Apr 17, 2024

Description

This PR set up Lucene engine traversalSimilarity value to 0.95 * resultSimilarity(min_score) based on benchmark result #814 (comment)

Issues Resolved

Part of #814

Check List

  • Commits are signed as per the DCO using --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.

Copy link
Member

@ryanbogan ryanbogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, but everything else looks good to me!

src/main/java/org/opensearch/knn/common/KNNConstants.java Outdated Show resolved Hide resolved
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
ryanbogan
ryanbogan previously approved these changes Apr 17, 2024
Copy link
Member

@ryanbogan ryanbogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
@navneet1v
Copy link
Collaborator

overall code looks good to me. Waiting for CIs to complete.

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
@junqiu-lei junqiu-lei merged commit d47af62 into opensearch-project:main Apr 18, 2024
48 of 53 checks passed
@junqiu-lei junqiu-lei deleted the lucene-traversal branch April 18, 2024 00:08
@junqiu-lei
Copy link
Member Author

Will do manually backport to 2.x with #1617

junqiu-lei added a commit to junqiu-lei/k-NN that referenced this pull request Apr 26, 2024
…search-project#1652)

* Use 0.95 as default ratio for lucene radial search traversal similarity (opensearch-project#1619)

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
junqiu-lei added a commit that referenced this pull request Apr 29, 2024
… (#1658)

* Use 0.95 as default ratio for lucene radial search traversal similarity (#1619)

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants