A mathematical measure of similarity between two vectors, commonly used to compare embeddings in semantic search.
Cosine similarity measures the angle between two vectors rather than their magnitude, making it well-suited for comparing embeddings regardless of text length.