https://learnprompting.org/docs/intro
Welcome to this course on prompt engineering!
I like to think of prompt engineering (PE) as: How to talk to AI to get it to do what you want.
With many recent advances in artificial intelligence (AI), prompt engineering has become a sought-after and valuable skill for getting AI to do what you want. This course focuses on applied PE techniques, and we expect readers to have minimal knowledge of machine learning. If you are new to these concepts (AI, machine learning, programming etc.) I recommend starting with the Basics section and reading Instructions first.
The single most important part of this course is your feedback!
If you have any questions, comments, or suggestions, you can:
- Make an issue on GitHub
- Email us at learnprompting@gmail.com
- Join Discord community
- Follow us on Twitter
- We also have a Consulting Interest Form
Even the smallest amount of feedback is very helpful!
Course philosophy
Quick Iterations - Since new PE content is published almost daily, I will update this course frequently with short articles about new techniques. Let me know what you want to hear more about!
Part of this philosophy is error iteration. If you ever see something that you don't quite understand, even something small, that's on me. Please make an issue on GitHub!
Focus on Practicality - We will focus on applied, practical techniques that you can use immediately for your applications.
Examples ASAP - We will put examples in the articles as soon as possible so you can get a feel for the techniques as quickly as possible.
We'll philosophize more about this when we have time π
How to read
It is not necessary to read all chapters in order. Read what interests you!
If you are new to artificial intelligence (AI) and prompt engineering (PE), start with the Basics section. If you are already familiar with these concepts, you will be off to a good start with the Intermediate section.
Articles have a rating system based on the difficulty of a topic and if programming knowledge is required:
π’ Very easy; no programming required
π‘ Easy; simple programming required, but no domain expertise
π΄ Medium; programming required, and some domain expertise to implement (e.g. calculating logarithmic probabilities)
π£ Hard; programming required, and robust domain expertise to implement (e.g. reinforcement learning approaches)
Note: even though for π΄π£ domain expertise is helpful, usually you will still be able to understand the article without prior knowledge.
Chapters
Here is a quick summary of each chapter:
Basics: Intro to PE and simple PE techniques
Intermediate: Slightly more complicated research-backed PE techniques
Applied Prompting: Some complete walkthroughs of the PE process written by community members
Advanced Applications: Some very powerful, but more advanced applications of PE
Reliability: How to make LLMs more reliable
Images: PE for text to image models like DALLE and Stable Diffusion!
Prompt Injection: Hacking, but for PE
Prompting IDEs: Different PE tools
Prompt Tuning: Fine tune prompts with gradients