Evals — Evaluation Suites
This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.
Summary
Section titled “Summary”Evals answers: what evidence would show that generated artifacts, model understanding or application behavior meet expectations?
When to use it
Section titled “When to use it”Use evaluation suites to keep cases, expected outcomes, target model elements and provenance together. Begin with one target and one unambiguous expectation. The archive format supports generation, understanding and behavior tiers; it is a supporting artifact rather than a dedicated implemented-model editor. A runner must be specified separately.
Common mistakes
Section titled “Common mistakes”- Using an agent’s plausible answer as its own ground truth.
- Treating validation of an eval file as execution of its cases.
- Combining generation, understanding and behavior results into an unexplained pass claim.
Background and history
Section titled “Background and history”Evaluation suites apply established testing practices to artifacts and agent-assisted workflows. Promptfoo’s test-case documentation illustrates the explicit separation of inputs and assertions in a contemporary evaluation tool. ContextBrew’s own evals format declares golden, property, probe and Gherkin cases with target links and provenance; it is not Promptfoo’s configuration format.
Choose a judgment that matches the claim. A golden comparison detects an output change, a property checks a general obligation, a probe tests a particular answer and a behavioral scenario exercises an implementation through a runner. Record where the expected answer came from and what tolerance applies. Validating the suite’s JSON establishes that it can be read; it does not run the cases or establish that an answer is correct. See Oracles and rubrics for the distinction between recorded checks and attributed judgment.
Alternatives and trade-offs
Section titled “Alternatives and trade-offs”Unit and end-to-end tests remain appropriate for implementation behavior. Golden files help with deterministic artifacts; property-based tests explore broader inputs; human review handles judgments that lack a trustworthy automatic oracle. Use the eval artifact to connect the chosen evidence to a model scope.
References
Section titled “References”- Promptfoo’s test-case documentation
- Learning with models — choose a practice workflow and interpret its results.
