RAGAS interview question

Generative AIRAGASLLM-as-Judgehard

A team reports that a new prompt raised RAGAS faithfulness on a 300-question set from 0.81 to 0.86: the old score is from last month, the new one was computed after the evaluator LLM was switched to a newer version. You cache the answers of both prompts and score each set 3 times with each evaluator. What should you conclude?

Evaluator LLMAnswers fromFaithfulness (mean of 3 runs)Range across runs
Old versionOld prompt0.810.79–0.83
Old versionNew prompt0.820.80–0.84
New versionOld prompt0.850.83–0.86
New versionNew prompt0.860.85–0.88
  1. AMost of the 0.05 comes from the evaluator change: with the judge held fixed the prompt adds about 0.01, within the run-to-run range; pin the evaluator and check it against human labels.
  2. BThe prompt adds about 0.05, as the before-and-after runs show; the judge version does not matter much, because faithfulness is computed from claim checks rather than from free-form scores.
  3. CThe newer evaluator is more accurate, because it rates both prompts higher, so the old-version runs should be discarded and scores from the newer evaluator reported from now on.
  4. DThe prompt adds about 0.03: averaging its gain across the two comparisons (0.05 and 0.01) cancels out the judge bias, so the new prompt can be reported as a clear improvement in faithfulness.
Show the answer and explanation

Correct answer: A, Most of the 0.05 comes from the evaluator change: with the judge held fixed the prompt adds about 0.01, within the run-to-run range; pin the evaluator and check it against human labels.

Explanation RAGAS

RAGAS faithfulness looks mechanical (supported claims ÷ all claims), but both steps, splitting the answer into claims and deciding whether each claim is supported, are done by an evaluator LLM. A different judge model or version, a changed metric prompt, or plain sampling randomness can move the score.

The 2 × 2 table separates the two factors:

ComparisonChange
Prompt effect, old evaluator (0.81 → 0.82)+0.01
Prompt effect, new evaluator (0.85 → 0.86)+0.01
Evaluator effect, old prompt (0.81 → 0.85)+0.04
Reported gain (0.81 → 0.86)+0.05, confounded

The prompt effect is about 0.01, smaller than the 0.03–0.04 spread between repeated runs of the same configuration, so these runs give no reliable evidence that it helped. The newer evaluator simply scores the same answers about 0.04 higher; without human labels you cannot tell which of the two is closer to the truth, and a higher score does not make it more correct.

Practice that prevents this:

  • Pin the evaluator model and version and the metric prompts; change them only deliberately, then re-score the baseline.
  • Repeat runs and report the mean and spread; compare versions on the same items (paired).
  • Calibrate each evaluator on a human-labelled sample before trusting its deltas.

Averaging a confounded and an unconfounded comparison does not cancel bias; it just mixes the judge effect into the estimate.

Interview tip: treat the evaluator as part of the experiment configuration, versioned like code, and say "never compare scores produced by different judges".

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Generative AI questions

  1. A loan pre-screening step uses the schema below with constrained decoding, which emits properties in schema order. Reviewers find that reasoning usually…
  2. The flow shows one generation step of a decoder-only LLM (GPT- or Llama-style). What happens at the highlighted step?
  3. From the same logits, a teacher LLM gives these next-token probabilities after "I want to ___ my subscription" (restricted to five candidate tokens): cancel…
  4. A retail client wants a customer-facing assistant over ~5,000 public help-center pages and product PDFs, live in six weeks, with a team of two engineers.…
  5. To save tokens, a bank adds an LLM extractor after retrieval that keeps only the sentences relevant to the question from each of the top 8 chunks. Context…