Skip to content
AgenticAIWiki
  1. Glossary
  2. Cosine similarity

Glossary term

Cosine similarity

A measure of how similar two vectors are, based on the angle between them, from -1 to 1.

Open lesson 4.2

Similarity: cosine and dot product · Chapter 4

In plain words

It ignores vector length, so a long document is not favoured just for being long. For normalised vectors it equals the dot product.

Taught in

  1. 4.2Similarity: cosine and dot productChapter 4, Embeddings and semantic search · main lesson

Also in these lessons

Embedding modelVector