CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

Writing System and User Prompts

A model can only follow the instructions it is given, so the wording of your prompts decides how useful its replies are. This lesson covers writing system and user prompts, adding examples, and testing your wording before an app depends on it.

10 cards

Writing System and User Prompts

In this lesson · 6 sections
Step 2 of 6

Writing the user prompt

The user prompt carries the job of the moment, and a vague request gets a vague reply. Say what you want done, for whom and in what form. Microsoft's prompt engineering page suggests stating the task before supplying extra material; in its tests on GPT-4-era chat models, order made no visible difference, so treat ordering as something to test. When you paste in material to work on, such as a transcript, mark where it starts and ends with a separator such as ###, or with tags. Give the model an exit token, for example telling it to answer UNKNOWN when the material lacks the answer, which can help it avoid inventing one. Ask for a defined output structure, such as fixed fields, so code can parse replies. One caution: that page opens by saying its techniques are not recommended for reasoning models, and its examples come from a base GPT-4 model. That covers its prompting techniques, not system prompts in general, but Microsoft's deployment quickstart uses a model from a family the page counts among reasoning models, so expect to meet the caveat.