AI and LLMs · Middle · Question 9 of 75

Which similarity measure is most common for comparing text embeddings?

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.

Further reading

Problem with a question

AI and LLMs · Middle · question 9

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz