Evaluator-optimizer
clears thresholdbelow thresholdacceptance threshold (illustrative)
- Generator produces draft v1.
- Evaluator scores it against an explicit rubric.
- Targeted critique conditions the next generation.
- Terminates at the threshold or max_rounds.
Notes & references
Use when
Explicit rubrics exist and critique measurably improves output.
Avoid
Ungrounded LLM judges (sycophancy) and uncapped rounds.
draft = writer(task)
for round in range(MAX_ROUNDS):
score, advice = reviewer(draft, rubric)
if score >= PASS_MARK:
break
draft = writer(task, draft, advice)
return draft
- Building effective agentsAnthropic
- Self-RefineMadaan et al.
- Demystifying evals for AI agentsAnthropic
- Harness design for long-running appsAnthropic