| Abstract: |
Learning Management Systems centralize educational resources, but students still face difficulty locating reliable answers across files, slides, pages, announcements, and forums. Large Language Models offer conversational access to such material, yet unconstrained assistants introduce hallucination, privacy, and academic-integrity risks. This paper presents SmartTutor, a Moodle-integrated tutoring framework that combines closed-domain Retrieval-Augmented Generation, deterministic workflow orchestration, evidence approval, anonymization, and privacy-preserving personalization. SmartTutor binds every request to a course context, identifies course concepts, associates them with student mastery signals, retrieves only instructor-approved resources, and follows a cite-or-refuse strategy that prevents generation when evidence is weak or policy constraints fail. Before model interaction, sensitive information is redacted to reduce exposure of personal data. The system also supports multiple pedagogical modes, including Socratic, hint-based, practice, exam, revision, and teacher-defined modes, without allowing modes to bypass grounding or privacy constraints. We evaluate OCR-based ingestion, local LLM latency and usability, and governance controls within the same grounded pipeline. Results indicate that course-bounded retrieval, mastery-aware adaptation, and deterministic gating can provide explainable tutoring while maintaining institutional control over learning data. The design is also applicable beyond Moodle, to other controlled, privacy aware RAG domains. |