Test agents against past cases before release, and monitor accuracy after.
An evaluation set is a collection of past cases with known outcomes: for an invoice agent, invoices with the values a person extracted and the decision they took; for a triage agent, tickets with the queue they ended up in.
Build one by:
Agents → (agent) → Evaluate. The agent version runs against every case in test mode (writes simulated). The report shows:
min_accuracy blocks promotion to production when the evaluation is below the threshold. Gates apply to every new version.
After release, a sample of production runs is compared with human corrections (approvals, rejections, edits) and reported weekly. Drift beyond a threshold raises an alert.
Knowledge bases have their own evaluation sets built from flagged answers and curated question–answer pairs. They run on every index change and report retrieval recall and answer faithfulness.