Module 83: Prompt Engineering

Lesson 2 of 5 · 15–25 minutes

Few-shot examples

🏠The everyday picture

Showing a new tailor two finished shirts teaches more than an hour of description. Examples carry details that are hard to put into words.

📘What it really is

Classify each enquiry as SALES, SUPPORT, COMPLAINT or OTHER.

Enquiry: "Do you have cotton fabric in navy blue?"
Category: SALES

Enquiry: "My order arrived with a torn sleeve."
Category: COMPLAINT

Enquiry: "How do I reset my portal password?"
Category: SUPPORT

Enquiry: "{{new_enquiry}}"
Category:

🖱️Try it

Collect 20 enquiries (real and anonymised, or invented). Classify them yourself. Run a zero-shot prompt on all 20 and count how many the model gets right. Add three well-chosen examples and run again. Record both scores.

✅Quick check

What do few-shot examples teach that instructions often don't?

Show the answer

The exact format, tone, level of detail and how to handle edge cases.

Why must examples be correct and varied?

Show the answer

The model copies them, including their mistakes and surface patterns.

← PreviousInstructions and context
ProLearners Assist