AI and LLMs · Middle · Question 9 of 75
Which similarity measure is most common for comparing text embeddings?
- 1Levenshtein distance
- 2Cosine similarity
- 3Character count difference
Show the answer
Correct answer: Cosine similarity
Explanation
Cosine similarity compares direction, not length, of vectors. Many models return normalized vectors, so dot product gives the same ranking.