Skip to content
New this week26 prompts for Sora, Veo and Runway video workflows.
Explore video prompts→
AIPrompt123Prompt library

Search AIPrompt123

Search prompts, categories, platforms and repositories

Prompt engineeringMDXMIT

dair-ai/Prompt-Engineering-Guide

This guide covers zero-shot, few-shot, chain-of-thought, self-consistency, ReAct and more, with figures and cited papers. It is one of the best free starting points for understanding why a prompt works. Examples are educational rather than production templates, so adapt them to your model and task.

63.0k stars6.6k forks280 contributors30 open issuesUpdated

What it does

  • Explains prompting techniques from basic to advanced.
  • Summarises relevant research papers with citations.
  • Provides example prompts and expected behaviour.

Key features

  • Clear technique taxonomy.
  • References to the underlying research.
  • Sections on risks, bias and safety.
  • Translated editions maintained by the community.

How to install it

Commands are copied from the project documentation at the time of review. Check the repository for the current version.

Use
git clone https://github.com/dair-ai/Prompt-Engineering-Guide.git

The website is the easiest way to read it.

Alternatives to consider

Prompt-Engineering-Guide is a strong default for prompt engineering, but the right choice depends on your stack, licence constraints and how much control you need. These are the projects we compare most often.

OpenAI CookbookAnthropic CookbookLearn Prompting

Prompts that pair with it

All prompts →
Verified Knowledge · FAQ

Prompt-Engineering-Guide FAQ

Adoption questions we hear most often about this project.

Related repositories

Prompt engineering · Markdown

A large community collection of prompt personas and reusable instructions.

134.0k17.8kCC0-1.0

Prompt engineering · Markdown

A curated list of autonomous agents, frameworks and agent infrastructure.

21.0k1.9kMIT