Vaibhav Nakrani
← WorkLog 07 / 11LLM agents

Question-bank factory

A test-prep app needs tens of thousands of practice questions that match the curriculum skill by skill. Writing them by hand would take a team years, and one wrong answer key teaches a student the wrong thing.

Employer
AILA
Role
Senior AI engineer
When
2025 – 2026
Stack
Claude Agent SDK, Claude and Gemini models, Python
87,258multiple-choice questions shipped
7,581atomic skills, each with its own question bank
3national exams covered
<1%error rate on external and automated review
How it works

This pipeline writes practice questions for exam prep, and the lessons that go with them. It starts from the curriculum and breaks each learning goal into small skills, each one a single thing a student can get right or wrong.

A cheap, fast model writes the questions. Each question comes with a tiny program that works out its answer, so the answer key is checked by a computer and not by the model that wrote it. Two other models then solve the question without seeing the key, and they have to agree on one option. The lessons and explanations are written afterwards and get a fact check of their own.

Problems and fixes

The longest option was usually right. In the early verbal questions the correct answer was the longest option 86% of the time, so a student could score well without reading the question. A check now rejects that pattern, and the writing instructions were adjusted until it stopped.

Right answer, but not the only one. The tiny program proves the key is correct. It says nothing about the other options, and a later review found questions where a second option was also correct. One of the two solver models now works by ruling out every other option.

Wrong facts got approved. The model that reviews the lessons let through explanations with false science in them. A stronger model now does a separate fact check on everything the reviewer has passed.

Could a cheap model do the writing? The expensive models were doing everything. I ran two side-by-side trials on real curriculum and the cheap model kept up, so it took over the writing. The expensive ones now only plan and review.

Fine in testing, broken in the app. The maths was being checked with one display tool while the app used another. The check now uses the same one as the app.

Working on something like this? Message me on LinkedIn → or email nakranivaibhav14@gmail.com