Skip to the page

Evaluating LLM apps · mid

LLM-as-a-judge and RAG metrics

A model can grade outputs against a rubric, but it has known biases. Calibrate it against human labels, and use the RAG metrics (faithfulness, context relevance, answer relevance) to see which stage is weak.

The notes

What you must know

  • LLM-as-a-judge: a second model call grades an output against a rubric and returns a label or score with a short reason. It scales human judgment for fuzzy qualities.
  • Known biases: position bias (prefers the first or second answer), verbosity bias (prefers longer answers), self-enhancement (favours its own model's answers) and weak judgment on facts it does not know.
  • Fixes: swap positions and require agreement, ask binary questions per criterion instead of a 1 to 10 score, give the reference or source text, ask for reasoning before the verdict, and use a different model family where possible.
  • Calibrate with 100 to 200 human-labelled examples and measure agreement per criterion. Re-check when the judge model changes.
  • Faithfulness (groundedness): are the answer's claims supported by the retrieved context? Context relevance: how much of what was retrieved is relevant. Context recall: did retrieval find everything needed. Answer relevance: does it address the question that was asked.
  • Examples: faithful but irrelevant (correct leave policy for a notice period question); relevant but unfaithful (answers from general knowledge); faithful but wrong (quotes an outdated policy correctly).
  • If judge scores are high but users complain, compare the eval set with real traffic, test the judge on human labels, and add production failures to the set.

The red pen

Common traps: mistake → fix

  • Mistake: A high judge score proves quality

    Fix: the judge can be lenient or biased; measure agreement with people.

  • Mistake: A faithful answer is a correct answer

    Fix: it can quote a wrong or old document faithfully.

  • Mistake: A 1 to 10 score is precise

    Fix: binary criteria are more stable.

Easy to hard

Questions interviewers ask, easy to hard

  1. What is LLM-as-a-judge?
  2. Which biases does a judge have?
  3. Offline score is 92 percent but thumbs-down is 18 percent. What is going on?
  4. Explain faithfulness, context relevance and answer relevance with an example.

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview