Prompt Engineering Guide
A comprehensive, free resource for learning prompt engineering, context engineering, RAG, and AI agents, with guides, papers, notebooks, and courses.
- Source repo
- dair-ai/Prompt-Engineering-Guide
- Stars
- ★ 81k
- Last updated
- 8mo ago
- FARS reviewed
- Nov 07, 2026
- License
- MIT
- Primary language
- MDX
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformChatGPT · OpenAI API
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A machine learning engineer wants to optimize LLM performance on question answering and reasoning tasks by learning advanced techniques like chain-of-thought and self-consistency. They can refer to the Techniques section.
- Not a fit if
- Developers wanting a ready-to-run tool, not a learning guide
- Users unfamiliar with Node.js and pnpm frontend toolchains
- Readers expecting content always current with the latest models
- Website
- promptingguide.ai ↗ set on GitHub
- Maintenance
- No commits for 6+ monthslast commit 2026-03-11+20.7 ★/day over 7 days
- Source review
- 55/100 · Major gaps
What does this agent do, and when should you use it?
The Prompt Engineering Guide is a comprehensive open-source repository maintained by DAIR.AI, compiling guides, papers, lessons, notebooks, and resources for prompt engineering, context engineering, RAG, and AI agents. It caters to developers, researchers, and learners who want to understand and utilize large language models (LLMs). The guide provides a well-structured curriculum from basics to advanced techniques, covers applications like RAG and function calling, and includes risk and misuse discussions. It supports multiple languages, has a web version at promptingguide.ai, and offers supplementary DAIR.AI Academy courses, a lecture video, and Jupyter notebooks, aiming to enhance the understanding of LLM capabilities and limitations and to design effective prompts for tasks like question answering and arithmetic reasoning.
The repository primarily delivers structured learning content, including guide documents (Introduction, Techniques, Applications, Prompt Hub, Models, Risks, Papers, Tools, Notebooks), a curated paper list, and a 1-hour lecture video with slides and notebooks. It explains techniques such as zero-shot, few-shot, chain-of-thought, self-consistency, knowledge generation, prompt chaining, tree of thoughts, retrieval augmented generation (RAG), ART, APE, Active-Prompt, directional stimulus prompting, PAL, ReAct, multimodal CoT, and graph prompting. It also provides specific prompting guidance for models like ChatGPT, GPT-4, LLaMA, and Mixtral, and discusses adversarial prompting, factuality, and biases. For local execution, the project uses Nextra (Next.js-based) and can be built with Node.js >=18.0.0 and pnpm.
- A machine learning engineer wants to optimize LLM performance on question answering and reasoning tasks by learning advanced techniques like chain-of-thought and self-consistency. They can refer to the Techniques section.
- An AI product developer needs to design robust prompts to interface with LLMs and other tools. They can explore RAG, function calling, and prompt chaining applications.
- An educator or trainer is preparing a course on prompt engineering and can use the lecture video, slides, and notebooks as teaching material.
- A researcher wants to stay updated with the latest papers and trends in prompt engineering. They can browse the Papers section.
- A contributor wants to translate the guide into a new language. They can run the guide locally to check translations, as described in the README.
How do you install or deploy this agent?
To run the guide locally, you need Node.js >=18.0.0 and pnpm installed. After cloning the repository, run 'pnpm install' to install dependencies (including next, react, react-dom, nextra, nextra-theme-docs). Then start the development server with 'pnpm dev'.
How do you use this agent?
After starting the local server, open http://localhost:3000/ in your browser to browse the guide. For the online version, visit https://www.promptingguide.ai/. To use the code examples, clone the repo and open the .ipynb files under notebooks/. For structured courses, visit the DAIR.AI Academy and use code PROMPTING20 for a 20% discount.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Comprehensive and systematic coverage, from basics to advanced techniques, with a rich collection of papers and tools for further study.
- Multi-language support (13 languages) and an active community (Discord, Twitter, YouTube) with course offerings to suit different learning levels.
- Includes lecture video and code notebooks, combining theory and practice for hands-on learning.
- Backed by sponsors and DAIR.AI brand, indicating stable maintenance and ecosystem support.
- It is a learning resource, not a deployable tool, so users need to apply the techniques themselves in their own projects.
- Local setup requires Node.js 18+ and pnpm, which might be a hurdle for those unfamiliar with frontend toolchains.
- New features and translations may lag behind the latest model developments; users should supplement with other sources.
- Advanced topics like RAG and multimodal CoT require additional background knowledge, potentially challenging for beginners.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Prompt Engineering Guide This agent | 55 · Major gaps | Web appFree | ★ 81k | 8mo ago | MDX | ChatGPT · OpenAI API |
| EgoAlpha Prompt In-Context Learning Guide | 35 · Major gaps | Library / SDKFree | ★ 2.3k | 1d ago | Jupyter Notebook | — |
| Easy Data x AI | 65 · Some gaps | Web appFree + model costs | ★ 227 | 27d ago | Python | — |
| txtai: All-in-One AI Framework | 57 · Major gaps | Library / SDKFree + model costs | ★ 14k | 1d ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The evidence presents a repository centered on an educational guide and resource index, with no demonstrated Agent execution path or mechanism for acting on user data or external systems. Least privilege, confirmation, data flow, sensitive data handling, dependency security, external effects, and rollback each receive 1: the sample shows limited exposure, but no explicit controls or processes to support higher scores. The README provides a citation format and the LICENSE names copyright; source attribution receives 2, but the sample does not explain the provenance or maintenance of individual linked resources, so it does not earn full marks.
The README's local-run instructions broadly match the Next.js/Nextra dependencies in package.json, earning 1 for self-consistency and 1 for dependency availability. The sample does not describe error handling or failure messages, so failure_messages is 0. Higher scores are not supported because there is no evidence of pinned dependencies, compatibility details, or failure handling.
The README identifies researchers and developers and covers prompt engineering, RAG, agents, models, applications, risks, and several kinds of learning resources, earning 3 for audiences and scenarios. The material is chiefly educational and reference content, so capability boundaries receive 2. No precise Agent trigger conditions are shown, earning 1. Node 18+, pnpm, and local startup steps fit a defined web documentation environment, earning 2; broader deployment or runtime environments are not described.
The README has a detailed topic hierarchy covering guides, techniques, applications, models, risks, papers, tools, and notebooks, earning 3 for information architecture. Installation notes support local startup but are brief and do not show a complete repository dependency-install workflow, earning 2. The package name remains nextra-docs-template rather than the repository product name, earning 1 for naming stability. The directory, tutorial links, and lecture resources are extensive, earning 3 for examples and FAQ. Risks are covered, but the sample lacks a systematic limitations statement, earning 2. The MIT license is complete, earning 3. The README includes announcements but no corresponding release history or maintenance timeline, earning 1 for versioning and changelog. The README invites PRs and issues, and CLAUDE.md gives repository work conventions, earning 2 for maintenance responsibility; publisher identity remains unknown and no explicit update owner is named.
The guide organizes techniques, applications, models, risks, and learning resources and links to a website, lecture, notebook, and slides, making it directly usable for study and earning 3. Its added value over scattered resources is the topic organization and consolidated entry points, earning 3. Cost-benefit receives 2: the public guide is easy to start using, but it is promoted alongside courses and services, and the sample does not establish the scope of free material, resource freshness, or user effort.
The README provides paper, lecture, website, and citation links for some material, earning 2; the sample cannot verify the accuracy or current validity of every entry. Cross-source corroboration receives 1: the README and package.json support each other on the local documentation framework and run instructions, while other materials are not independently corroborated in the sample. Fact-inference separation receives 2: the directory and commands are visible statements; evaluations of coverage and usefulness are judgments based on that evidence, and unseen files are not treated as absent.
- This is an educational guide and resource collection; the repository description alone does not establish it as an executable Agent product.
- The accuracy and freshness of linked resources and the security of dependencies cannot be confirmed from the provided static sample.
- The package name, author, and repository metadata in package.json still refer to a Nextra template; the sample does not explain this discrepancy.
FAQ
Is this guide suitable for complete beginners?
Can I use this guide to build a production-ready prompt engineering system?
What languages is the guide available in?
Are there paid courses associated with this guide?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.