Advanced Prompting Patterns

Ask a model "What is 17 times 24?" and it often returns a wrong number. Add four words, "Let's think step by step", and the same model works it out and lands on 408. The model itself did not change. What changed is what it wrote first. What it is. Chain of tho

8 lessons, each with runnable code in the browser.

  1. Chain of Thought
  2. Few-Shot Done Right
  3. Self-Consistency & Voting
  4. ReAct & Tool Prompts
  5. Prompt Chaining & Decomposition
  6. Tree of Thoughts
  7. Reflection and Self-Critique
  8. Meta-Prompting

Compilearn home