|
1 year ago | |
---|---|---|
.github | 2 years ago | |
components | 2 years ago | |
guides | 1 year ago | |
img | 1 year ago | |
lecture | 2 years ago | |
notebooks | 1 year ago | |
pages | 1 year ago | |
public | 2 years ago | |
.gitignore | 1 year ago | |
CITATION.cff | 2 years ago | |
LICENSE.md | 2 years ago | |
README.md | 1 year ago | |
middleware.js | 1 year ago | |
next-env.d.ts | 2 years ago | |
next.config.js | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
pnpm-lock.yaml | 1 year ago | |
theme.config.tsx | 1 year ago | |
tsconfig.json | 2 years ago |
README.md
Prompt Engineering Guide
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.
Happy Prompting!
Announcements / Updates
- 🌐 We now support 中文, 日本語, Português, Turkish and English. Welcoming more translations.
- 🎉 We have launched new web version of the guide here
- 🎓 Partnered with Sphere to deliver a new course on Prompt Engineering for LLMs
- 🔥 We reached #1 on Hacker News on 21 Feb 2023
- 🎉 The Prompt Engineering Lecture went live here
Guides
Please note that the guides below are now outdated. You can find the most up-to-date guides on our new website https://www.promptingguide.ai/.
- Prompt Engineering - Introduction
- Prompt Engineering - Basic Prompting
- Prompt Engineering - Advanced Prompting
- Prompt Engineering - Applications
- Prompt Engineering - ChatGPT
- Prompt Engineering - Adversarial Prompting
- Prompt Engineering - Reliability
- Prompt Engineering - Miscellaneous Topics
- Prompt Engineering - Papers
- Prompt Engineering - Tools
- Prompt Engineering - Datasets
- Prompt Engineering - Additional Readings
Lecture
We have published a 1 hour lecture that provides a comprehensive overview of prompting techniques, applications, and tools.
Running the guide locally
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/
Appearances
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}
}
License
Feel free to open a PR if you think something is missing here. Always welcome feedback and suggestions. Just open an issue!