Skip to content
Urnish Tech logo
Back to blog
AIGenAIEvalsRAG

AI series · Part 3: Evals and Accuracy

Measuring AI Accuracy: Retrieval Metrics vs Answer Metrics

Urnish Tech·Oct 12, 2026· 3 min read

Measure retrieval and answers separately, because the fix depends on which one failed. A plain guide to Recall@K, MRR, faithfulness, correctness and LLM-as-judge.

Measure two things separately:

  1. 1Retrieval: did we find the right information?
  2. 2Answer: did the LLM answer correctly, using only that information?

It's like checking why a student got a question wrong. Did they open the wrong page (a retrieval problem), or misread the right page (an answer problem)? The fix is completely different.

The four metrics

MetricSimple meaningExample
Recall@KHow often the right chunk is in the top KFound in 24 of 25 → 96%
MRRHow high it is ranked (1st = 1, 2nd = 0.5, 4th = 0.25), averagedRanks 1, 2, 4 → 0.58
FaithfulnessEverything in the answer comes from the documents; nothing is made up
CorrectnessThe answer matches the expert's answer

How to score answers

  • LLM-as-judge: a strong model marks each answer against the expert answer, like a teacher.
  • Human review of a sample, to check the judge is fair.
  • User feedback: track thumbs up and thumbs down in production.

Common tools are RAGAS, DeepEval and LangSmith. In our reference build, one flag turns on Claude as the judge:

bash
python -m evals.run_evals --judge

I measure retrieval with Recall and MRR, and answers with faithfulness and correctness. If the right chunk was found but the answer is wrong, I fix the prompt or model. If the chunk wasn't found, I fix retrieval.

- The short version

Next in the GenAI series: Which Model for Which Job: Picking LLMs by Task, Cost and Evals

Start from the top: GenAI Quick Answers and Series Guide

We deploy these patterns across production engagements in fintech, healthcare, and eCommerce. Talk to a senior engineer about how they apply to your platform.

Let's talk

Have a product idea or a system to scale?

Tell us what you're building. You'll hear back within one business day - from a senior engineer, not a sales rep.

  • Reply within 24h
  • Senior engineers only
  • Fixed-scope or T&M
  • NDA on request
or emailadmin@urnishtech.com