Model evals compare models on benchmarks, while task evals check whether an application works for its users. Dhinkaran describes LLM-as-a-judge, user feedback, and heuristic approaches as common ways to evaluate applications.
Lessons from the Trenches: Building LLM Evals That Work IRL
Speaker
Aparna Dhinkaran, co-founder of Arize, explains how teams can build and use LLM evaluations for real applications at an AI Engineer event.
In a chat-to-purchase example, a router sends a customer’s request down an execution path. Dhinkaran shows a request about phone promotions routed to product search instead of the promotions function, noting that a wrong initial call can throw off the rest of the workflow. She recommends checking both the chosen function and the parameters passed to it.
Using Arize’s open-source Phoenix, Dhinkaran walks through a trace that shows the user’s request, the generated function call, and the application’s execution. She recommends using traces and eval explanations to locate errors, add examples to a dataset, and run experiments as prompts or components change. Teams can develop evals during building, then monitor applications and run eval jobs in production.
Dhinkaran describes evals at session, trace, and span levels so teams can investigate behavior at different scales. She says a score alone can be hard to act on and recommends explanations that point teams toward what to inspect or fix.
In a spelling experiment, an LLM judge gave documents with about 80% and 11% corrupted text the same score of 10, leading Dhinkaran to caution against relying on numeric scores alone. She also describes tests where fact placement in a long context affected retrieval, and a retrieval-with-generation task where GPT-4 initially performed almost four times worse than Claude 2.1. Asking GPT-4 to explain before answering substantially improved its generation performance.
Takeaways
- Separate model comparisons from evaluations of whether your application completes its task.
- For routed workflows, evaluate the selected function and the parameters it receives.
- Use traces and evaluation explanations to find where a failure occurred and guide iteration.
- Design evals at session, trace, and span levels as application behavior becomes more complex.
- Check whether numeric scores distinguish performance meaningfully, and test retrieval and generation separately.
Mentioned in this talk
Search inside this talk
What was claimed 8
- builtopen-source AI observability platform
“Phoenix is our lovely open-source project.”
5:16inFrom Vibes to Production: Evaluating and Shipping AI Agents That Work 101YouTube Verified13 sources· Talk, Job posting, Web· archived
- foundedAparna Dhinakaran founded
Arize AICo-founder and CPO“I'm one of the founders of Arize”
0:03inBreak It 'Til You Make It: Building the Self-Improving Stack for AI AgentsYouTube Verified9 sources· Talk, Web· archived
- feature
Arize AI: LLM evals and observability“We do LLM evals and observability.”
YouTube Unverified1 source· Talk
- featureLLM-as-a-judge: Evaluates AI responses using inputs, output, and possibly context
“using AI to evaluate AI”
YouTube Unverified1 source· Talk
- featurePhoenix: View application traces and inspect where function calls go wrong
“a very simplified trace of the application”
YouTube Unverified1 source· Talk
- featureVector RAG: Retrieves context for generation; fact placement in the context window can affect retrieval
“whether placement in the context window matters”
YouTube Unverified1 source· Talk
- featureGPT-4: Generation performance improved when prompted to explain itself before answering
“When we asked GPT-4 to explain itself and then answer, we saw a remarkable jump in generation performance.”
YouTube Unverified1 source· Talk
- metricGPT-4: Did almost four times worse than Anthropic 2.1 on the described generation task before prompt modification
“GPT-4 ... did almost four times worse than Anthropic 2.1.”
YouTube Unverified1 source· Talk











