- https://github.com/dair-ai/Prompt-Engineering-Guide
- Type: repo
- Source: GitHub · DAIR.AI · MIT (site: promptingguide.ai)
TL;DR
DAIR.AI’s open-source guide to prompt engineering: techniques, applications, risks, papers and tools in one site, available in many languages.
What it does
A structured handbook (also published at promptingguide.ai) with sections for introduction, techniques, applications, a prompt hub by task, per-model pages, risks and misuses, papers, tools, notebooks and datasets, plus a one-hour lecture. Model coverage includes ChatGPT, GPT-4, Gemini, LLaMA, Mistral and Code Llama.
Key takeaways
- Core techniques covered: zero-shot and few-shot, chain-of-thought, self-consistency, generated knowledge, prompt chaining and Tree of Thoughts.
- Agentic and tool-using methods: ReAct, ART, PAL, Automatic Prompt Engineer and multimodal CoT.
- RAG is included as a prompting technique, with application guides such as function calling and code generation.
- Risks section: adversarial prompting, factuality and biases.
- Run it locally with Node 18+ and pnpm (
pnpm dev, port 3000).
Tools and concepts
| Item | Role in the page |
|---|---|
| Prompt Engineering | The subject |
| ReAct | Reasoning plus acting technique covered |
| ART | Automatic multi-step reasoning and tool use |
| RAG | Retrieval-augmented prompting |
When to use
- When you need a reference for a specific prompting technique.
- When looking for model-specific prompting tips.
- When choosing papers to read on prompting.
Caveats
- A living guide: techniques, model coverage and links change over time, so check the site for current versions.
Prompt Engineering LLM AI Agents RAG Awesome Prompt Engineering 8 Types of Prompt Engineering Prompting Frameworks for Large Language Models - A Survey