Is the cosine distance bound in the docs correct?

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.

hi @Guillermo_Ripa !!

That’s an interesting question.

I will need to ask internally for more context on this.

I’ll get back with more info. Thanks!