MemotivaPrompt Engineering Patterns: Tree of Thoughts, Graph of Thoughts, Self-Refine, Reflexion

What is Self-Refine prompting?

Prompt Engineering Patterns: Tree of Thoughts, Graph of Thoughts, Self-Refine, Reflexion

Audio flashcard · 0:19

Nortren·

What is Self-Refine prompting?

0:19

Self-Refine is an iterative pattern where the model generates an initial answer, then critiques its own output, then produces an improved version based on the critique. The cycle repeats until a stopping criterion is met. Self-Refine works because LLMs are often better at recognizing problems in existing text than at producing perfect output on the first try.
arxiv.org