Hold one case back for testing

Read each example as a phrase before typing its label. · 157 words

A held-back case is test data, not a demonstration. For a travel-packing prompt, the source rules say: bring an umbrella when the chance of rain is 50 percent or higher, and bring sunscreen when the UV index is 6 or higher. Show examples such as "Rain chance: 10 percent, UV index: 2" -> "Umbrella: no; sunscreen: no" and "Rain chance: 80 percent, UV index: 7" -> "Umbrella: yes; sunscreen: yes." These examples teach both decisions.

Now reserve one unseen input: "Rain chance: 60 percent, UV index: 2." Do not place it in the prompt or reveal its expected answer. Run the completed prompt and check the response against the source: the expected result is "Umbrella: yes; sunscreen: no." If you revise the prompt after seeing this result, it is no longer a clean holdout; use a new unseen case for the final test. This separation helps you judge whether the prompt generalizes instead of merely echoing examples.

Check your recall

In the travel-packing test, what result should the model return for 60 percent rain and a UV index of 2?

Check your answer

"Umbrella: yes; sunscreen: no." The rain rule starts at 50 percent, while the sunscreen rule starts at UV index 6.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Few-Shot Prompting.