Writing Clear Instructions
In this article
- List the decisions an instruction leaves open, and predict what a model will put in their place.
- Rewrite a vague instruction so it states the task, marks the input, and gives the constraints, the success criterion and the expected output.
- Test each line of a prompt by deleting it, and cut the lines that settle no decision, such as decorative personas and pressure.
Overview
Brightline, an invented home-internet provider, builds a ticket sorter: an application that gives each support ticket to a large language model and asks it to sort the ticket for the right team. The developer's first instruction is one sentence: "Read this ticket and handle it." In a chat window you would read a poor answer and ask again. Here the application's own code reads the reply and files the ticket with a team before any person sees it, and the same sentence meets every ticket. Afterwards you can list the decisions an instruction leaves open, predict what a model puts in their place, rewrite the instruction so each line settles one, and cut the lines that settle nothing.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What the model is given
- The task and the input
- Rules and edge cases
- The output and the whole request
- The removal test
- Sources
- Check yourself, 4 questions