Vaibhav Nakrani
← WorkLog 08 / 11LLM agents

Prerequisite graph

An adaptive app has to know what to teach next. That needs a map of which skill depends on which, across 3,875 curriculum units in three exams.

Employer
AILA
Role
Senior AI engineer
When
2026
Stack
Claude Agent SDK, Claude models, Python
2,017prerequisite links shipped
3,875curriculum units judged
0cycles in any shipped graph
0.78precision on a public benchmark
How it works

Students get a question wrong for two reasons: they haven't learned the topic yet, or they are missing something from earlier. This project maps the second kind: which skill has to come before which.

One model suggests links and has to point at the actual questions that need the earlier skill. Code drops any suggestion that points at questions that don't exist. A second model then answers three yes-or-no questions about each link. Is the earlier skill really used? Is it something this unit doesn't teach itself? Is the order right? Code does the final tidy-up.

Problems and fixes

Nothing to mark it against. The curriculum has no list of correct links. So I ran the same pipeline on a public geometry set that people had already labelled. 78% of the links it suggested were right.

Skills going in a circle. On that first run, twenty skills ended up each needing the next, all the way round. Every link looked fine alone, and checking links one at a time can't see a circle. I added a step where a third model settles links that contradict each other, plus a check in code that no circle is left.

Shared questions looked like a link. Many units reuse the same questions, and the models took that overlap as proof that one unit needed the other. Each unit's summary now marks its shared skills, and they don't count as evidence.

“Each needs the other.” Closely related units kept coming back as needing each other. Those pairs now go to a direct comparison. All of them also turned out to fail the “doesn't teach it itself” question, so that question is now asked first.

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