Put the decisive feature in a demonstration
Read each example as a phrase before typing its label. · 178 words
Consider a weather prompt for a hiking newsletter. The rule is: if the chance of rain is 50 percent or higher, say 'Take an umbrella'; if it is below 50 percent, do not. The decisive feature is the threshold crossing, not polished wording. A strong demonstration uses two source forecasts and shows both sides of the rule. For example, 'Rain 30 percent. Result: Enjoy the trail without an umbrella.' and 'Rain 80 percent. Result: Take an umbrella because rain is likely.'
Place those examples after the instruction, then give a new forecast. Practice source details say: Rain 60 percent, wind 15 kph, trail open. The output must be one sentence under 15 words. A checkable result includes 'Take an umbrella' because 60 is at least 50, and mentions no absent gear. A weak example says: 'Rain 80 percent. Result: Weather looks wet.' It fails to show the required behavior. When choosing examples, ask: 'What must the model notice, and where can I see that in the sample?' Put the decisive feature where a beginner can point to it.
Check your recall
What is the decisive feature in the weather prompt, and what must the 60-percent practice result contain?
Check your answer
The decisive feature is the 50-percent rain threshold. The practice result must contain the exact phrase 'Take an umbrella' because 60 percent is at least 50, while staying within the length limit and using only supplied details.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Few-Shot Prompting.