Skip to main content

Welcome

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:

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!

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