Lesson 6: Examples (few-shot) — teach by showing
Sometimes the easiest way to teach is not to explain but to show. Instead of describing in words how the answer should look, you give the model a few input→output examples before the real task — and it learns the pattern, format, and style by imitation. This is called few-shot. In this lesson we pra
Instead of explaining in words, you show the model 2-3 solved examples: 'this input → this answer'. It picks up the pattern and continues it on the new question.
- few-shot examples
- A few input→desired-output examples shown before the real task, so the model learns the pattern by demonstration.
- format consistency
- Keeping the same shape across all examples — same fields, same order, same label — so the pattern is clear.
- representative example
- An example that resembles the real cases the model will meet, including the tricky or edge case — not only the easy one.