You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation describes cosinesimil space type as so:
Cosine similarity returns a number between -1 and 1, and because OpenSearch relevance scores can’t be below 0, the k-NN plugin adds 1 to get the final score.
In the latest version of Opensearch, this is no longer the case, as the output is scaled down to sit between 0 and 1.
Hi @tmoitie, this was added as part of #2357. Basically, we wanted to make consistent across different engines. Did this cauise a problem? Looks like we might need to update docs
Describe the bug
The documentation describes cosinesimil space type as so:
In the latest version of Opensearch, this is no longer the case, as the output is scaled down to sit between 0 and 1.
Related component
Plugins
To Reproduce
Index settings:
Document:
Query:
Expected behavior
Results.hits.hits.0._score was 2.0 in 2.18.0, it is now 1.0. It appears to now scale between 0.0 and 1.0.
Additional Details
Plugins
KNN
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: