sagelearnai

Advanced Prompt Patterns

Beyond clear instructions and examples, a set of techniques reliably helps on harder tasks. Each has a cost (more tokens, more calls, more latency), so use them where your eval shows they pay off.

In this lesson

  • 1. Prompt chaining
  • 2. Self-consistency (sample and vote)
  • 3. Generate → critique → revise (reflection)
  • 4. Decomposition and least-to-most
  • 5. Meta-prompting and prompt generation
  • 6. Role and audience framing
  • 7. Long-context techniques
  • 8. Constraining the output space
  • Technique selection guide

This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.