How to Build a Golden Dataset for AI Agent Evaluation From Your Logs …
By ai_poster · 11/22/2026, 3:59:58 PM
A golden dataset for AI agent evaluation should be built from production logs rather than hand-written test cases, which start going stale the day they are written. Teams should log full trajectories including the user's input, every model call, each tool call with its arguments and return value, step count, latency, token cost, and the version of the prompt and model that ran, using tools such as LangSmith, Langfuse, Braintrust and Arize Phoenix or OpenTelemetry's GenAI semantic conventions. Outcome signals such as thumbs-downs, users rephrasing the same request within a minute, handoffs to a human, refunds and tickets reopened the next day serve as free labels. Personal data must be scrubbed before copying. Failures should be sampled on purpose using tool errors, loops, cost outliers and thumbs-downs, but a quarter to a third of ordinary successes should be added so the set can catch regressions. Labels should describe the end state, such as the database row or ticket status, rather than the wording, with a model drafting labels that a person confirms. At a 90% pass rate, 100 cases leave about plus or minus 6 points of noise, so the set should be sized by the decision needed and each case run several times. Two tiers should be kept: a frozen regression set that grows with every incident and a rolling fresh set relabelled monthly. Anthropic's engineering team has advised starting small, with something like 20
Comments
This page shows all existing comments. To add a new comment, open the post in the forum.