The AI system that writes the papers
personal project · Veteran Materials
An AI system that turns an exam syllabus and a pile of scanned past papers into publishable mock tests, in two languages, without ever repeating a paper.
three layers
- An Obsidian vault as the AI's long-term memory: 142 notes and a CLAUDE.md that says where to read before each task. A fresh session picks up exactly where the last one stopped.
- 57 Python scripts (about 12,600 lines) for everything a model can't be trusted to do by hand: parsing, OCR, duplicate checks, validation and export.
- The model, only for judgement: writing questions, explanations and analysis.
the hard problems
- Half the past papers were pictures. OCR in English and Gujarati lifted readable questions from 48% to about 92%.
- Answer keys were colours, not letters, so the parser reads the green text, or the green tick on scanned pages.
- The board shuffles options per candidate, so answers are matched by the option's text, not its letter.
- No two published sets may repeat: every set is fingerprinted, and an audit script prints PASS or FAIL.
results
14,397 questions across 2 exams, 11,071 recovered from scans with no text. 826 questions written and published across 24 papers.
the honest part
When the real exam came out, I scored the system against it. Topics landed within 2 to 3 points, but the question shape was off, and the biggest finding was my own mistake: a length rule built on our own booklets. It's now a standing rule: never take a benchmark from your own material.
what I learned
An AI system becomes reliable when its memory lives in files a person can read and correct, and every claim is backed by a script you can re-run.