NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Senior1 view

How would you build a system for evaluating the quality of a generator, agents, and pipelines? Have you ever configured such a system?

Practice

Asked at

AI answer

I would build a multi-level evaluation using a fixed set of representative tasks: unit tests for components, integration tests for the pipeline, and end-to-end scenarios. For the generator, I would measure factual accuracy, completeness, faithfulness to sources, citation quality, and appropriate refusal; for retrieval, the recall and precision of the evidence retrieved; and for agents, task success, correctness of tool selection, number of steps, errors, and compliance with constraints. For the pipeline, I would also measure latency, cost, and resilience to failures. I would supplement automated metrics with blind expert review and calibration of automated judges. All runs should be reproducible: version the dataset, prompts, models, and configuration; save traces; compare against a baseline; and run regression checks when changes are made. If you have configured such a system, describe a specific set of metrics, the annotation process, and an example of an improvement; otherwise, honestly describe the proposed approach.