Chapter 9 · Talking to models: prompting and context
Prompt basics
Clear task, context, constraints and an example of the output make a big difference.
Preparing prompt basics: task, context, constraints, example
Chapter 9 · Talking to models: prompting and context
Clear task, context, constraints and an example of the output make a big difference.
A vague prompt gives a blurry answer.
Each part you add tells the model more about what you actually want.
A prompt is the text you give a model. The model cannot read your mind. It only has your words to go on.
Everything starts off. Switch on the four parts one at a time and watch the prompt and the reply change.
Still missing: a clear task (what should it do?); context (who is it for, what facts?); constraints (length, tone, format); an example of the style you want. The reply is a fixed teaching script, not a real model.
Which is the better task?
What is a constraint?
Why add an example of the output?