Section 4

Output Layer

Evals & Production Monitoring

INPUT LAYER DATA AND MODEL LAYER APPLICATION LAYER OUTPUT LAYER Evals Production Monitoring CHALLENGES

What's in the Output Layer

Quality Verification

Quality verification became the bottleneck for shipping AI.

Evals

Model Evals vs Product Evals

Model Evals vs Product Evals

Model evals test the underlying model (benchmarks, capabilities). Product evals test your system (task completion, user success). Both matter—but product evals determine if you ship.

Evals
Evals

Offline Quality Assurance

Run before deployment. Test against known datasets. Catch regressions before users see them. Answer: "Is this change safe to ship?"

Monitoring

Online Quality Assurance

Run in production. Track real user interactions. Catch issues evals missed. Answer: "Is this working for actual users?"

Evals

Evals vs Monitoring: When They Run

Online vs Offline Timing

Evals run offline before deployment. Monitoring runs online in production. Both essential—different timing, different purpose.

Evals

The eval mental model: What are you actually testing?

Every eval answers one of three questions. (1) Can it do the task at all? Capability. (2) Does it still do the task after changes? Regression. (3) Does it do the task the way we want? Alignment. Know which question you're asking.

Evals

Four Buckets for Agent Evaluation

1. Task Completion

Did the agent achieve the goal? Binary success/failure on well-defined objectives. The baseline metric.

2. Trajectory Quality

How did it get there? Efficient tool use, sensible step ordering, recovery from errors. The path matters.

3. Safety & Boundaries

Did it stay in bounds? No unauthorized actions, proper escalation, respecting guardrails. Trust requires limits.

4. Resource Efficiency

What did it cost? Tokens consumed, API calls made, time elapsed. Efficiency at scale.

Evals

The Grader Stack: Who Evaluates?

Three Evaluation Approaches

Deterministic checks first (fast, cheap). LLM-as-judge for scale (the 2025 breakthrough). Human review for calibration and edge cases.

Evals
Capability Evals

"Can it do new things?"

Testing new features. Expanding to new domains. Pushing boundaries. Run when adding capabilities.

Regression Evals

"Does it still work?"

Catching breakage. Model updates, prompt changes, dependency shifts. Run on every change. Non-negotiable.

Monitoring

The Eval Flywheel: How Quality Compounds

Continuous Improvement Flywheel

Ship → Observe → Curate failures into eval cases → Eval before next deploy → Improve → Ship again. Each cycle makes the system more robust.

Building AI Products

If You're Building AI Products, Know This

Output Layer: Key Takeaways