In short.
This page is a concepts guide to Pydantic Evals, a Python framework for evaluating AI systems, written for developers who build or maintain LLM-based apps or agents. The main catch is that it is an overview with no installation, version, licence or cost information, so you need other pages before adopting the library. It explains six ideas: Dataset (cases plus evaluators), Case (inputs and optional expected output), Evaluator (scores, labels or pass/fail assertions on one output), ReportEvaluator (analysis over a whole run), Experiment (running a task function over every case with dataset.evaluate or evaluate_sync) and EvaluationReport (the results). It frames these as a unit-testing analogy adapted for probabilistic outputs. Nothing was run for this report; every statement comes from the page text.
Researched and written by an AI model and checked by a second AI model. How it works
This report covers only the single documentation page at [https://pydantic.dev/docs/ai/evals/getting-started/core-concepts/index.md], as captured in full on 14 November 2026. Pages it links to (evaluator references, custom evaluators, report evaluators, dataset management, API reference and the documentation index) were not reviewed. The library's source code, install process, licence, release history and pricing were not examined. No code from the page was run, so the report makes no claims about how the library actually behaves.
The overview
What this resource is
This is a single documentation page titled Core Concepts, from the Pydantic Evals section of the Pydantic AI documentation at [https://pydantic.dev/docs/ai/evals/getting-started/core-concepts/index.md]. It describes how the parts of Pydantic Evals fit together. It is not the library itself and not a tutorial for building a full evaluation pipeline.
The page lists six concepts: Dataset, Case, Evaluator, ReportEvaluator, Experiment and EvaluationReport. It separates three phases: definition (Dataset with Cases, Evaluators and ReportEvaluators), execution (an Experiment) and results (an EvaluationReport with per-case results and experiment-wide analyses). The code imports from a package named pydantic_evals.
Overall assessment
As a conceptual introduction the page is clear and well organised. It defines each term and includes examples for datasets, cases, evaluators, experiments and reports; ReportEvaluator is described without an implementation example. It ends with a data-model summary (one Dataset to many Experiments, one Experiment to one Report, one Experiment to many case results). A developer reading it should come away with a workable picture of how evaluations are structured in this framework.
It has limits as a basis for a decision. It says nothing about installation, supported Python versions, licence, pricing, or how it compares with other tools. It also does not show the full range of built-in evaluators; it points to separate pages for that. The page includes illustrative evaluation results, timing output and duration fields, but provides no performance benchmarks or independent validation. Nothing here was executed.
Who it is for
The page is aimed at developers who write Python and want to test the quality of an AI-powered function or agent in a repeatable way. The unit-testing analogy (Case plus Evaluator as a test function, Dataset as a test suite, an Experiment as a pytest run, an EvaluationReport as a test report) suggests that readers who already write automated tests will find it easiest to follow.
Beginners to Python or to AI evaluation can follow the explanations, but the examples use dataclasses, generics, type hints and async or sync calls, so some Python experience is assumed. The page does not state a target audience, so this is an inference from its content.
What the described framework can do
According to the page, you can: define a Dataset of Cases with inputs, optional expected output, optional metadata and optional case-level evaluators; attach dataset-level evaluators that run on every case; run a task function against all cases with evaluate() or evaluate_sync(); and compare several task implementations on the same dataset (the page's example compares task_v1 and task_v2 using report.averages()).
Evaluators can return a bool (assertion), an int or float (score), a str (label), an EvaluationReason (a value plus an explanation), or a dictionary that mixes several results. Reasons appear in reports when include_reasons=True is used. Evaluators receive an EvaluatorContext with name, inputs, metadata, expected_output, output, duration, span_tree, attributes and metrics.
ReportEvaluators analyse the whole set of results and can produce confusion matrices, precision-recall curves, scalar metrics and tables. Datasets are described as serialisable to and from YAML or JSON and generic over input, output and metadata types. The page names built-in evaluators such as IsInstance, EqualsExpected, Equals and LLMJudge, but does not catalogue them.
An EvaluationReport holds the experiment name, successful case results, failures, analyses, optional trace and span IDs and the dataset name. Each ReportCase carries inputs, output, scores, labels, assertions, task and total durations, metrics, attributes and evaluator failures.
Using it
Requirements
The page does not list requirements. From the examples, you need Python and the pydantic_evals package, and some examples also import pydantic. Python version, dependency versions and installation method are not stated on this page and are unknown.
Tracing is optional: the page says execution time is measured and OpenTelemetry spans are captured if logfire is configured, and that span_tree is available only in that case. Whether and how an LLMJudge evaluator needs a model provider or API key is not explained on this page and is unknown.
How it works
The page describes a five-step flow for an Experiment. First, setup: the dataset loads its cases, evaluators and report evaluators. Second, execution: for each case the task function is called with case.inputs, its duration is measured, OpenTelemetry spans are captured if logfire is configured, and the output is recorded. Third, case evaluation: dataset-level evaluators run, then case-specific ones, and scores, assertions and labels are collected. Fourth, report evaluation: any ReportEvaluators run over the full set of results. Fifth, reporting: everything is aggregated into one EvaluationReport.
Some details are worth noting. If a case has no expected_output, evaluators that need it, such as EqualsExpected, skip that case. Because None is how not provided is spelled, expected_output=None is skipped too, and the page says to use Equals(value=None) to assert that a task returns None. The page also argues that case-specific evaluators, especially case-specific LLMJudge rubrics, help build maintainable golden datasets, since one rubric rarely fits every case.
Setup
The page contains no setup or installation instructions. Its next-step links include pages on evaluators, custom evaluators, report evaluators and dataset management under [https://pydantic.dev/docs/ai/evals/]. The page also links to API reference pages and to a documentation index at [https://pydantic.dev/llms.txt]. Those linked pages were not reviewed, so installation, configuration and logfire setup are not assessed here.
In practice, the page shows that the minimal usage pattern is to import Case and Dataset from pydantic_evals, define a task function, and call dataset.evaluate_sync(task).
Example from the page
The page's comparison example builds a Dataset named comparison_test with one Case (inputs 'hello', expected_output 'HELLO') and the EqualsExpected evaluator. It defines task_v1, which returns text.upper(), and task_v2, which returns text.upper() + '!'. It then calls dataset.evaluate_sync on each and prints the average assertion pass rate.
The page's own comments show V1 pass rate: 1.0 and V2 pass rate: 0. This output is quoted from the documentation; it was not run or checked for this report. The example shows the main idea: the dataset stays fixed while the task changes, so you can see whether a change helps or hurts.
Assessment & evidence
Limitations
The page is an overview. It does not list all built-in evaluators, explain LLMJudge configuration, show dataset file formats in detail, or show report evaluators in action. It contains no version number, no date and no compatibility information.
It makes no claims about accuracy, reliability of LLM-based judging, scale, speed or limits, and none were checked. The page notes that AI systems are probabilistic and so use scores and labels as well as pass/fail checks, but it gives no guidance on how many cases are enough or how to judge whether a score difference is meaningful.
Some code in the page is illustrative: for example, the Confidence evaluator returns a fixed 0.95, and the printed report example shows case.scores as an empty dictionary. Do not treat the examples as production patterns.
Why these concepts matter
Separating Dataset definitions from experiment execution lets developers reuse the same cases and evaluators to compare task implementations.
Case-specific evaluators support different criteria for individual scenarios, while ReportEvaluators analyse results across an entire experiment.
Alternatives
The page does not compare Pydantic Evals with other tools, so no comparison is made here. The page itself offers one reference point: a plain pytest suite with assert statements. It says that evaluators returning bool correspond to assert, and that AI outputs often call for scores or labels as well.
If your outputs are deterministic and only need pass/fail checks, a conventional test suite may be enough. Whether other evaluation frameworks suit your case better is not assessed from this evidence.
Evidence base
The only evidence is one captured copy of the documentation page at [https://pydantic.dev/docs/ai/evals/getting-started/core-concepts/index.md], about 19.9 KB of text. It includes prose, tables and Python code blocks. No source repository, release notes, licence file or linked page was reviewed, and none of the code examples was executed.
Access & freshness
Costs
The page states no prices, plans or usage limits, so the cost of the library is unknown from this evidence. The examples shown use plain Python functions that make no model calls.
The page mentions LLMJudge evaluators and optional logfire-based tracing. It does not say what these cost: model usage for an LLM judge and any logfire service charges are unknown and not assessed.
Rights and licence
The captured page contains no licence statement, copyright notice or terms of use for the documentation text, the code examples or the pydantic_evals library. The licence is therefore unknown from this evidence. Check the project's repository and the documentation site's terms before copying text or code, or redistributing anything.
Freshness
The page was captured on 14 November 2026. It shows no publication date, last-updated date or library version, so how current it is, and which release of Pydantic Evals it matches, is unknown. Because the code examples depend on specific class and parameter names (for example evaluate_sync, include_reasons and Equals), check them against the library version you install.
Suggested next steps
Read this page for the vocabulary, then follow its links to the Evaluators Overview, the built-in evaluators reference and the dataset management page before deciding whether the library fits your project.
Before adopting it, confirm the licence, supported Python versions and install method from the project's own sources. If you plan to use LLMJudge or logfire tracing, check which model providers and services are involved and what they cost.
If you try it, run the page's uppercase example in a throwaway environment first, and treat the documentation's output comments as claims to verify, not as results.
