liveBook · Manning

Continuous improvement

As explained in Build AI-Enhanced Web Apps

Self-refine is a technique in which a language model generates an output, critiques it with self-provided feedback, and iteratively revises it without additional training.

Self-refinement improves an LLM output through a feedback loop: the model generates an initial response, critiques it, and revises it. Repeat the cycle until the response meets a desired quality standard. The process requires no additional training data or reinforcement learning. section 5.5.2

Use iterative refinement when:

  • A task has complex or hard-to-define goals, such as rewriting a review or optimizing code. section 5.5.2
  • An AI response needs to be reshaped into structured data through multiple query rounds; this can improve results but consumes more resources and tokens. section 4.3.2
  • A long document is summarized chunk by chunk, refining the current summary as each new chunk is processed. Poor early summaries can propagate errors. section 7.1.2

How Build AI-Enhanced Web Apps covers it

How deep it goes
Defines a repeatable generate-critique-revise loop but does not specify an implementation or stopping mechanism beyond meeting a quality standard.
Examples
Uses review rewriting, code optimization, structured-output reprompting, and chunk-by-chunk document summaries as examples.
What you can do after
Apply repeated generation, self-critique, and revision to improve an output without additional training.
How it connects
Links self-feedback to prompt engineering, structured data generation, and document summarization.

Also explained in

Compare how 30 books explain continuous improvement →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI-Enhanced Web Apps. The section links point to the parts of the book it draws on.