Measure the cosine of the angle between two vectors in high-dimensional space.
Cosine similarity measures the cosine of the angle between two vectors, focusing on orientation rather than magnitude.
cos(θ) = (A·B) / (||A|| × ||B||)Range: -1 to 1
1: Identical direction
0: Orthogonal (90°)
-1: Opposite direction