Cosine similarity
A score from −1 to 1 that measures the angle between two vectors: 1 means they point the same way.
Cosine similarity measures exactly that: the angle between two arrows.
See it in action
Try cosine similarity hands-on in the lesson Words as vectors, part of the AI fundamentals course.