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.x] Use one formula to calculate cosine similarity #2375

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 84cfa8e from #2357

VijayanB
VijayanB previously approved these changes Jan 9, 2025
@VijayanB
Copy link
Member

VijayanB commented Jan 9, 2025

Github action is failing due to javadoc ( transient ) , however it is passing in java 21.

@VijayanB VijayanB force-pushed the backport/backport-2357-to-2.x branch from add956e to 931670a Compare January 12, 2025 23:08
@navneet1v
Copy link
Collaborator

@VijayanB please fix the CI so that this change can be merged.

@navneet1v
Copy link
Collaborator

Github action is failing due to javadoc ( transient ) , however it is passing in java 21.

please fix it

@VijayanB VijayanB dismissed stale reviews from naveentatikonda and themself via f7be348 January 15, 2025 04:02
@VijayanB VijayanB force-pushed the backport/backport-2357-to-2.x branch from 931670a to f7be348 Compare January 15, 2025 04:02
* Have one score definition for cosinesimilarity

Currently we have different score calculation for cosine similarity,
for ex: script score, approximate search, exact search has diffent formula
to convert distance to cosine similarity that is aligned with OpenSearch
score. To keep it consistent, we will be using one defintion which is used
by Lucene as standard definition for cosine similarity for all search types.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
(cherry picked from commit 84cfa8e)
@VijayanB VijayanB force-pushed the backport/backport-2357-to-2.x branch from f7be348 to 5a2669f Compare January 15, 2025 04:09
@VijayanB VijayanB merged commit 0525dda into 2.x Jan 15, 2025
99 checks passed
@github-actions github-actions bot deleted the backport/backport-2357-to-2.x branch January 15, 2025 05:08
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.

3 participants