liveBook · Manning

Reflective prompting

As explained in Introduction to Generative AI, Second Edition

Self-reflection prompting is a technique that instructs a model to review, critique, and revise its own output.

Suppose an AI assistant drafts a product description that sounds persuasive but may not fit a brand’s voice. Reflective prompting asks the model to review its own draft, identify possible weaknesses, and suggest or make revisions. It turns a single response into a feedback loop. section 7.6

A review-and-revise prompt

“Review your answer for potential mistakes or missing details, and revise accordingly.” A more targeted request could ask the model to check a product description for persuasiveness and brand consistency. section 7.4 section 7.6

Reflexion is a formalized form of self-reflection. Reviewing and revising can be useful for code generation and open-ended writing, where refinement is expected. But a model may invent a flaw in a correct answer and introduce an error while trying to fix it. When a full rewrite is unnecessary, verification prompting offers a lighter alternative: ask for a final accuracy check and change the answer only if an obvious problem appears. section 7.4

Self-reflection does not replace evaluating the result. Prompt development still involves drafting, testing, assessing model behavior, and revising instructions; the model’s critique is another input to that process, not proof that the final answer is correct. section 7.4 section 7.6

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines a review-and-revise feedback loop and explains its risks without specifying an implementation procedure.
Examples
Uses review instructions, a marketing product description, and coding tasks evaluated with HumanEval.
What it assumes
Introduces self-reflection as a general prompting technique without requiring code or model internals.
What you can do after
Practice/perform it by requesting a critique and revision, then checking whether the changes actually improve the response.
How it connects
Contrasts reflexion with verification prompting and connects self-reflection to prompt engineering and iterative refinement.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.