TopGit
GitHub Repo Review

Prompt Engineering Guide: Techniques, Papers, Prompts

dair-ai/Prompt-Engineering-Guide
PTopGit review image for dair-ai/Prompt-Engineering-Guide
Review by Topgit.dev for dair-ai/Prompt-Engineering-Guide, with GitHub repository stats and README context.
Quick verdict

Prompt Engineering Guide is a reference collection of prompting techniques, model-specific notes, and papers for working with large language models, maintained by dair-ai. It reads like a structured reference more than a tutorial series, so reach for it when you need to look up a technique like chain-of-thought or ReAct; skip it if you want a guided course, since the deeper hands-on material sits behind the paid DAIR.AI Academy.

Stars
★ 77.6k
Forks
⑂ 8.5k
Language
MDX
License
MIT
Topic
Frontend
Updated
Mar 2026
Homepage
GitHub

About the Prompt Engineering Guide

Prompt Engineering Guide is a GitHub repository maintained by dair-ai that gathers guides, technique write-ups, model-specific notes, and papers about prompting large language models. It's organized into sections on introduction basics, techniques, applications, a prompt hub of task examples, model notes, and risks, and the same material is also published as a website at promptingguide.ai.

Why Prompt Engineering Matters

Getting useful output from a large language model rarely comes down to typing a plain request: the same task can produce different results depending on whether you supply examples, ask the model to reason step by step, or restructure the prompt entirely. The README frames prompt engineering as work that helps people understand what LLMs can and can't do, used by researchers pushing model performance on hard reasoning tasks and by developers building dependable interfaces between LLMs and other tools. That's a moving target. Because the techniques, papers, and model-specific quirks behind that work are scattered across blogs, papers, and vendor docs, dair-ai built this guide to collect them in one evolving place.

What the Guide Covers

  • A Techniques section with a long list of individual pages, from zero-shot and few-shot prompting through chain-of-thought, self-consistency, generate knowledge prompting, prompt chaining, tree of thoughts, RAG, ART, automatic prompt engineer, active-prompt, directional stimulus prompting, program-aided language models, ReAct, multimodal CoT, and graph prompting.
  • An Applications section with write-ups covering function calling, generating data, generating synthetic datasets for RAG, tackling generated-dataset diversity, generating code, and a graduate job classification case study.
  • A Prompt Hub of example prompts organized by task, including classification, coding, creativity, evaluation, information extraction, image generation, mathematics, question answering, reasoning, text summarization, truthfulness, and adversarial prompting.
  • A Models section with dedicated notes on ChatGPT, Code Llama, Flan, Gemini, GPT-4, LLaMA, Mistral 7B, Mixtral, OLMo, and Phi-2, plus a broader model collection page.
  • A Risks and Misuses section on adversarial prompting, factuality, and biases.
  • A Papers page grouped into overviews, approaches, applications, and collections, plus separate Tools, Notebooks, Datasets, and Additional Readings pages.
  • A recorded 1-hour lecture on prompting techniques, applications, and tools, with a companion Jupyter notebook and slide deck.
  • A web version at promptingguide.ai that the README points to for the most current guides.

Popularity and Reach

Per the README, cumulative learners passed the 3-million mark by January 2024, the project climbed to the top spot on Hacker News on February 21, 2023, and the content is now available in 13 languages, with more translations welcomed. Outlets including the Wall Street Journal, Forbes, and Markettechpost have covered it, and the team runs a Discord server, a Twitter account, a YouTube channel, and a newsletter for people tracking the space.

How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history

Practical Applications of Prompt Engineering

  • Wiring function calling into an LLM application, using the guide's Applications write-up on function calling as a starting point.
  • Building a RAG pipeline and needing synthetic data for it, covered by the guide's pages on generating synthetic datasets for RAG.
  • Comparing how the same prompt behaves across GPT-4, LLaMA, Gemini, Mistral 7B, and other models via the Models section before committing to one for a project.
  • Pulling a starting prompt from the Prompt Hub for a task like classification, coding, or text summarization instead of writing one from scratch.
  • Auditing a production prompt for adversarial inputs, factuality problems, or bias using the Risks and Misuses section.
  • Onboarding a team on prompting fundamentals with the 1-hour recorded lecture and its notebook instead of pointing them at a stack of links.

