L2 Normalization Turns Embedding Dot Products Into Cosine Similarity
Two embedding vectors can point in nearly the same direction yet have very different magnitudes. A raw dot product responds to both properties. L2 normalization removes the magnitude term, so the same dot-product operation becomes a comparison of direction. That change is not merely a numerical convenience. It changes the retrieval objective whenever vector norms carry information or vary across items. Dot product contains a magnitude term For nonzero vectors (x) and (y),