Skip to content

Glossary: Embeddings and Vector Search

Euclidean distance (L2)

Also written: Euclidean distance, L2, l2

The straight-line distance between two points. For unit vectors, its square equals 2 − 2 × cosine, so ranking by it gives the same order as cosine.

Where the book teaches it

Related terms

metriccosine distance