liveBook · Manning

Evaluator

As explained in Build an AI Agent (From Scratch)

LLM-as-a-judge is an evaluation method in which a language model scores or classifies another system's outputs according to an evaluation rubric.

An LLM judge evaluates another system’s outputs by applying a rubric in an evaluation prompt and returning scores or pass/fail decisions. It scales repeated agent validation as prompts, models, and data change, while complementing code-based checks and human review. section 10.3

Two common judging patterns are:

  • Single-output grading scores one answer against a rubric. Including a reference answer can improve consistency, but preparing references takes additional effort. section 10.3.1
  • Pairwise comparison asks which of two answers better meets the criteria, or whether they tie. Relative judgments suit subjective qualities and A/B testing; results can be aggregated into win rates. section 10.3.1

Applying a rubric

For a research-paper summary, a judge can check whether the answer captures key findings and is concise and accurate, then return PASS or FAIL with a brief explanation. For renewable-energy answers, it can compare two candidates and choose A, B, or Tie. section 10.3.1

How Build an AI Agent (From Scratch) covers it

How deep it goes
Defines rubric-based scoring and pass/fail decisions, then explains single-output grading and pairwise comparison.
Examples
Uses a research-summary pass/fail rubric and a renewable-energy answer comparison.
What it assumes
Assumes evaluation criteria expressed as a rubric; can use a reference answer, though preparing one takes additional effort.
What you can do after
Evaluate agent outputs with rubric-based scores or pass/fail decisions, or compare candidates and aggregate win rates.
How it connects
Connects LLM judges with code-based evaluators, human evaluators, end-user feedback, rubrics, and A/B testing.

Also explained in

Compare how 9 books explain evaluator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build an AI Agent (From Scratch). The section links point to the parts of the book it draws on.