Skip to content

Cosine Similarity Score > 1. #17569

Closed Answered by dosubot bot
JpChii asked this question in Q&A
Jan 21, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello, @JpChii! I'm here to help you with any bugs, questions, or contributions. Let's get to the bottom of this together!

The cosine similarity score should theoretically range between -1 and 1. If you're seeing scores greater than 1, it might indicate an issue with the implementation or the way the scores are being calculated or interpreted.

In the context of the VectorStoreQuery with DEFAULT mode, the similarity scores are calculated using the Atlas Vector Search with a cosine similarity metric [1]. However, if you're using the FaissHNSW index, it's possible that the scores are being calculated differently or that there is a bug in the implementation.

Here are a few things you might w…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JpChii
Comment options

Answer selected by JpChii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant