Few-shot prompting means giving the model a handful of examples to follow. In maths applications this is both powerful and treacherous: well-chosen examples produce consistent hints and fitting distractors, while poorly chosen ones lead the model to copy numbers, sentence patterns or even mistakes from the template. This masterclass shows how to choose few-shot examples for maths prompts by coverage, variety and difficulty, use contrast pairs of good and bad examples, design order and formatting deliberately and load examples dynamically to match the task. You test every variant against a small eval set.
Who the few-shot masterclass is for
Experienced prompt developers, content teams and learning design specialists in edtech, publishing and university projects who run prompts for hints, feedback, distractors or marking in production. Confidence with system prompts is assumed.
What you'll walk away with
- Choose examples for coverage of exercise types, variety of numbers and the right level of difficulty
- Use contrast pairs of successful and failed outputs without the model adopting the mistakes
- Design the order, separation and formatting of examples deliberately and compare their effect
- Have examples selected dynamically from a maintained collection by topic and level
- Decide with a small eval set whether examples help or whether clear rules without examples work better
Typical scenarios
- A hint prompt keeps reusing the numbers from its examples; after switching to examples with varied values and exercise types, the pattern appears far less often in the eval set.
- For multiple-choice items on fractions, a prompt generates distractors that each reflect one typical misconception, because every example names the underlying error explicitly.
- A feedback prompt for student solutions loads two suitable examples from a maintained collection depending on the topic, instead of always sending the same fixed examples.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the few-shot masterclass covers
- What examples doHow models pick up patterns from examples, from format and tone to unintended numbers and errors.
- Selection and varietyCoverage, variation of values, difficulty, edge cases and how many examples make sense.
- Contrast and formattingGood and bad examples side by side, clear separation with markers, ordering and explanations.
- Dynamic example selectionExample collections with metadata, selection by topic and level, and limits on context size.
- Measuring the effectRun variants against an eval set, weigh cost against benefit and record the decisions.
Before the few-shot masterclass: prerequisites
- Experience with system prompts and at least one maths prompt in production
- Access to a model API or a chat assistant with project or system prompt features
- Some real inputs and outputs of your prompt as starting material
Materials you keep
- A guide to selecting, ordering and maintaining few-shot examples in maths prompts
- A revised example collection for one of your prompts
- A small eval set comparing the variants you tested