Vary wording while preserving the label

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

Examples become more useful when they show that meaning, not exact words, controls the label. Create a prompt that labels a shopper request as price, availability, or shipping. Source sentence: "How much does the blue kettle cost?" Label: price. Another source sentence: "What does the blue kettle sell for?" Label: price. These forms use different words, but both ask about cost. A third source sentence, "Is the blue kettle in stock?", has label availability. Including this contrast helps the model avoid treating every new word as a new category.

Now test the idea with a new request: "Can you send the blue kettle to Denver?" The expected label is shipping, because the request asks about delivery rather than price or stock. Write examples as source, label, and a short reason. Then check both the label and the reason: price sentences should mention cost, while availability sentences mention being in stock. This design teaches the model a stable concept across varied wording without changing the allowed label names. It also makes errors visible, such as labeling every kettle sentence price.

Check your recall

In the kettle example, what label goes with "What does the blue kettle sell for?" and why?

Check your answer

The label is price because the sentence asks what the kettle costs.

Sources and credits

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