Evaluations framework
Asked on 2026-08-14
1 search
The Evaluations framework is a new Swift framework from Apple for measuring the quality of intelligence-powered features in your apps.
What it’s for
It helps you:
- Assess and track AI feature quality over time
- Measure both quantitative and qualitative behavior
- Evaluate stochastic systems like language models, classifiers, and regression models
- Ship with confidence by understanding how changes affect output quality
Why it exists
Apple says AI features are hard to test with traditional unit tests because:
- The same input can produce different outputs
- You can’t rely on deterministic, exact output matching
- Unit tests are therefore often insufficient for generative AI features
What it includes
The framework provides:
- Data loading and building diverse datasets
- Quantitative metrics using evaluators and metrics
- Qualitative metrics using model judges and score dimensions
- Support for synthetic data generation
- Tools for evaluation-driven development and hill climbing
- Integration with Swift Testing and Xcode
Where it fits
Apple presents it as part of a broader workflow for building intelligence features in Swift apps, especially alongside the Foundation Models framework.
If you want, I can also summarize:
- how to build your first evaluation,
- how model judges work,
- or how it’s used for agentic apps.

Meet the Evaluations framework
Learn how to evaluate model-driven experiences using the Evaluations framework. In a probabilistic world, unit tests alone won’t suffice. Discover how to define metrics, automatically grade outputs, and aggregate statistics to ensure your AI-powered features perform reliably across Apple’s platforms.

Create robust evaluations for agentic apps
Learn how to leverage advanced features of the Evaluations framework to build robust evaluations for your app. Explore evaluating flows with tool calling and dynamic conditions, and how to define what correct behavior means for your use case. Discover how to generate synthetic data, use judges effectively, and validate your datasets for reliable results.

What’s new in the Foundation Models framework
Explore what’s new in the Foundation Models framework. Learn how to access Private Cloud Compute, integrate third-party and open source models, and work with vision capabilities. Discover context management APIs, built-in semantic search, and powerful primitives for creating agentic experiences in your apps.
