Evaluator-optimizer
Definition
A loop where one model call writes an answer and another grades it against criteria, sending feedback until the answer passes.
In more detail
The generator writes a draft, the evaluator scores it and explains what is wrong, and the generator revises. Translation, code that must pass tests and writing that must follow a style guide all fit, because there are clear criteria and revision measurably helps.
The evaluator does not have to be a model: tests, linters and schema validators are cheaper and more reliable when they can express the criteria. Cap the number of rounds, since some drafts never satisfy the critic, and log both sides so you can see whether the loop is improving anything.
Related terms
Agentic workflow
A mostly predefined sequence of LLM calls and tool steps, where the developer fixes the path and the model fills in each step.
LLM-as-a-judge
Using a model to grade another model's outputs against written criteria, ideally checked against a sample of human-labelled cases.
Prompt chaining
Splitting a task into a fixed sequence of model calls where each call works on the output of the previous one, with checks in between.
Read more about Evaluator-optimizer
- LLM-as-a-judge: grading outputs you can trust
Write narrow grading criteria, check the judge's verdicts against your own labels and decide when its agreement is good enough.
- Workflows vs agents: start with the simplest thing that works
Most LLM features should be a fixed workflow, not an agent. How to tell which one you need, when an agent earns its cost, and the useful patterns in between.
- LLM evaluation
Measuring AI system quality with datasets, code checks and model-graded tests.