forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update vector similarity examples to avoid negative scores. (elastic#…
…40493) Negative scores are no longer allowed, but the cosine similarity between two vectors lies in the range [-1, 1], and dot products can also be negative. This commit updates the documentation with an example of how to avoid negative scores.
- Loading branch information
1 parent
2e2c08b
commit 5901b42
Showing
1 changed file
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters