Case study · Education AI

Building an AI tutor that teaches the syllabus instead of doing the homework

Generic chatbots gave students answers that ignored the syllabus, skipped the reasoning and pitched the language at the wrong age. The goal was a tutor grounded in the curriculum, that guides with hints rather than handing over answers, stays safe for young learners and shows teachers where students are stuck.

Case studyEducation · Digital learningSumanta Mukhopadhyay8 min read
#ai#llm#governance#security#finops
CASE STUDY · CASE STUDY · EDUCATION AI28 Oct 2026 · 01:38 GST
At a glance
SectorEducation · Digital learning
My roleAI architect
EngagementArchitecture, pedagogy-aware design and build
ScopeCurriculum retrieval, tutoring policy, safety, cost control, teacher analytics
What changed
  • Tutor responses grounded in the platform's own syllabus content and level
  • Hints and questions by default, with full solutions only where the teaching design allows
  • Safety controls on both student input and tutor output, tuned for the age range
  • Teachers see common misconceptions and stuck points, not raw chat transcripts
LLMRetrieval over curriculum contentVector and keyword searchPrompt cachingInput and output guardrailsEvaluation harnessEvent analyticsTeacher dashboard

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

An education platform served structured courses to school-age students, aligned to a defined syllabus. Students were already using general-purpose chatbots for homework help, and teachers could see the result: correct answers with methods the class had never been taught, explanations pitched at university level, and no sign the student had learned anything. The platform wanted its own tutor, built around how its courses actually teach, and one that teachers could see into and trust rather than work around.

What had to be true

  • Grounded in the syllabus: the same methods, notation and vocabulary as the lessons.
  • Teaches, not tells: hints and questions first, with solutions only where the teaching design allows.
  • Safe for the age range, on what students type and on what the tutor says.
  • Useful to teachers, as insight into misconceptions rather than transcripts to read.
  • Affordable at classroom scale, when a whole year group logs in at once.

UNESCO's guidance on generative AI in education calls for data privacy protections, an age limit for independent use and validation of tools for pedagogical and ethical suitability1. Those became design inputs, not an afterthought: the tutor was designed for supervised use within the platform, with schools in control of access.

Architecture

Student
Lesson contextcourse, unit, exerciseTutor chatin the lesson pageWork shownsteps, attempts
Safety
Input guardrailsage-appropriate, PIIOutput guardrailstone, content, levelEscalationflag to teacher
Grounding
Curriculum retrievallessons, worked examplesLevel metadatayear, unit, objectiveMisconception libraryauthored by teachers
Tutoring
Tutoring policyhint, question, explainLLMcached stable prefixEvaluationpolicy adherence
Insight
Learning eventsattempts, hints usedTeacher dashboardstuck points by objectiveContent feedbackto curriculum team
Layered architecture: safety wraps everything; the tutoring policy, not the model, decides how to respond.

Grounding followed the retrieval-augmented generation pattern, combining a model with retrieval from a specific corpus2, here the platform's own lessons and worked examples filtered by the student's course and unit. See the RAG to production checklist.

The data flow, end to end

  1. AskStudent question arrives with lesson, unit and attempt context
  2. ScreenInput guardrails check content and strip personal details
  3. GroundRetrieve lesson content and known misconceptions for this objective
  4. GuideTutoring policy chooses a hint, a question back or an explanation
  5. CheckOutput guardrails confirm tone, level and that no answer is leaked
  6. LearnEvent recorded against the objective for teacher insight
The answer to "what is the student stuck on?" is captured as structured events, not left buried in chat.

The hard part: hinting without leaking the answer

Getting a model to be helpful is easy. Getting it to be helpful in the right way, and to resist a determined student asking for "just the answer" five different ways, is the real work.

  • The tutoring policy was explicit and versioned: which exercise types allow worked solutions, how many hints before a fuller explanation, when to ask the student to show their step.
  • Teachers authored a misconception library per objective, so hints targeted the likely error rather than repeating the method.
  • An output check compared tutor responses against the exercise's answer key to catch leaked final answers.
  • Attempts to override the tutor's instructions were treated as expected behaviour, not edge cases; prompt injection is the first entry in the OWASP Top 10 for LLM applications4. See prompt injection defence.

The best tutor response is often a question. Evaluate for that explicitly, because a model left alone will optimise for being helpful in the moment.

How the engagement ran

Teachers
  1. Write misconceptions
  2. Grade tutor transcripts
  3. Act on dashboard insight
Curriculum team
  1. Tag content by objective
  2. Set tutoring policy per exercise
  3. Fix gaps the tutor exposes
Platform
  1. Retrieval and guardrails
  2. Evaluation gate
  3. Cost and latency monitoring
Educators define good tutoring; the platform measures it before release.
Phase 1Pedagogy
  • Tutoring policy
  • Safety requirements
  • Success criteria
Phase 2One subject
  • Content tagging
  • Retrieval and guardrails
  • Teacher-graded test set
Phase 3Classroom pilot
  • Supervised use
  • Teacher dashboard
  • Cost tuning
Phase 4Extend
  • Further subjects
  • Policy refinements
  • Content feedback loop
Phased delivery: one subject and a supervised pilot before broadening.

Key decisions and trade-offs

DecisionAlternativeWhy
Retrieve from own curriculumRely on model knowledgeMatches taught methods, notation and level
Explicit tutoring policy"Be a good tutor" promptTestable behaviour per exercise type
Guardrails on input and outputOutput filtering onlyProtects students and the tutor's instructions
Prompt caching on stable prefixFull prompt every turnLower cost and latency at peak load
Events, not transcripts, for teachersTeachers read chatsInsight at class level; less exposure of student text

Tutoring prompts share a long, stable prefix of instructions, policy and lesson context. Prompt caching reuses a processed prompt prefix across requests, so only the changing tail is processed fresh, and any change to the prefix is a cache miss3. Structuring prompts so the stable parts come first made caching effective. Details in prompt caching for cost and latency.

What I'd do again, and differently

Again: write the tutoring policy with teachers before writing prompts, and let teachers grade the test set. Differently: build the teacher dashboard earlier. Seeing where whole classes got stuck changed the content roadmap as much as the tutor.

If you're building AI for learners, the AI architect page describes how I run these engagements, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
    Prompt cachingAnthropic documentation
  4. 4
    OWASP Top 10 for LLM Applications 2025OWASP GenAI Security Project
FAQ

Common questions

How do you stop an AI tutor from just giving answers?

Make it a policy, not a hope. The tutoring policy decides when to hint, when to ask a question back and when a worked solution is appropriate, and evaluation checks that the model follows it.

Why ground the tutor in the curriculum?

So explanations use the methods, notation and level the student is being taught. Retrieval from the platform's own content keeps the tutor aligned with the syllabus rather than the internet at large.

What does prompt caching do for a tutor?

Tutoring prompts share a long, stable prefix: instructions, policy and curriculum context. Caching that prefix reduces repeated processing, which lowers cost and latency at classroom scale.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.