<aside>
Definition:
A method where the AI iteratively reviews, revises, and refines its own prompts, answers, or reasoning — often autonomously — to improve performance or quality.
<aside>
<aside>
The AI is asked to critique and improve its own output.
Example:
Prompt: Generate a product description for a luxury smartwatch.
AI: [writes a draft]
Follow-up: Critique and revise the previous output for tone, clarity, and persuasion.
Repeat this loop until satisfactory.
</aside>
<aside>
Add CoT reasoning, then use another prompt to validate logic.
Example:
Q: How many legs do 3 dogs and 2 spiders have? A1: Let's think step by step...
Then: Q2: Is this answer correct? If not, fix it.
</aside>
<aside>
Use the AI (or a second AI) to evaluate multiple prompt variants and choose the best.
Structure:
Prompt A → Result A Prompt B → Result B
Evaluator Prompt: Compare A and B and select the better one.
Used in AutoPrompt and Reflexion-style agents.
</aside>
</aside>
</aside>
<aside>
Combine multiple optimized prompts with transition logic. Often used in multi-agent systems or tool-using agents.
Example:
Prompt 1: Extract key entities from this text. Prompt 2: Classify the tone of the message. Prompt 3: Suggest a next action based on tone + entities.
Useful in:
<aside>
Let the model rewrite its own prompt for clarity, brevity, or task alignment.
Prompt: Rewrite the following prompt to be more concise but retain all critical instructions.
Input: "As a customer service agent, respond in a warm and respectful tone to a customer who is upset..."
The rewritten prompt is used downstream. Useful for prompt compression or fine-tuning workflows.
</aside>
<aside>
Let the model generate its own few-shot examples to prime itself.
Step-by-step:
Prompt:
Describe a task. Then generate 3 input-output examples.
</aside>
<aside>
Use prompts to instruct the model on how to write or improve prompts.
Example:
Instruction: You're an expert in prompt engineering. Create a prompt to extract legal obligations from a contract.
This creates scalable prompt design tools. Very useful in:
<aside>
Tools that support this:
PromptToolsAutoGPT, GPT Engineer (for iterative builds)<aside>
The model is prompted to reflect on past errors or outputs to improve future performance.
Example:
After a failed reasoning step, prompt: "What went wrong in the previous reasoning? How can we avoid that mistake?"
</aside>
<aside>
Use AI to generate high-quality training examples to refine or test prompts at scale.
Prompt: Generate 20 realistic support tickets from e-commerce users and label them by urgency and topic.
Use these examples in:
<aside>
| Category | Techniques |
|---|---|
| Iteration | AI-guided loops, Self-refinement, Reflexion |
| Modularity | Prompt stacking, meta-prompts |
| Compression | Reflexive rewriting, abstraction, semantic compression |
| Autonomy | Prompt generation by AI, synthetic example creation |
| Evaluation | AI scoring, evolutionary selection, retrospection |
| Reasoning Boosters | Chain-of-thought, self-verification |
| </aside> |