In short.
LLM Judge Deep Dive is a guide for Python developers adding AI quality checks with Pydantic Evals, but those checks depend on fallible model judgments. It explains how LLMJudge applies a rubric, includes optional input and reference answers, and returns assertions or scores with optional reasons. Its most useful guidance is validating verdicts against human labels before using them to control releases or alerts. The page supplies integration examples, not established accuracy or performance measurements; installation details, compatible package versions and numerical costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied documentation page at [https://pydantic.dev/docs/ai/evals/evaluators/llm-judge/index.md], including configuration, examples, validation guidance, limitations and debugging. The page also contains documentation-index and query-parameter notices, which establish no additional evaluator capabilities. Linked pages and implementation files are excluded. No code was executed; runtime behavior, model availability, accuracy, performance and numerical costs remain unassessed.
The overview
identity
The resource is Pydantic's documentation page LLM Judge Deep Dive [https://pydantic.dev/docs/ai/evals/evaluators/llm-judge/index.md]. It teaches the LLMJudge evaluator in Pydantic Evals, covering rubric design, model configuration, result inspection and comparison with human judgments.
assessment
The guide is useful when response quality depends on meaning, such as whether an answer addresses a question or follows a style requirement. It connects simple evaluator configuration with more advanced examples involving case-specific rules and report-level analysis.
Its strongest practical contribution is explaining how to validate a judge before trusting its verdicts. The page does not establish how accurately any illustrated model applies a rubric, so it supports implementation decisions rather than a reliability guarantee.
users
The guide suits Python developers and evaluators working on generated answers, retrieval-augmented generation, translation or structured outputs. Beginners receive concrete examples of rubrics and evaluation results; experienced developers get context controls, per-case evaluators, model overrides and a custom report evaluator.
Reading the basic configuration requires familiarity with Python imports and function calls. Adapting the advanced examples requires understanding dataclasses, typed models and evaluator classes.
capabilities
The page describes checks for factual accuracy, relevance, helpfulness, tone, completeness, instruction following, grounding and citation accuracy. These are rubric-based judgments; listing a quality does not establish that a judge will measure it correctly.
Examples cover dataset-wide and case-specific evaluators, separate judges for different criteria, configurable models and model settings, named results, pass/fail assertions and scores from 0.0 to 1.0. It also shows inspecting reasons and setting a default judge model with set_default_judge_model.
Using it
requirements
The examples assume a Python environment with pydantic_evals and access to a configured judge model. Some also use pydantic_ai and Pydantic models. Useful evaluation requires application outputs, an explicit rubric and any question, context or reference answer that the rubric depends on.
Installation commands, minimum Python version, compatible package releases and credential setup are not supplied. The page also does not establish provider data-retention terms for information included in judge requests.
mechanism
LLMJudge asks a model to assess an output against a rubric. By default, the judge sees only the output. Setting include_input=True adds the case input; include_expected_output=True adds its reference output. A question-dependent or context-dependent rubric therefore needs the corresponding information included.
The default result is a pass/fail assertion with a reason. Configuration can request a numeric score, an assertion or both, with custom names and optional reasons. For models whose profile declares supports_text_output=False, the documented behavior is a verdict without a reason and a binary score of 1.0 or 0.0.
setup
The documented starting point imports Case and Dataset from pydantic_evals and LLMJudge from pydantic_evals.evaluators. Add cases and judges to a Dataset, write a specific rubric, configure the context flags and model as needed, then evaluate the task with dataset.evaluate_sync(task).
For inspection, report.print(include_reasons=True) displays reasons, while report.cases exposes per-case assertions programmatically. Installation and authentication must be resolved separately because this page does not explain them.
example
The retrieved-context example defines an input containing a question and supporting text about Paris. Two judges receive that input: one checks that the response uses only the supplied context, and the other checks references to specific quotes or facts. Their assertions are named grounded and uses_citations.
This demonstrates separating grounding from citation use so that failures remain distinguishable. Agreement with supplied context does not establish that the context itself is factually correct. The example has not been executed or independently validated.
Assessment & evidence
limitations
The guide explicitly identifies nondeterminism, model biases, context limits and API cost. Temperature 0 is presented as a consistency measure, but the limitations section still says identical outputs can receive different scores. No accuracy, repeatability or agreement benchmark is established.
Rubric wording can also encode the wrong requirement. For example, the recipe case labelled vegetarian prohibits all animal products, a stricter restriction than its label suggests. Examples should be adapted carefully, and a factual-accuracy rubric alone supplies no external reference facts.
reasoning
The human-label validation method makes the guide more useful for consequential quality checks. It replays saved outputs unchanged, applies a judge, and compares its assertions with human verdicts using a custom ReportEvaluator. The page explains that ConfusionMatrixEvaluator does not directly read assertions, which motivates this custom implementation.
The suggested focus is false passes: outputs a person failed that the judge accepted. The example skips cases with missing judge results or invalid human labels, so its agreement percentage covers only counted cases. Those omissions would need separate attention when interpreting reliability.
alternatives
For checks that have exact rules, the page recommends IsInstance for type checks, EqualsExpected for exact matching, MaxDuration for timing limits and custom evaluators for deterministic logic. It also demonstrates combining Contains and IsInstance with a judge.
For subjective criteria, it suggests comparing judge models and separating different quality dimensions into different judges. The page provides no measured comparison showing which model or combination performs best.
evidence
The evidence is the complete LLM Judge Deep Dive documentation page at its original Pydantic address [https://pydantic.dev/docs/ai/evals/evaluators/llm-judge/index.md]. It contains API examples, illustrative report output, limitations and a human-agreement validation example.
Displayed timings, successful assertions and numeric scores are documentation examples, not independently verified measurements. Linked API references, related tutorials, provider documentation and implementation code are outside the available evidence.
Access & freshness
costs
The page states that judge API calls cost money and time, but supplies no prices or latency guarantees; it illustrates a response token limit with max_tokens=100, but total token usage per evaluation remains unknown. Numerical running cost is unknown. Multiple judges and repeated evaluations add model-call work.
Suggested controls include lighter models for simple criteria, deterministic checks first, caching where possible and evaluating only changed cases. The page does not demonstrate a caching implementation or provide evidence quantifying these savings.
rights
The supplied page contains no explicit licence or redistribution terms for its documentation or embedded Python examples. Permission to copy, redistribute or commercially reuse those materials is unknown from this source. Package licences and model-provider terms are also not established here.
freshness
The supplied page was captured on 26 November 2026. It provides no publication date, last-updated date or compatible package release. The model identifiers are example configurations; their current availability and provider-specific support are unknown from this page.
actions
Start with one clearly defined criterion and include the information needed to judge it. Combine exact checks with a focused LLMJudge rubric, and inspect reasons when available.
Before using verdicts to control a release or trigger alerts, label representative saved outputs with human verdicts and compare them with the judge. Examine false passes and missing results, refine the rubric or model, and retain the labelled cases for reassessment after changes. Confirm installation requirements, model access and pricing separately.
