Prompt Engineering Guide

Stale
GitHub MDX MIT

Description

Comprehensive guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.

Key Features

  • Prompt engineering techniques - systematic coverage of Zero-Shot, Few-Shot, Chain-of-Thought, Tree of Thoughts and other core methods
  • RAG and tool-use guides - detailed coverage of Retrieval Augmented Generation, ART, ReAct and other reasoning-with-tools techniques
  • Model-specific guides - dedicated prompting strategies for ChatGPT, GPT-4, LLaMA, Gemini, Mistral, Code Llama and more
  • Application template library - prompt templates for classification, coding, math reasoning, summarization, image generation, information extraction
  • Multi-language support - available in 13 languages serving over 3 million learners as a global knowledge resource
  • Adversarial prompting and safety - covers prompt injection, jailbreaking attacks and defense strategies

Use Cases

💡 Beginners systematically learning prompt engineering from scratch to master core LLM interaction techniques
💡 Developers referencing prompt templates in production projects for classification, summarization, code generation tasks
💡 Researchers tracking the latest prompt engineering papers and methods like CoT, ToT, RAG
💡 Enterprise teams conducting LLM application training to unify and elevate prompt engineering skills
💡 AI safety researchers studying adversarial prompting techniques to evaluate and improve model robustness

Strengths & Limitations

Strengths

  • High community interest (77.4k stars)
  • Permissive open-source license (MIT)
  • Established track record (3 years in production)
  • Responsive to issues, low backlog

Categories

Quick Start

# Clone the prompt engineering guide repository
git clone https://github.com/dair-ai/Prompt-Engineering-Guide.git
cd Prompt-Engineering-Guide

# Online version (recommended) - visit directly:
# https://www.promptingguide.ai/

# Run the docs site locally
npm install
npm run dev

Related Projects