Find answers from the community

Updated 3 months ago

[Question][Bug]: Similarity Score and Or...

Hi,

Quick question, on llama index we have a similarity score when querying the nodes right, is that score mean 0 not similar and 1 mean very similar? In other word, the direction is on the oppisite of Eucladian Distance.

Euclidean Distance: Euclidean distance calculates the straight-line distance between two points in the vector space. Smaller distances indicate greater similarity. This metric is used when the magnitude and direction of vectors are both important.

If yes, then I think we have a problem on the PgVectorStore scoring logic and order.
More context: https://github.com/jerryjliu/llama_index/issues/7214
L
1 comment
Hmm yea maybe it's a bug, I'll take a peek.

It's still returning nodes in the proper order though, so this would only be an issue if you were doing filtering based on score
Add a reply
Sign up and join the conversation on Discord