Prompt-Engineering-Guide
dair-ai/Prompt-Engineering-Guide ยท Updated
๐ Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.
dair-ai/Prompt-Engineering-Guide is a MDX repository in the RAG & Retrieval category with 79,647 stars and 8,740 forks on GitHub, released under the MIT license, last updated 7mo ago.
How to install Prompt-Engineering-Guide in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code โ copy-paste ready.
How to install Prompt-Engineering-Guide in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.git cd Prompt-Engineering-Guide claudeLet Claude read it
Ask โ/initโ to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install Prompt-Engineering-Guide in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install Prompt-Engineering-Guide in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitIndex & chat
Open the folder โ Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install Prompt-Engineering-Guide in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install Prompt-Engineering-Guide in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install Prompt-Engineering-Guide in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install Prompt-Engineering-Guide in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/dair-ai/Prompt-Engineering-Guide.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full READMEPrompt Engineering Guide
Sponsored by
Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use language models (LMs) for a wide variety of applications and research topics. Prompt engineering skills help to better understand the capabilities and limitations of large language models (LLMs). Researchers use prompt engineering to improve the capacity of LLMs on a wide range of common and complex tasks such as question answering and arithmetic reasoning. Developers use prompt engineering to design robust and effective prompting techniques that interface with LLMs and other tools.
Motivated by the high interest in developing with LLMs, we have created this new prompt engineering guide that contains all the latest papers, learning guides, lectures, references, and tools related to prompt engineering for LLMs.
๐ Prompt Engineering Guide (Web Version)
๐ We are excited to launch our new prompt engineering, RAG, and AI Agents courses under the DAIR.AI Academy. Join Now!
The courses are meant to compliment this guide and provide a more hands-on approach to learning about prompt engineering, context engineering, and AI Agents.
Use code PROMPTING20 to get an extra 20% off.
Happy Prompting!
Announcements / Updates
- ๐ We now offer self-paced prompt engineering courses under our DAIR.AI Academy. Join Now!
- ๐ New course on Prompt Engineering for LLMs announced! Enroll here!
- ๐ผ We now offer several services like corporate training, consulting, and talks.
- ๐ We now support 13 languages! Welcoming more translations.
- ๐ฉโ๐ We crossed 3 million learners in January 2024!
- ๐ We have launched a new web version of the guide here
- ๐ฅ We reached #1 on Hacker News on 21 Feb 2023
- ๐ The First Prompt Engineering Lecture went live here
Excerpt โ the full document is on GitHub.
More RAG & Retrieval repositories
- RAG & Retrieval143k
awesome-llm-apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
PythonApache-2.0Shubhamsaboo/awesome-llm-apps
- RAG & Retrieval92k
PaddleOCR
Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.
PythonApache-2.0PaddlePaddle/PaddleOCR
- RAG & Retrieval85k
hello-agents
๐ ใไป้ถๅผๅงๆๅปบๆบ่ฝไฝใโโไป้ถๅผๅง็ๆบ่ฝไฝๅ็ไธๅฎ่ทตๆ็จ
Pythondatawhalechina/hello-agents
- RAG & Retrieval68k
mem0
The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
PythonApache-2.0mem0ai/mem0
- RAG & Retrieval68k
anything-llm
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience
JavaScriptMITMintplex-Labs/anything-llm
- RAG & Retrieval59k
serviette
A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.
PythonMITpathwaycom/serviette
Catalog data refreshed . Something wrong? Report it.