Use the metric the embedding model was trained with (check its documentation); most text models use cosine similarity.
Cosine measures only the angle (direction); dot product also rewards larger magnitude; Euclidean measures absolute distance.
If vectors are normalized to unit length, cosine similarity and dot product give identical rankings, and Euclidean distance becomes a monotonic function of them. Normalizing lets an inner-product index emulate cosine.
Use dot product when magnitude is meaningful (for example some recommendation models).
Loading…