Learning goal
I can write constraints that are possible to check and give an example that fits them.
How it works
A constraint is a limit, such as word count, grade level, or requiring each line to start with an action. A useful example demonstrates how an output should look. Check that the example follows the written constraints. When they conflict, the result is harder to interpret and test.
Think of it like this
Imagine leaving a coach a warm-up plan with one sample exercise. The sample shows the format, while the rule limits the length. A language model can imitate details you meant only as examples, so use examples with no personal information.
Worked example
Fictional Flint Studio needs three labels for brushes, cloths, and paper. The prompt asks for one label per station, starts each with a verb, and limits each to four words. “Return clean brushes” demonstrates the pattern. “Paper for later” is short but begins with a noun. “Stack scrap paper” passes both requirements. A reviewer checks that the action also fits the station.
What to remember
Write constraints you can test. Give a relevant example, then check the actual output before using it.
- ConstraintMake three labels. Each starts with a verb and uses at most four words.
- Example“Return clean brushes.”
- Check the draftCount labels, check the first word, and count the words in each.
Key words
- Prompt
- The words or other information you give an AI system to tell it what you want it to do.
- Constraint
- A limit a response or action must follow, such as using three lines or keeping a file private.
- Personal information
- Details that identify you or tell others about your life, such as your address, school, location, private messages, or photos. Keep passwords private too.
Activity
Design a label prompt
Materials Paper and three fictional station names: brushes, cloths, paper.
- Write a request for a label for each station. Add “Start each label with a verb. Use at most four words.” Use “Return clean brushes” as a format example.
- Compare “Return clean brushes / Fold used cloths / Place paper here” with “Brushes for this art class / Cloths / Paper”. Mark how each line meets or misses the constraints.
- Revise the request if you also need distinct actions for each station. Supply only fictional station details when testing.
Talk it through A clear example can guide the pattern, but a draft still needs to be checked one line at a time.
Quick check
Answer and explanation
“Stack scrap paper.” It starts with the verb “Stack” and uses three words.
Answer and explanation
To show the shape of a label. The example demonstrates a short instruction. Other lines still need to follow the constraints.