Teach a label with a positive example
Read each example as a phrase before typing its label. · 166 words
Start with a classification job from the Brookfield Museum gift-shop catalog. Its CSV export contains book_id, title, description, and target. The target bird_book means the description presents an actual bird as a main character, not a bird photo or passing mention. Add one labeled positive example: "B-101, The Owl Who Read, A young owl visits the library and learns to read, bird_book." State the rule before the example so the example illustrates the label rather than inventing it.
Now test the prompt on two unseen rows. The first is "B-204, The Penguin Who Fixed the Clock, A penguin repairs the museum clock while his friends help." The second is "B-205, The Cloud That Wore a Scarf, A story about a cloud discovering winter." Ask for JSON only, with one object per row and label bird_book or not_bird_book. The checkable result is [{"book_id":"B-204","label":"bird_book"},{"book_id":"B-205","label":"not_bird_book"}]. The first has a bird character. The second does not. A positive example anchors the label, but close cases still need more examples later.
Check your recall
What makes B-101 a positive bird_book example, and what labels should B-204 and B-205 receive?
Check your answer
B-101 is positive because an owl is a main character. B-204 should receive bird_book because a penguin is the main character. B-205 should receive not_bird_book because its main character is a cloud.
Sources and credits
Original KeyTouch lesson. Background reading · DAIR.AI · Few-Shot Prompting.