Wiki: Evaluating Your AI Agent: How Do You Properly Measure Performance?
For agents: Markdown version · Wiki index · Explore
- Speaker: Linoy Cohen
- Event: Reversim Summit 2025
- Video: https://www.youtube.com/watch?v=YIHAw85KVTA
- Transcript: /transcripts/2025/27-YIHAw85KVTA.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: AI and LLMs, Testing, Debugging, DevOps
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
This talk explores how to properly evaluate AI agents before deploying them to production. The speaker demonstrates the evaluation process using a real-world example of a wine-pairing agent. The main argument is that evaluation is not just a single accuracy number, but an iterative process that requires end-to-end testing, trajectory evaluation, and rigorous error analysis. The audience learns best practices for building evaluation sets, using LLMs as judges, and aligning judge models with human experts.
Key points
- 2:26 Evaluating AI agents is more complex than standard LLMs because you must evaluate the entire process and trajectory, not just the final output.
- 5:37 Building an evaluation set requires creating a golden set of diverse scenarios, features, and personas to approximate real production traffic.
- 8:56 Agent evaluation covers three main pillars: end-to-end performance, trajectory optimization, and individual component evaluation.
- 12:13 While code-based and human evaluations have limitations, LLM-as-a-judge provides a scalable and cost-effective alternative despite inherent biases.
- 15:31 To ensure reliable automatic evaluation, judge models must undergo an alignment process with human experts using train and test splits.
- 22:45 Evaluation does not end with an accuracy score; error analysis is essential to understand why the agent fails and how to improve it.
Takeaways
- Build a diverse evaluation set covering multiple features, scenarios, and user personas before production deployment.
- Evaluate agents across three dimensions: end-to-end results, execution trajectory, and individual component behavior.
- Implement an alignment process for LLM-as-a-judge models by comparing their results against human expert evaluations.
- Perform detailed error analysis on failing test cases to identify root causes and systematically improve the agent.
Questions this talk answers
- How do you evaluate the trajectory and intermediate steps of an AI agent rather than just its final response?
- What are the best practices for mitigating biases when using an LLM as a judge for evaluation?
- How can you systematically perform error analysis on an AI agent to fix specific production failures?
Technologies
LangFuse, GPT-4, OpenAI
Tags
ai agents, error analysis, llm as a judge, llm evaluation, production readiness