Replies: 1 comment
-
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 Here are a few things you might want to check or consider:
If none of these steps resolve the issue, it might be helpful to review the specific configuration and setup of your vector store and embedding model to ensure everything is aligned correctly. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Querying VectorStoreIndex with VectoStoreQuery with DEFAULT mode uses CosineSimilarity Score. But scores returned on query is more than 1? Is this cosine distance instead?
Index: FaissHNSW
Embedding Model: Alibaba-NLP/gte-Qwen2-1.5B-instruct
EmbeddingType: HuggingFace
Code:
VectorStoreQueryResult(nodes=None, similarities=[1.123214, 1.1505811, 1.1521511, 1.1726012, 1.1901894], ids=['8', '4', '12', '11', '10'])
Beta Was this translation helpful? Give feedback.
All reactions