# Evaluating Your AI Agent: How Do You Properly Measure Performance?

- Speaker: [Linoy Cohen](/wiki/speakers/linoy-cohen.md)
- Event: [Reversim Summit 2025](/wiki/years/2025.md)
- Video: https://www.youtube.com/watch?v=YIHAw85KVTA
- Transcript: [/transcripts/2025/27-YIHAw85KVTA.md](/transcripts/2025/27-YIHAw85KVTA.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [AI and LLMs](/wiki/topics/generative-ai.md), [Testing](/wiki/topics/testing.md), [Debugging](/wiki/topics/debugging.md), [DevOps](/wiki/topics/devops.md)

> 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](https://www.youtube.com/watch?v=YIHAw85KVTA&t=146s) 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](https://www.youtube.com/watch?v=YIHAw85KVTA&t=337s) Building an evaluation set requires creating a golden set of diverse scenarios, features, and personas to approximate real production traffic.
- [8:56](https://www.youtube.com/watch?v=YIHAw85KVTA&t=536s) Agent evaluation covers three main pillars: end-to-end performance, trajectory optimization, and individual component evaluation.
- [12:13](https://www.youtube.com/watch?v=YIHAw85KVTA&t=733s) While code-based and human evaluations have limitations, LLM-as-a-judge provides a scalable and cost-effective alternative despite inherent biases.
- [15:31](https://www.youtube.com/watch?v=YIHAw85KVTA&t=931s) To ensure reliable automatic evaluation, judge models must undergo an alignment process with human experts using train and test splits.
- [22:45](https://www.youtube.com/watch?v=YIHAw85KVTA&t=1365s) 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
