Prompting - Unit 14: Reflextion

 

Reflexion Prompting

Enabling the Model to Reflect, Review, and Revise Its Own Reasoning


🎯 Definition:

Reflexion is a prompting strategy where the model not only generates an answer — it critiques its own output, identifies possible errors or weaknesses, and improves upon the initial result through self-feedback.

This mimics how humans revise a rough draft, debug code, or recheck a calculation before submission.


🧠 Why It Works:

  • Boosts accuracy and reduces simple mistakes

  • Encourages critical thinking patterns in the model

  • Useful for tasks with ambiguity, logic chains, or structured outputs

  • Especially strong in multi-step problems, technical writing, or compliance


Use Cases by Skill Level — With Full Execution and Explanation


🟢 Novice Use Case

Prompt:

“What’s 14 x 12? First answer the question, then reflect on whether your answer is correct.”

Model Output:

Initial Answer: 14 x 12 = 164
Reflection: Wait — let me double-check. 14 x 12 = (10 x 12) + (4 x 12) = 120 + 48 = 168
Revised Answer: The correct answer is 168.

🧠 Why Use This:
Teaches users that quick answers can be wrong, and builds a habit of back-checking work — useful in basic math, spelling, or first-step validation.


🟡 Intermediate Use Case

Prompt:

“Summarize the plot of The Great Gatsby, then reflect on whether anything important might be missing or misrepresented.”

Model Output (excerpt):

Initial Summary: The Great Gatsby is a novel by F. Scott Fitzgerald about a wealthy man named Jay Gatsby who throws extravagant parties in hopes of rekindling a romance with Daisy Buchanan.
Reflection: This summary misses key themes like the American Dream, class tension, and Gatsby’s tragic end. Also, Nick Carraway’s role as narrator is important.
Revised Summary: The Great Gatsby follows narrator Nick Carraway as he observes the mysterious millionaire Jay Gatsby’s pursuit of Daisy Buchanan, revealing themes of illusion, ambition, and disillusionment with the American Dream.

🧠 Why Use This:
Encourages content verification and thematic awareness — ideal for students, writers, and educators who want depth over speed.


🔴 Expert Use Case

Prompt:

“You are an AI assistant helping review a contract clause about data ownership. Draft the clause, then reflect on potential legal ambiguities or risks in your own wording.”

Model Output (excerpt):

Initial Clause:
“The Client retains ownership of all data processed through the platform.”

Reflection: This clause may be too vague. It doesn’t define what ‘data’ includes (e.g., raw input vs. derived data), nor does it clarify rights to aggregated analytics. It also doesn’t address third-party access or jurisdictional conflicts.

Revised Clause:
“The Client retains full ownership of all data submitted to the platform, including input data and resulting output. The Provider may access anonymized, aggregated analytics for internal improvement purposes only, unless otherwise agreed in writing.”

🧠 Why Use This:
Simulates legal or compliance review processes, enabling the model to critique nuance, identify liability gaps, and revise accordingly — ideal for law, policy, finance, or enterprise-grade documentation.


🔚 Targeted Summary: When and Why to Use Reflexion

Use Reflexion Prompting when you want the model to function not just as a responder — but as its own critic and reviser.

  • For novices, it builds metacognitive awareness (“check your work”).

  • For intermediates, it catches missing details or thematic gaps.

  • For experts, it simulates legal, technical, or editorial reviews — offering higher confidence and depth.

In short:
Use Reflexion when the first answer isn’t enough — and thoughtful revision matters.

Comments

Popular posts from this blog

Prompting - Unit 9: Automatic Prompt Engineer (APE)

Intro to Prompting

Prompting Detail