AI glossary
What is Cosine Similarity?
A measure of how similar two vectors are, based on the angle between them: 1 means same direction, 0 unrelated, −1 opposite.
Computed as the dot product divided by the product of the vectors' lengths. For unit-length embeddings it equals the dot product.