Skip to main content

Lesson 2 · 12 min

Anatomy of a great prompt

The five slots that turn a vague prompt into a reliable one.

The five slots

Nearly every production prompt has five slots, in this order:

  1. Role — who the model is
  2. Context — what it needs to know
  3. Task — what to do
  4. Constraints — format, length, what to avoid
  5. Examples — at least one input/output pair when the format is non-trivial