Examples (Few-Shot) and Answer Tone
How a few examples in the prompt make the model grasp format and style better than long explanations.
Build a prompt that turns your notes into meetings / tasks. Give it 3 examples. Run it on a new note — did it get better?
Task grader
Copy and adapt to your context. Text in angle brackets should be replaced.
I want to teach you a task through examples. Below are 3 "input → output" pairs I want you to follow. After them I'll give a new input; answer in the same format. Example 1: input: <...> output: <...> Example 2: input: <...> output: <...> Example 3: input: <...> output: <...> New input: <...>
Prompt sandbox
- They supply inconsistent examples (different format) — the model gets confused.
- They supply too many examples (10+) — the context gets cluttered.
- They pick examples of one type, so the model breaks on a different type.
- If you want JSON output, you must show JSON in the example, not describe it in words.
- For tone, add a counter-example of "how not to do it" tagged "BAD".
- Put an "edge case" example last so the model sees the boundaries.
When format is critical (JSON, classification, a specific style).
When the task is creative and format doesn't matter — examples can box the model in.
Quiz — 2 questions
Discussion
No comments yet. Be the first!