Description
In the docs, there’s a note that says vectors are normalized for cosine similarity, and then we use dot product.
Wouldn’t that mean that the cosine distance ends up being -1 <= distance <= 1
? Or do we do 1 - dot(a,b)
in the code?
I’m asking because we found negative distance using cosine when returning them in metadata.