LLM-Compiled Wiki versus RAG for Classroom Question Answering
LLMs are increasingly deployed as course-specific tutors, but their usefulness depends on grounding in vetted course materials that change during the semester. Our prior work built a multimodal retrieval-augmented generation, or RAG, system for a machine learning course, DS3001 Foundations of Machine Learning, and found that retrieval improved grounding but that fixed retrieval strategies were suboptimal, since performance depended on question specificity and context composition. That result motivates a different question: whether how a corpus is structured at ingest time matters more than how much is retrieved at query time. We compare two knowledge representations over the full DS3001 course and its companion online text, 81 documents and about 235k tokens: vector RAG, configured as in our prior study, and an LLM-compiled wiki, following Karpathy's proposal, whose linked concept pages cite their sources and are navigated at question time. Five conditions separate representation from context volume: closed-book generation, bounded RAG retrieval, the RAG corpus in full context, bounded wiki navigation, and the full wiki in context. Navigation and retrieval are also evaluated at…
- arXiv
- 2612.02851
- Authors
- Brian Wright
- Categories
- cs.AI · cs.ET