Design a boundary case at exactly noon

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

A boundary case sits exactly on a rule's cutoff. For a museum ticket prompt, the source notice says: "The museum opens at 9:00 a.m.; visitors arriving before 12:00 p.m. pay $10, while visitors arriving at 12:00 p.m. or later pay $15." A prompt that uses only 11:55 a.m. and 12:05 p.m. examples can hide the model's uncertainty. We want one demonstration at exactly 12:00 p.m. because "before" excludes that instant.

Add this labeled example to the prompt: "Arrival: 12:00 p.m. Ticket price: $15." Keep the source wording and define the output format, such as "Return only the ticket price." The example teaches both the boundary and the required response. A checkable result follows: run the prompt on "Arrival: 12:00 p.m." and compare the output with "$15." It passes if the model returns $15, not $10. Then try 11:59 a.m.. It should return $10. These neighboring cases confirm that the model followed the cutoff rather than memorizing one time.

Check your recall

In the museum prompt, what price should a visitor arriving at exactly noon receive, and why?

Check your answer

$15. The source charges the lower price only before 12:00 p.m.; "at 12:00 p.m. or later" belongs to the $15 tier.

Sources and credits

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