Strengths

  • Single entry point for a wide range of material: techniques, applications, model-specific notes, a prompt hub, papers, tools, notebooks, and datasets all sit under one repo structure.
  • Free to read on GitHub or via the web version at promptingguide.ai, with a paid, more hands-on course path available through the DAIR.AI Academy for people who want it.
  • Includes a full 1-hour lecture with an accompanying notebook and slide deck, useful for teams onboarding people who'd rather watch than work through a stack of linked pages.
  • MIT licensed, so quoting, adapting, or building on the material carries few restrictions.
  • Available in 13 languages per the README, with more translations still being added.
  • Real reach beyond GitHub stars: coverage from the Wall Street Journal, Forbes, and Markettechpost, plus a #1 spot on Hacker News in February 2023.

Risks and Misuses in Prompting

  • The README doesn't date most of the guide's content directly; the only timestamps come from the announcements list, like the January 2024 learner count and the February 2023 Hacker News mention, so there's no clear signal of how recently a given technique or model page was last revised.
  • The deeper, hands-on material lives behind the paid DAIR.AI Academy courses rather than in the free repo, so the guide itself stays reference-level rather than a full curriculum.
  • The README points to promptingguide.ai for the most current guides, which implies the GitHub copy can lag behind the live site.
  • Translation coverage spans 13 languages per the README, but nothing in the facts here says how complete or current each translated version is relative to the English original.
  • The repo's source is written in MDX for its Nextra-based site rather than plain files, so reading individual technique pages directly on GitHub is less comfortable than using the promptingguide.ai site the README points to.

Other Prompt Engineering Resources

Common Questions

What is prompt engineering?

Prompt engineering is the practice of designing and refining the instructions sent to a language model so it handles a task more reliably. It covers wording choices as well as structured techniques like few-shot examples, chain-of-thought steps, and prompt chaining.

What topics does the Prompt Engineering Guide cover?

Prompt Engineering Guide covers prompting techniques from zero-shot through tree-of-thoughts and RAG, model-specific notes for tools like GPT-4, LLaMA, and Gemini, application write-ups such as function calling and code generation, a prompt hub of task examples, and a risks section on adversarial prompting, factuality, and bias.

Can I use the Prompt Engineering Guide for commercial purposes?

Prompt Engineering Guide is released under the MIT License, which permits commercial use, modification, and redistribution as long as the license and copyright notice are kept intact.

Is there a web version of the Prompt Engineering Guide?

Prompt Engineering Guide has a companion web version at promptingguide.ai, which the README points to as the place with the most current version of the guides.

Does the DAIR.AI Academy offer paid prompt engineering courses?

The DAIR.AI Academy, run by the team behind Prompt Engineering Guide, sells self-paced courses on prompt engineering, context engineering, and AI agents, with pricing on its own site and a discount code mentioned in the README for new sign-ups.

How can I contribute to the Prompt Engineering Guide?

The README invites contributions by opening a pull request for anything missing, or an issue for feedback and suggestions; no separate contribution guide is mentioned in the facts here.

Who should try it — and who should skip

Reach for Prompt Engineering Guide if you're a developer or researcher who wants a single reference for prompting techniques, model-specific notes, and risk considerations, or a team lead who needs a lecture and notebook to onboard people quickly. Skip it, or treat it as a supplement, if you want a fully guided curriculum with feedback along the way; that experience sits behind the paid DAIR.AI Academy courses rather than in the free repo.

Related repositories

Source & attribution

Facts and quotes sourced from the dair-ai/Prompt-Engineering-Guide GitHub repository and its README.

GitHub data · last synced Aug 14, 2026Reviewed by Henry
Back to TopGit

Is Prompt-Engineering-Guide worth your time?

ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of Prompt-Engineering-Guide.

GitHub