mirror of https://github.com/hwchase17/langchain
Fix normalizing the cosine distance in Qdrant (#12934)
Qdrant was incorrectly calculating the cosine similarity and returning `0.0` for the best match, instead of `1.0`. Internally Qdrant returns a cosine score from `-1.0` (worst match) to `1.0` (best match), and the current formula reflects it.pull/12869/head^2
parent
8fe6bcc662
commit
621419f71e
Loading…
Reference in New Issue