Source

Improve Agentic Performance with Evals and Error Analysis, Part 2: Best practices for error analysis in agentic AI development, and how LLMs make them easier

Open the source

Andrew Ng explains the core ideas and best practices of error analysis for agentic AI workflows, using a Deep Research agent as an example. He teaches examining traces step by step against human level performance, starting informally and growing more rigorous, and argues that because LLMs improve rapidly, error analysis can also prompt rearchitecting workflows, such as removing scaffolding and letting the LLM do more.

- Error analysis means reading the traces of each workflow step to find which step most often performs materially worse than a human would. - Benchmarking to human level performance (HLP) is the key reference point for judging steps. - Error analysis need not take much work to start; reading one or a handful of traces informally is fine. - As the system matures, teams can move toward rigorous analysis with large, regularly refreshed datasets that quantify each step's contribution to errors. - Because LLMs are improving rapidly, workflow decomposition is now iterated far more often than in earlier ML pipelines. - If steps are each good individually but collectively underperform a human, the workflow may be too rigid, signaling a chance to remove hard-coded steps.

Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.

Supports these rules

Quotes from this video

“The key principle is to look at the steps of the workflow and see which steps did a bad job on a given input, often by benchmarking to human level performance (HLP).”

“it is fine to start by reading one or just a handful of traces informally to get a sense of what might be going wrong.”

“the most important thing is to systematically examine traces to understand when the agent is falling short of”

“This is often a good move when you now have access to a smarter LLM than you did when you first built a workflow.”

“if error analysis shows that a sequence of steps collectively underperforms compared to what a human might do, even though the performance of each individual step is good. This might indicate that the way those steps are carried out is too rigid.”

Topics