Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q26IntermediateConcept

Explain the core RAGAS metrics: faithfulness, answer relevancy, context precision, and context recall.

30-second answerSay your answer out loud first, then reveal.
MetricMeasuresNeeds reference answer?How computed (roughly)Low score means
FaithfulnessAnswer claims supported by contextNoBreak answer into claims; LLM checks each against context; supported / totalHallucination / parametric leakage
Answer relevancyAnswer addresses the questionNoGenerate questions from the answer, compare similarity to the original questionOff-topic or evasive answers
Context precisionRelevant chunks ranked highYes (or relevance labels)Precision weighted by rank of relevant chunksNoisy retrieval; need reranking
Context recallContext covers the needed informationYesFraction of reference-answer statements attributable to contextRetrieval missing information

Reading the scores together

  • Low context recall + low correctness → retrieval problem.
  • High context recall + low faithfulness → generation problem.
  • High faithfulness + low correctness → context was wrong or outdated but the model faithfully repeated it.

Caveats (important in interviews)

  • These are LLM-judged metrics: noisy, prompt-dependent, sensitive to the judge model. Calibrate against human labels.
  • Faithfulness doesn't measure correctness. Faithfully repeating a wrong document scores high.
  • Use them for comparison between versions more than as absolute truth.

Little by little, you're building something great.