Cosine Similarity
Quick definition
A measure of directional similarity between two vectors based on the cosine of the angle between them.
A measure of directional similarity between two vectors based on the cosine of the angle between them.
Cosine similarity emphasizes vector direction rather than magnitude and is widely used with normalized embeddings.
Example: A semantic search engine ranks two passages based on the cosine similarity of their embeddings.
Common use cases: Semantic search, recommendation systems, and clustering.
Examples
- A semantic search engine ranks two passages based on the cosine similarity of their embeddings.
Use cases
- Semantic search, recommendation systems, and clustering.
Frequently asked questions
What is Cosine Similarity?
A measure of directional similarity between two vectors based on the cosine of the angle between them.
What should I know about Cosine Similarity?
Cosine similarity emphasizes vector direction rather than magnitude and is widely used with normalized embeddings.