Personal AI tutor
Build a subject-specific Socratic tutor with a curriculum graph, a knowledge-tracing learner model, memory with retention rules, text, voice and photo input, safety filters and a small efficacy study.
The capstone and what it builds on
- 1Personal AI Tutor (Adaptive, Multimodal, with Memory)The capstone brief
- 2Agent Memory - Virtual Context and Memory PagingPhase 14: Agent engineering
- 3Hybrid Memory: Vector + Graph + KVPhase 14: Agent engineering
- 4Stateful Graph Orchestration - Durable Execution and CheckpointsPhase 14: Agent engineering
- 5Context Engineering: Windows, Budgets, Memory, and RetrievalPhase 11: LLM engineering and RAG
- 6Build a Voice Assistant Pipeline - The Phase 6 CapstonePhase 6: Speech and audio
- 7OCR & Document UnderstandingPhase 4: Computer vision
- 8Guardrails, Safety & Content FilteringPhase 11: LLM engineering and RAG
What You'll Build
An adaptive tutor for one subject (algebra or intro Python, for example). A Socratic policy asks before it explains, a Bayesian knowledge tracing model updates mastery per concept, a prerequisite graph picks the next concept, and memory keeps mistakes and preferences under a retention policy. Learners can type, speak or photograph a problem. You run a small efficacy study against a linear, non-adaptive baseline and report the result honestly.
Requirements
- Curriculum graph of at least 40 concepts with prerequisite edges (Neo4j, SQLite or networkx), an acyclicity check and open educational content linked per node.
- Bayesian knowledge tracing with per-concept priors (guess, slip, learn), updated after every interaction and persisted per learner; unit tests on the update equations.
- Tutor policy as a state graph with
read_signal(correct, partial, stuck),select_concept(graph walk by priority),scaffold(Socratic question or hint; never the final answer on the first request) andupdate_mastery. - Spaced-repetition scheduling (SM-2 or FSRS) for review items.
- Memory: episodic log of every interaction, promotion of repeated mistakes and preferences to semantic memory, strict per-learner scoping, a configurable retention period with automatic deletion and a deletion endpoint.
- Multimodal input: text, voice (ASR in and TTS out, push-to-talk is fine) and a photo of a problem (OCR or VLM) turned into structured input.
- Safety: every model output passes a moderation classifier plus an age-appropriate filter; a red-team set of at least 20 prompts, including attempts to read another learner's memory, is blocked and logged.
- Efficacy study: pre-test and post-test for the adaptive tutor and a linear baseline on the same content; report learning gain with a confidence interval and the sample size.
- Socratic fidelity: score at least 20 transcript samples with a written rubric (LLM judge plus your own manual check of 5).
- Per-learner progress report (HTML or PDF) with concepts practised, mastery trajectory and next steps.
Constraints
- Model-agnostic: any OpenAI-compatible endpoint (including the KatalockAi API) or a local model (for example via Ollama, llama.cpp or vLLM) may be used. No named commercial model is required; record which model you used in the README.
- Hardware: a laptop is enough; voice can use faster-whisper and Piper or Kokoro locally, photos can use an OCR model or any VLM.
- Substitution: the lesson runs a two-week study with 10 learners per arm and a K-12 audience. Here a pilot with at least 3 consenting adult learners per arm, or a simulated-learner study (LLM learners whose knowledge follows BKT parameters) plus at least 2 real adult pilot sessions, is accepted. State clearly how small n limits the conclusions.
- Ethics: do not involve children unless you have guardian consent and follow local rules. Get informed consent from adult participants and commit only anonymised results.
Stretch Goals
- Compare adaptive concept order against random order and report the gap.
- Add a parent or learner dashboard with safety events and mastery trajectories.
- Add a second teaching language and measure moderation coverage in it.
How to Submit
- Public GitHub repo with
curriculum/,learner_model/,policy/,memory/,io/(voice and photo),safety/,study/(tests, anonymised results, analysis),reports/andREADME.md. - README: subject and audience, architecture, how to run a tutoring session in each modality, study design and results with caveats, safety and privacy model, and limitations.
- Paste the study results table, two annotated transcripts (one stuck, one correct path) and the red-team summary.
How It's Reviewed
Professor Katalock reads your repository and the evidence you paste, and scores each criterion out of 100. You pass with a weighted total of 70 or more and no criterion below 40. A copied or padded submission is flagged and fails.
Submit
Push your work to a public GitHub repository with a README that explains how to run it, then paste the evidence below. Up to 3 reviews a day, free.
- Study results table (arm, n, pre, post, gain, confidence interval)
- Two annotated tutoring transcripts showing signal, concept choice and mastery updates
- Socratic fidelity rubric scores
- Safety red-team summary including the cross-learner memory attempt
- One generated progress report (link or excerpt)
Reviews are done by AI against the rubric above. They check the evidence in your repository; they are not a substitute for a human code review, and a review can be wrong. If you think it is, improve the README so the evidence is unmistakable and resubmit.