Preetika says agents are hard to make reliable in production, so teams need evaluations to understand how they behave. Daniel recommends first improving the agent’s tools, then considering a separate critique agent with a remediation loop to catch gaps.
How Evals and Prompts Shape Agent Behavior
Speakers
Preetika Bhateja and Daniel Bump, who work on image and video models for YouTube Ads, explain how to build and use agent evaluations at AI Engineer.
Daniel says evaluations should define good behavior in strict, measurable terms. Early on, the team found it useful to inspect outputs and iterate from intuition before building a comprehensive eval, since prompt changes and architecture shifts could bring large gains. Preetika recommends starting with a few core tasks, including checks for things the agent should avoid.
Preetika recommends giving raters clear rubrics and examples, and asking them to explain pass or fail judgments. For ad generation, ratings covered several dimensions, including accuracy and brand safety, so explanations helped show where the system fell short. The team also compared human and LLM ratings through sampling pipelines and monitored their agreement.
Preetika describes using agent traces to find a failure that pass rates missed: the agent removed a legal disclaimer despite repeated instructions to preserve it. Daniel recommends reviewing eval metrics and adjusting the eval, rating guide, model, or tools as needed. They advise looking for recurring patterns across examples rather than changing a prompt in response to one nondeterministic run.
Preetika recommends testing edge cases, keeping a test set, and refreshing it sparingly with production data. Daniel says evals and curated golden sets should evolve with the product and its use cases. Teams should set launch criteria early, choose relevant metrics, and use evals to identify regressions and assess trade-offs.
Takeaways
- Optimize the agent’s tools before investing in larger evaluations.
- Begin with a few core tasks and use observed failures to shape the eval.
- Give raters clear examples and collect reasons for their judgments.
- Inspect traces and look for repeated failure patterns across multiple examples.
- Refresh test data from production and define launch criteria before rollout.
Mentioned in this talk
Search inside this talk
What was claimed 5
- previously atDaniel Bump previously at YouTube Ads
“We work on the YouTube Ads team”
YouTube Unverified1 source· Talk
- works atPreetika Bhateja works at YouTube Ads
“We work on the YouTube Ads team”
YouTube Unverified1 source· Talk
- featureAgent evaluation: Measures target behavior and helps assess changes and ablations
“a way of proving the value of changes you make, as well as running ablation experiments”
YouTube Unverified1 source· Talk
- featureRuntime traces: Can expose reasoning behind failures that categorical pass rates do not reveal
“We couldn’t find that just by looking at a categorical pass rate, so we had to look at the traces”
YouTube Unverified1 source· Talk
- featureOnline evaluations: Help ensure evaluation data matches real-world representation
“invest in online evals and make sure your data matches real-world representation”
YouTube Unverified1 source· Talk











