Prompt Engineering · Masterclass · Prompt methods & quality

Evals for Maths Prompts: A Masterclass on Test Sets, Graders and Regression Testing

Replace spot checks and gut feeling with solid measurement, using test sets that capture real pitfalls and graders that check maths exactly and pedagogy transparently.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Masterclass
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–10 participants
Level
Advanced
Language
German or English

Tools: Python · SymPy · promptfoo · Jupyter · OpenAI API · Anthropic API

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

  1. 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.
  2. 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.
  3. 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.

Request dates

What the evals masterclass covers

  1. What a maths eval has to deliverCorrectness, method, pedagogy and format as separate dimensions, and which of them can be measured automatically.
  2. Building test setsStratification by topic and difficulty, deliberate traps such as signs, units and edge cases, and separate development and test splits.
  3. Exact gradersNumerical tolerances, equivalence of expressions with SymPy, intervals and sets, and how to handle answers that cannot be parsed.
  4. LLMs as judgesRubrics for hint quality and clarity, pairwise comparisons, calibration against human judgements and known biases.
  5. Analysis and varianceRepeated runs, error analysis by category and an honest reading of small differences between variants.
  6. 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

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the evals masterclass

How large does a test set need to be?

There is no fixed number. What matters more than size is that the set covers the exercise types and traps of your use case. In the masterclass we estimate together when differences between versions become reliable and how to extend the set step by step.

Can LLM judges be trusted?

Only within limits and only after calibration. We compare their verdicts with a human-rated sample, look for systematic deviations and decide which criteria are scored automatically and which stay with people. Exact maths is checked with computer algebra wherever possible.

Which tools do we use?

The examples run in Python with notebooks and an eval tool such as promptfoo. If your team already uses another framework, we transfer the concepts to it. What matters is the test set, the graders and the analysis, not the specific tool used to build them.

Is the masterclass held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.