Talking to a Model
Say what you want, and show what good looks like
Scroll
Say what you want, and show what good looks like
A prompt is everything you give the model before it starts writing. The model has no other picture of what you want, so anything the prompt leaves out gets filled with a guess based on what is typical.
Three things narrow the guess. Say what the task is and who the answer is for. State the constraints that matter: length, format, what to leave out. And when the shape of the answer matters, show one example of a good answer. A single example often does more than a paragraph describing one.
Most prompting problems come from missing information. A useful test: if a new colleague would need to ask you something before starting the task, put the answer in the prompt. The model will usually guess instead of asking, unless you tell it to ask.
Generation