Research indexConference paper
Learning and Debugging Assistant for Python with Retrieval Augmented Generation Capabilities
Raja, S, Akash and 1 other
26 Feb 2026
NobleIDark:/48914/w1/20261105/2A65C24ADOI10.1109/i5cps67958.2026.11452379
Learning and Debugging Assistant for Python with Retrieval Augmented Generation Capabilities
Raja, S, Akash and 1 other · 2026 · Subscription
NobleIDark:/48914/w1/20261105/2A65C24ADOI10.1109/i5cps67958.2026.11452379
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
Large Language Models(LLMs) often lack domain-specific grounding and may produce generic, hallucinated, or context-insensitive responses, despite their remarkable capability in assisting programming tasks. Retrieval-Augmented Generation (RAG) systems aim to address these limitations by incorporating external knowledge sources; however, many existing implementations remain passive responders with limited interactivity and pedagogical depth. This work presents the Rubber Duck Assistant, a RAG-powered python learning and debugging system that combines interactive dialog, metacognitive learning, semantic retrieval via ChromaDB, and real-time code execution. Inspired by the Rubber Duck Debugging approach, the assistant guides students to articulate and reflect on their code through precise explanations, bug identification, and correction strategies. Key contributions include a hybrid keyword-based LLM query classifier, format-aware chunk embedding, and a dedicated Debug Sandbox for safe code exploration. The Evaluation results demonstrate the effectiveness of the assistant, achieving 92% accuracy and a 91% F1 score in Python query classification. By fostering deeper learning and independent debugging skills, this study highlights how interactive and grounded artificial intelligence tutors can enhance programming education.