A new prompt looks better in a handful of trial runs, and after roll-out wrong answers on algebraic fractions start piling up. Only systematic testing prevents surprises like this. This masterclass shows how to build evals for maths prompts that measure more than right or wrong: stratified test sets with typical traps, exact graders using computer algebra, rubric-based LLM judges calibrated against human ratings, and repeated runs that expose variance. You finish with an eval suite for one of your own prompts that runs as a regression test whenever the prompt or the model changes.
Who the evals masterclass is for
Experienced prompt owners and ML and product teams at edtech companies, publishers and research projects who run maths prompts in production and need well-founded judgements on prompt or model changes. Python skills are assumed.
What you'll walk away with
- Stratify test sets by topic, difficulty and typical sources of error and protect them against overfitting
- Implement exact graders for numbers with tolerance and for equivalent expressions using SymPy
- Write rubric-based LLM judges for pedagogical criteria and calibrate them against human ratings
- Measure variance through repeated runs and interpret differences between prompt versions soundly
- Integrate an eval suite as a regression test for prompt and model changes into existing workflows
Typical scenarios
- Before switching to a new model, an edtech team runs its solution prompt against a stratified test set and finds weaknesses with unit conversions before learners notice them.
- A publisher measures whether a revised hint prompt gives away the answer less often, using an LLM judge whose verdicts were first checked against a sample rated by editors.
- A research project compares two prompt variants for proof sketches over several runs and reports the differences together with their spread rather than a single lucky result.
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 evals masterclass covers
- What a maths eval has to deliverCorrectness, method, pedagogy and format as separate dimensions, and which of them can be measured automatically.
- Building test setsStratification by topic and difficulty, deliberate traps such as signs, units and edge cases, and separate development and test splits.
- Exact gradersNumerical tolerances, equivalence of expressions with SymPy, intervals and sets, and how to handle answers that cannot be parsed.
- LLMs as judgesRubrics for hint quality and clarity, pairwise comparisons, calibration against human judgements and known biases.
- Analysis and varianceRepeated runs, error analysis by category and an honest reading of small differences between variants.
- Evals in everyday workRegression tests in CI or before every roll-out, maintaining test sets and reports that non-specialists can follow.
Before the evals masterclass: prerequisites
- Solid Python skills and experience with at least one model API
- A maths prompt in production or in planning that you want to evaluate
- Ideally, a collection of real inputs or exercises as a basis for the test set
Materials you keep
- An eval suite for one of your prompts with test set, graders and analysis
- Templates for rubrics and for calibrating LLM judges
- A checklist for building and maintaining maths test sets