Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Evaluator-optimizer

Topic: AgentsAlso called generator-critic loop

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.

  • 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.