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.
Happy Prompting!
Due to high demand, we've partnered with Maven to deliver a new cohort-based course on Prompt Engineering for LLMs.
Elvis Saravia, who has worked at companies like Meta AI and Elastic, and has years of experience in AI and LLMs, will be the instructor for this course.
This hands-on course will cover prompt engineering techniques/tools, use cases, exercises, and projects for effectively working and building with large language models (LLMs).
Our past learners range from software engineers to AI researchers and practitioners in organizations like LinkedIn, Amazon, JPMorgan Chase & Co., Intuit, Fidelity Investments, Coinbase, Guru, and many others.
- π New course on Prompt Engineering for LLMs announced! Enroll here!
- πΌ We now offer several services like professional training, consulting, and talks.
- π We now support 12 languages! Welcoming more translations.
- π©βπ We crossed 800K learners in June 2023!
- π We have launched a new web version of the guide here
- π₯ We reached #1 on Hacker News on 21 Feb 2023
- π The Prompt Engineering Lecture went live here
You can also find the most up-to-date guides on our new website https://www.promptingguide.ai/.
- Prompt Engineering - Introduction
- Prompt Engineering - Techniques
- Prompt Engineering - Zero-Shot Prompting
- Prompt Engineering - Few-Shot Prompting
- Prompt Engineering - Chain-of-Thought Prompting
- Prompt Engineering - Self-Consistency
- Prompt Engineering - Generate Knowledge Prompting
- Prompt Engineering - Tree of Thoughts (ToT)
- Prompt Engineering - Automatic Reasoning and Tool-use (ART)
- Prompt Engineering - Automatic Prompt Engineer
- Prompt Engineering - Active-Prompt
- Prompt Engineering - Directional Stimulus Prompting
- Prompt Engineering - ReAct Prompting
- Prompt Engineering - Multimodal CoT Prompting
- Prompt Engineering - Graph Prompting
- Prompt Engineering - Applications
- Prompt Engineering - Models
- Prompt Engineering - Risks and Misuses
- Prompt Engineering - Papers
- Prompt Engineering - Tools
- Prompt Engineering - Notebooks
- Prompt Engineering - Datasets
- Prompt Engineering - Additional Readings
We have published a 1 hour lecture that provides a comprehensive overview of prompting techniques, applications, and tools.
To run the guide locally, for example to check the correct implementation of a new translation, you will need to:
- Install Node >=18.0.0
- Install
pnpm
if not present in your system. Check here for detailed instructions. - Install the dependencies:
pnpm i next react react-dom nextra nextra-theme-docs
- Boot the guide with
pnpm dev
- Browse the guide at
http://localhost:3000/
Some places where we have been featured:
- Wall Street Journal - ChatGPT Can Give Great Answers. But Only If You Know How to Ask the Right Question
- Forbes - Mom, Dad, I Want To Be A Prompt Engineer
- Markettechpost - Best Free Prompt Engineering Resources (2023)
If you are using the guide for your work, please cite us as follows:
@article{Saravia_Prompt_Engineering_Guide_2022,
author = {Saravia, Elvis},
journal = {https://github.com/dair-ai/Prompt-Engineering-Guide},
month = {12},
title = {{Prompt Engineering Guide}},
year = {2022}
}
Feel free to open a PR if you think something is missing here. Always welcome feedback and suggestions. Just open an issue!