Show the model what the answer looks like
Few-shot prompting places a small number of example inputs and desired outputs into the prompt. It can help communicate a format or a decision rule. Write a clear instruction first, then use examples to demonstrate details the instruction alone might leave open.
Build a short example set
In a fictional message-sorting exercise, define three outputs: Delivery, Billing, or Needs review. Pair “Where is the parcel?” with Delivery and “I was charged twice” with Billing. Add one ambiguous example such as “I need help with my last order” and label it Needs review. Then ask for just one of those labels.
Hold out some fresh inputs
Test on messages the prompt did not already contain. Try “Can I get a receipt?” and check whether it uses the intended Billing label. Try cases that could reasonably fit two categories. If failures cluster around one distinction, improve the instruction or add a contrasting example.
Keep the examples consistent
Use the same output format throughout. Avoid giving one example with a paragraph of reasoning if you want the model to return just a label. Use fictional examples when practicing. Change one thing at a time so you can see whether the instruction, example or formatting caused a difference.
Compare the prompt with and without examples
Use the same test inputs on both versions. Record correct labels, uncertain cases and responses that break the requested format. A handful of classifications is enough to illustrate the method. A real workflow needs a broader evaluation set and monitoring for the cases that matter most.
