Skip to content

Glossary: Embeddings and Vector Search

cosine similarity

Also written: cosine

A score for how alike two vectors' directions are: the dot product divided by both lengths. It is 1 for the same direction and near 0 for unrelated texts.

Where the book teaches it

Related terms

dot productnormalize