dair-ai/Prompt-Engineering-Guide
🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.
This guide helps you master the art of 'prompt engineering' to get the best results from large language models (LLMs) like ChatGPT. You'll learn how to craft effective inputs (prompts) to achieve specific outputs, whether it's answering complex questions, generating creative text, or analyzing data. It's for anyone building applications or workflows that leverage AI, from product managers to data scientists.
71,517 stars.
Use this if you need to understand how to design and optimize inputs for AI models to ensure they perform tasks accurately and efficiently.
Not ideal if you are looking for an off-the-shelf AI tool rather than learning the foundational skills to build or improve AI-powered applications.
Stars
71,517
Forks
7,638
Language
MDX
License
MIT
Category
Last pushed
Mar 11, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/dair-ai/Prompt-Engineering-Guide"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
promptfoo/promptfoo
Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI....
bigscience-workshop/promptsource
Toolkit for creating, sharing and using natural language prompts.
thunlp/OpenPrompt
An Open-Source Framework for Prompt-Learning.
promptfoo/promptfoo-action
The GitHub Action for Promptfoo. Test your prompts, agents, and RAGs. AI Red teaming,...
LearnPrompt/LearnPrompt
永久免费开源的 AIGC 课程, 目前已支持Prompt Engineering, ChatGPT, Midjourney, Runway, Stable Diffusion,...