RAG & Retrieval·Question 98 of 100Quick-fire

Propose metrics for quantitatively evaluating the quality of embeddings generated by an LLM. How can the effectiveness of embeddings be assessed in tasks like semantic similarity or information retrieval?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Quality of embeddings can be evaluated using metrics such as:

Cosine Similarity: Measures the cosine of the angle between two embedding vectors, useful for assessing semantic similarity.

Full worked answer

Quality of embeddings can be evaluated using metrics such as:

Cosine Similarity: Measures the cosine of the angle between two embedding vectors, useful for assessing semantic similarity.

Precision@k and Recall@k for Information Retrieval: Evaluates how many of the top-k retrieved documents (or embeddings) are relevant to a query.

Word Embedding Association Test (WEAT): Assesses biases in embeddings by measuring associations between sets of target words and attribute words.

What a good answer covers

  • Cosine Similarity: Measures the cosine of the angle between two embedding vectors, useful for assessing…
  • Precision@k and Recall@k for Information Retrieval
  • Word Embedding Association Test (WEAT)

Key terms: Cosine Similarity · Word Embedding Association Test (WEAT)

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep