Idea · Aug 15, 2026
Misconception-Routing RAG: Extending Course-Grounded CS1 Chatbots with Socratic Scaffolding and Instructor Concept Analytics
This research adds a misconception-detection and Socratic routing layer on top of verified-source RAG chatbots like Alan, asking whether routing confused queries to guided questioning rather than direct answers reduces misconception persistence and improves learning outcomes in CS1.
What it would do
Grounding a CS1 chatbot in verified course materials, as Alan demonstrates, addresses hallucination and trust. However, grounding alone does not handle a deeper pedagogical challenge: when a student's question reveals a fundamental misconception, answering it directly may reinforce the wrong mental model. This research adds a misconception-routing layer above the RAG retrieval step. A lightweight classifier trained on CS1 query semantics and common error patterns distinguishes information-seeking queries (which receive direct grounded answers) from misconception-revealing queries (which trigger Socratic scaffolding: a sequence of guided questions and partial hints that lead the student toward the correct mental model without revealing it). An instructor-facing analytics module aggregates misconception-tagged queries into a real-time concept-confusion heatmap, giving the instructor class-wide awareness before and during office hours. The study compares a direct-RAG condition against the Socratic-routing condition on misconception persistence, resubmission rates, and student-reported satisfaction across two sections of an introductory programming course.