β Ώ Move this book
Drop here β main
Chapter 03 Β· Structure of a prompt
A good prompt
has structure
has structure
What you send a generative model isn't really a question. It is closer to a work order.
Role, context, task, format, constraint β the more of these you supply, the less your results vary from one run to the next.
1
π§©The five parts
Role Β· Context Β· Task Β· Format Β· Constraint
Role Β· Context Β· Task Β· Format Β· Constraint
The part beginners leave out most often is format. Ask a model to "tidy this up" and you get a different shape every time. Say "a table, three columns, forty characters per cell" and the output becomes repeatable.
Repeatability is what moves prompting from a hobby into work.
2
2
6