The dot product of two vectors is the sum of products of their components; geometrically it equals the product of their lengths times the cosine of the angle between them.
A zero dot product means the vectors are orthogonal; a large positive value means they point in similar directions.
Cosine similarity = dot product divided by the product of the norms; it ignores vector length and measures only direction (range -1 to 1), which is why it is the default for comparing embeddings.
For unit-normalized vectors, dot product and cosine similarity are identical, and Euclidean distance is a monotonic function of them.
Loading…