Skip to content
  1. Home
  2. Guides and documents
  3. Prompt Engineering Techniques

Prompt Engineering Techniques

22 prompting techniques as runnable Jupyter notebooks

What it is

A set of 22 notebook tutorials that each implement one prompting technique, from basic templates through chain-of-thought and self-consistency to tree-of-thought. Each notebook explains the idea and then shows working code. For people who prefer to learn prompting by running examples.

Good for

  • Run a chain-of-thought example
  • Compare prompting techniques side by side
  • Reuse notebook code in a project

What you need

Python with Jupyter and an LLM API key

Worth knowingThe README gives a lot of space to the author's books, newsletter and sponsors.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for learning

See the topic →
  • Generative AI for Beginners

    microsoft/generative-ai-for-beginners

    21-lesson course on building generative AI applications

    GuideGitHub stars: 123k
  • LLM Course

    mlabonne/llm-course

    Free roadmap and Colab notebooks for learning LLM engineering

    GuideGitHub stars: 85k
  • Prompt Engineering Guide

    dair-ai/Prompt-Engineering-Guide

    Reference guide to prompting techniques, papers and notebooks

    GuideGitHub stars: 80k
  • AI Agents for Beginners

    microsoft/ai-agents-for-beginners

    Lesson-based course on the fundamentals of building AI agents

    GuideGitHub stars: 80k