Evaluations overview
Measure prompt and model behavior using versioned cases, targets, and evaluators.
Evaluations connect frozen test data to versioned generation targets and scoring rules. Configuration uses the management API; run commands and execution state use runtime.
Evaluation resources
- Dataset: logical collection of test cases. Its dataset version contains declared columns/cases, is editable while draft, and must be frozen before a run.
- Evaluator: scoring resource with immutable configuration versions. Exact match compares values without a provider call.
- Target: versioned configuration that generates an output from case inputs (model, route or prompt).
- Suite: connects a dataset version, target columns, evaluator columns, segments and optional release policy.
- Binding: tells a target or evaluator where each input comes from. Target maps run before generation; evaluator bindings can read generated output afterward.
- Run: execution of a prepared experiment with pinned versions and selected cases.
- Trial: one case/target/attempt generation. A case can produce several trials.
- Score: one evaluator's result on a trial;
passed: falsecan be a successful comparison, whilestatus: FAILEDindicates evaluator failure. Human review may remain pending after generation ends.
Build a workflow
Start with datasets and cases, select evaluators, then configure suites and runs. Interpreting results explains completed, failed and pending outcomes.
The prompt evaluation recipe evaluates an unpublished prompt before an explicit release decision. The model evaluation example provides a complete two-case target workflow.
External endpoint targets are represented in SDK types but execution is disabled. Use a prompt, physical model or route target. Evaluation background dispatch is not a durable job queue; preserve run IDs and use bounded polling and recovery.