Cosine similarity
A score between −1 and +1 that measures how similar two word or sentence meanings are. A score of 1 means they point in the same direction (very similar); 0 means unrelated; −1 means opposite.
ⓘ Technical definition
cos θ = (a · b) / (‖a‖ · ‖b‖); measures the angle between two vectors in ℝⁿ independently of their magnitude. Used to compare embeddings because direction encodes meaning while magnitude often encodes frequency.