AI Glossary

Cosine similarity

What does “Cosine similarity” mean?

Cosine similarity: A comparison based on the angle between vectors, independent of their magnitudes.

Cosine similarity visual guide: A comparison based on the angle between vectors, independent of their magnitudes.
Visual guide Open full size (new tab)

What is an example of “Cosine similarity”?

A search engine compares the direction of a query embedding with document embeddings.