Method

Trace-based error analysis

Find which component of a workflow causes failures.

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

Steps

  1. Collect examples where the output falls short
  2. Read the traces step by step
  3. Compare each step with human-level performance
  4. Count errors per component and prioritize fixes

Covered in

State of Agents with Andrew Ng

In this fireside chat, Andrew Ng argues for treating agents as a spectrum of 'agentic' systems with varying autonomy, and stresses that much business value lies in fairly linear workflows. He teaches practical skills for agent builders: decomposing work into steps, building quick-and-dirty evals early, assembling a broad toolkit of 'Lego bricks', and he discusses voice stacks, MCP, agent-to-agent protocols, AI-assisted coding, and startup success predictors.

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

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.

Agentic AI (Full Course Recording)

Andrew Ng teaches how to build agentic AI workflows, where an LLM-based app executes multiple steps to complete a task, and argues that the key differentiator between effective and less effective builders is a disciplined process of evals and error analysis. He covers task decomposition, four design patterns (reflection, tool use, planning, multi-agent collaboration), how to build and iterate evals, how to use traces to find which component to improve, and how to optimize cost and latency later.