Evaluations
Measure the quality of your app’s intelligence-powered features.
Overview
Use the Evaluations framework to systematically evaluate your app’s intelligence-powered features. Define datasets, generate model responses, apply metrics, and aggregate results, all with type-safe Swift APIs that integrate directly into your development workflow.
[Image]
With the Evaluations framework, you can:
Compare prompt strategies.
Track quality over time.
Catch regressions before they ship.
The framework evaluates your intelligence-powered features against the metrics you define, from simple pass or fail checks to detailed scoring with model-judge patterns. It aggregates the results into summaries that show you which approach performs best and where individual responses fall short. The framework works with any model available through Foundation Models, including on-device, Private Cloud Compute, and other models.
What’s new
Topics
Essentials
Evaluating language model responsesDesigning effective evaluationsBook Tracker: Using Evaluations to evaluate an intelligent featureEvaluating a Core AI modelEvaluation
Datasets
Generating synthetic datasetsDesigning datasets to test your featureModelSampleLoaderSampleGenerator
Metrics and evaluators
Results
Model-judge evaluations
Designing effective model-judge evaluatorsScoring with model-judge evaluatorsModelJudgeEvaluatorModelJudgePromptScoreDimension