<< Home | Prompting craft
AI self-corrects through iterative reflection and critique
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2025-01-07 |
The move
Force the model to output a structured cycle of thinking, drafting, self-critique, and satisfaction evaluation before finalizing.Steps
- Instruct the model to perform multiple iterations for a task.
- Require a 'Thinking' section to outline the rationale.
- Require an 'Answer' section for the draft.
- Require a 'Self-reflect' section to critique the draft.
- Require an 'Evaluate satisfaction' section to decide if more iterations are needed.
Prompt for your AI
You will engage in a task that necessitates several iterations to reach the most effective result. For each iteration, please follow these steps and organize your output into distinct sections: 1. Thinking: Outline your thought process. 2. Answer: Present a draft answer. 3. Self-reflect: Critically assess your 'Answer' and pinpoint mistakes. 4. Evaluate satisfaction of the answer: State whether the answer is satisfactory or if additional iterations are necessary. Please await the 'Continue' command before beginning the subsequent. Task: [Insert task here]
What happened
The author sought to improve model accuracy by implementing a feedback loop within the prompt. By forcing the AI to explicitly critique its own drafts and evaluate its satisfaction, the model identifies its own errors. Commenters noted this aligns with 'test time compute' methods used in advanced libraries.Who confirmed it
The author reports the method allows the AI to 'recognize possible flaws in its initial output and make revisions.'Watch out
Models generally lack the capacity for true introspection before delivering a response.Give it to your agent
Read https://howtheyuse.ai/p/ai-self-corrects-through-iterative-reflection-and-critique.md and help me do this.