AI & Machine Learning / 21:28

Create robust evaluations for agentic apps

AI & Machine Learningiosipadosmacosvisionos

Key Points

  • Explains how to leverage advanced features of the Evaluations framework to build robust evaluations for an app.
  • Covers evaluating flows with tool calling and dynamic conditions, and how to define what correct behavior means for the use case.
  • Shows how to generate synthetic data, use judges effectively, and validate the datasets for reliable results.
  • The session moves through The dataset problem in BookTracker, Generating synthetic data with makeSamples, Customizing generation with SampleGenerator, Sampling strategies, Validating synthetic samples, Comparing evaluation results, and related wrap-up guidance.
  • Key concepts include Evaluations framework, ModelSamples, SampleGenerator, ToolCallEvaluator, ModelSample, TrajectoryExpectation, LanguageModelSession, Foundation Models.
  • Platform coverage: ios, ipados, macos, visionos.

Condensed Flow

01

The dataset problem in BookTracker:

Focuses on BookTracker.

02

Generating synthetic data with makeSamples:

Focuses on ModelSamples, SampleGenerator.

03

Customizing generation with SampleGenerator:

Focuses on SampleGenerator.

04

Sampling strategies:

Focuses on SampleGenerator.

05

Tool calling and tool evaluations:

Focuses on ToolCallEvaluator.

06

Trajectory expectations:

Focuses on ModelSample, TrajectoryExpectation.

More Detail

Additional details

  • Detailed flow: The dataset problem in BookTracker -> Generating synthetic data with makeSamples -> Customizing generation with SampleGenerator -> Sampling strategies -> Validating synthetic samples -> Comparing evaluation results -> Tool calling and tool evaluations -> Trajectory expectations -> ...
  • APIs and concepts to recognize: Evaluations framework, ModelSamples, SampleGenerator, ToolCallEvaluator, ModelSample, TrajectoryExpectation, LanguageModelSession, Foundation Models.
  • Implementation focus: SampleGenerator, ModelSample, TrajectoryExpectation, Evaluations framework, LanguageModelSession, Foundation Models, ModelSamples, ToolCallEvaluator.

Resources