return cosine score for FaissSearcher #1951
-
Hi, I use default FaissSearcher.search, the hits.score is a score from an arbitrary range. I wish to only return me a score within range [-1, 1] (as cosine similarity score). Do you know how can I achieve this? |
Beta Was this translation helpful? Give feedback.
Answered by
lintool
Jul 30, 2024
Replies: 1 comment 6 replies
-
Most models are trained with dot product similarity, so you'd have to do normalization yourself. Standard approach of normalizing wrt to observed min and max values works fine in most cases. Try that first? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe so.