Generative AI-Driven Chatbots
for Educational Support

This research presents the development of a suite of four Generative AI chatbots, each tailored to module-specific subject areas: Programming, Mathematics, English, and Technical Subjects. These chatbots are designed to address the critical gap in current educational technologies by fostering deep conceptual understanding through step-by-step guidance.

Launch Chatbot

Project Scope

As the demand for scalable and personalized learning solutions grows, this project explores the integration of Generative AI into higher education through the development of intelligent educational chatbots. Focused on addressing the most common academic challenges faced by students at the Sri Lanka Institute of Information Technology (SLIIT), this initiative introduces AI-powered assistants tailored to core subjects such as Mathematics, Programming, English Language, and Data Structures & Algorithms (DSA). By leveraging advanced language models and educational technology, the project aims to create a supportive, adaptive, and interactive learning ecosystem that enhances both student engagement and academic performance.

Background & Literature Survey

A comprehensive review of the evolution, applications, benefits, and challenges of AI in modern education.

A. Evolution of AI in Education Sector

The integration of Artificial Intelligence (AI) in education has transformed traditional instructor-led systems into intelligent, adaptive environments. Initially limited to static, rule-based expert systems, AI's evolution through machine learning and deep learning has enabled real-time personalized recommendations, adaptive assessments, and intelligent tutoring systems. Natural Language Processing (NLP) has revolutionized education by automating tutoring and dynamically responding to student queries with personalized feedback.

B. AI Chatbots in Education

AI-powered chatbots act as virtual tutors, offering step-by-step assistance, instant feedback, and personalized learning paths. Unlike static educational tools, chatbots simulate interactive dialogue to promote active learning and critical thinking. Visual support, such as graphs and diagrams, helps in breaking down complex concepts, making chatbots effective across a variety of disciplines.

C. Pedagogical Benefits and Cognitive Impact

Beyond immediate assistance, AI enhances pedagogy by analyzing student progress and dynamically adapting instructional strategies. It supports personalized motivation, reduces subject-related anxiety, and aligns with constructivist theories of learning. AI encourages metacognitive skills like reflection and self-regulation, creating more confident and self-aware learners.

D. Challenges and Ethical Considerations

Despite its advantages, AI in education poses risks such as inaccurate answers from large language models and potential data privacy violations. Bias in AI algorithms can lead to unequal learning outcomes. Ethical deployment demands transparency, model refinement, and data protection strategies including user consent and human-in-the-loop oversight.

E. Future Directions

Future advancements will integrate AI with immersive technologies like Augmented and Virtual Reality, as well as automated grading systems that understand student reasoning. More interpretable and inclusive AI models will increase educator trust and equitable access. Ultimately, AI will serve not as a teacher replacement, but as a powerful aid to enhance educational experiences and deepen conceptual understanding.

Research Gap

While AI-powered tools are rising in education, their real-world impact remains limited, especially in regions like Sri Lanka. Our study identifies four critical gaps that must be addressed for localized, effective learning.

Gap 1: Curriculum-Specific AI Adaptation

Generic AI tools like ChatGPT or Duolingo are not integrated with local curricula such as SLIIT’s EAP or Professional Skills modules. They ignore domain-specific language and coding examples, causing confusion and increased study load.

Gap 2: Limited Multimodal & Adaptive Interaction

Current systems are mostly text-based and do not accommodate diverse learning preferences. ESL learners lack accent-sensitive feedback, and programmers receive one-size-fits-all explanations with no scaffolding.

Gap 3: Scalability, Cost & Ethics

Deploying LLMs like GPT-4 at scale is costly and impractical for institutions. Lightweight alternatives either hallucinate or lack reliability. Ethical issues like privacy and transparency remain under-addressed.

Gap 4: Lack of Personalization & Visual Learning Paths

AI tools fail to adapt to course structures in subjects like DSA. Visual metaphors often misalign with lecture content, burdening students with translation effort and increasing cognitive load.

Area Limitations in Existing Chatbots Domain-Specific Challenges Proposed Solution
Curriculum Alignment Generic models, not tailored to institutional content Mismatch with SLIIT EAP/professional skills & coding styles RAG-based retrieval from lecture slides & rubrics
Adaptivity to Learners Static responses, no scaffolding Fails to address mixed ESL levels or code comprehension Socratic engine + ZPD framework to adjust to learner proficiency
Multimodal Interaction Mostly text-based, lacks visual/audio feedback No accent feedback or diagram support for local teaching Accent-aware voice support & instructor-aligned visuals
Context Handling Loses memory over multi-turn conversations Fails to track step-wise logic in programming or instructions Dynamic context with semantic + keyword hybrid retrieval
Feedback & Guidance Binary feedback or full solutions only Neglects incremental learning models Steps / Describe / Evaluate modes with scaffolded hints
Ethical Considerations Low transparency or privacy controls Unclear consent, data use, and personalization methods User-controlled settings, transparent logs & data use

Research Problem & Solution

Problem Statement

The integration of AI chatbots into education holds promise, but most fail to address real classroom challenges. At institutions like SLIIT, students struggle with abstract subjects like DSA, Mathematics, and English due to generic chatbot support that lacks curriculum alignment, personalization, and step-wise guidance. Language tools lack multi-turn memory, pronunciation help, or cultural alignment. Math bots often jump to answers without fostering deep conceptual understanding. These gaps reduce the academic impact of current AI tools, especially in diverse and localized contexts.

Proposed Solution

This research proposes four domain-specialized AI chatbots tailored to key subjects: SLM-based agents for programming, LLMs for Mathematics and English, and a RAG-powered system for technical topics. Each will support adaptive learning, speech/text interactivity, and curriculum-aware guidance aligned with SLIIT modules. Using multi-turn context, prompt engineering, and ethical personalization, the bots aim to enhance understanding, fluency, and learner engagement—delivering affordable, private, and scalable support that complements existing instruction.

Research Objectives

General Objective

To design, develop, and evaluate a suite of curriculum-aligned, AI-powered educational chatbots tailored for undergraduate students at SLIIT. These chatbots aim to deliver personalized, step-by-step, and context-aware support across Mathematics, English, Programming, and DSA using LLMs (Gemma, Phi-3, DeepSeek-7B), Retrieval-Augmented Generation (RAG), and cloud-based deployment via Azure Kubernetes Services.

Specific Objectives

  1. Design and develop GenAI chatbots for Programming, Mathematics, English, and DSA with SLIIT curriculum alignment.
  2. Implement knowledge strategies like RAG for DSA and prompt-optimized methods for other modules.
  3. Collect and preprocess learning resources (e.g., lecture notes, grammar rules, code snippets) for efficient chatbot response generation.
  4. Enable topic-wise, level-specific, and content-type-based interactions to personalize learning experiences.
  5. Integrate cloud-retrieved visual content (e.g., diagrams, flowcharts, formula illustrations) to support visual learning.
  6. Develop a scalable, modular system using ReactJS, FastAPI, Azure, Docker, and MongoDB.
  7. Evaluate effectiveness through student feedback, usage analytics, and academic performance data.

Methodology

Unified Framework Overview

Our research employs a comprehensive, multi-faceted approach that integrates four specialized AI chatbots, each tailored to specific educational domains. The methodology ensures consistency, effectiveness, and alignment with pedagogical objectives through a unified framework that emphasizes ethical use, personalization, and curriculum integration.

Core Principles
  • • Ethical AI implementation with profanity filtering
  • • Context-aware conversation management
  • • Adaptive difficulty adjustment
  • • Curriculum-aligned content delivery
Technical Framework
  • • Embedding-based memory mechanisms
  • • Small Language Model optimization
  • • Secure authentication systems
  • • Comprehensive data logging

Four Specialized Chatbot Approaches

Programming Chatbot
SLM Approach

Designed as an interactive coding assistant providing step-by-step guidance in Java, C, and C++. Focuses on building understanding through guided problem-solving rather than direct answers.

Model Selection & Optimization
✓ DeepSeek 7B - Lightweight, fast
✓ Phi-3 - Low latency, step-by-step guidance
✓ CodeBERT - Strong debugging capabilities
✗ Mistral - High cost, slow response
Key Features
  • • Fine-tuned on university coding curricula
  • • Instruction tuning for pedagogical responses
  • • Embedding-based context retention
  • • Quantization for reduced computational overhead
Mathematics Chatbot
LLM Approach

Advanced AI-powered assistant leveraging Large Language Models for step-by-step mathematical problem-solving with interactive guidance and personalized learning experiences.

Model Evaluation & Selection
✓ Phi-3-mini-4k-instruct - Superior structured problem-solving
⚠ Meta-Llama-3.1-8B-Instruct - Requires extensive fine-tuning
✗ mathewhe/DCLM-7B-Chat - Limited mathematical reasoning depth
Advanced Features
  • • Graph-based visualization for functions and equations
  • • Interactive query handling with hints and alternatives
  • • Real-time feedback and continuous model improvement
  • • Structured solutions from algebra to calculus
Technical Subject (DSA)
RAG Approach

Interactive tutor using Socratic method for Data Structures and Algorithms, combining Retrieval-Augmented Generation with Gemma LLM for context-aware, personalized responses.

RAG Implementation
Vector database creation using Langchain embeddings
Similarity search for relevant content retrieval
Context summarization and refinement
Socratic Method Features
  • • Structured questioning to guide problem-solving
  • • Critical thinking promotion over direct answers
  • • Adaptive difficulty and personalized experience
  • • Visual learning with lecture material images
English Language
Multimodal LLM

Comprehensive language proficiency enhancement focusing on listening, reading, speaking, and writing skills with real-time feedback and multimodal interactions.

Four Core Modules
Listening & Reading
TTS-powered comprehension
Speaking
STT evaluation system
Writing
Grammar & clarity analysis
Evaluation
Detailed feedback system
Advanced Capabilities
  • • Fine-tuned on academic English materials
  • • Integrated TTS and STT functionalities
  • • Structured prompt engineering for consistency
  • • MongoDB-based progress tracking

Technical Implementation & Architecture

System Architecture
  • Client-server model with React frontend
  • FastAPI/Flask backend for API management
  • SQLite for persistent data storage
  • Docker containerization for scalability
Security & Authentication
  • Token-based authentication system
  • Encrypted session storage
  • Role-based access management
  • Comprehensive data protection
Deployment & Hosting
  • Azure Containerized instance/VM
  • Auto-scaling capabilities
  • Version control and seamless updates
  • Load balancing for optimal performance

Evaluation Framework & Performance Metrics

Accuracy Metrics

Response precision, mathematical correctness, code compilation rates

Engagement Analysis

User interaction rates, session duration, learning retention

Performance Metrics

Response times, computational efficiency, system reliability

User Feedback

Satisfaction surveys, usability studies, improvement suggestions

Innovation & Future Enhancements

Current Innovations
  • Adaptive learning pathways based on student performance
  • Multi-modal interaction combining text, speech, and visuals
  • Real-time model fine-tuning based on interaction data
  • Socratic method implementation for deeper learning
Future Directions
  • Enhanced explanations for complex technical topics
  • Expanded knowledge base for broader curriculum coverage
  • Advanced analytics for learning pattern recognition
  • Integration with institutional learning management systems

Technologies Used

Our project utilizes a robust and modern tech stack to build an intelligent, scalable, and efficient system.

Python Logo

Python

Core Backend Language

LangChain

LLM Framework

ChromaDB Logo

Chroma DB

Vector Database

Docker Logo

Docker

Containerization

Azure Logo

Azure

Cloud Infrastructure

GitHub Logo

GitHub

Version Control

Colab Logo

Google Colab

Cloud Notebook

Jupyter Logo

Jupyter Notebook

Experimentation Interface

React Logo

React.js

Frontend Library

Node.js Logo

Node.js

Runtime Environment

SQLite Logo

SQLite3

Lightweight Database

Visual Studio Code Logo

Visual Studio Code

Development Environment

Project Milestones

Key phases and achievements throughout the research journey

Project Proposal

Initial research proposal and problem identification

Phase 1

Literature Review

Comprehensive analysis of existing AI educational tools

Phase 2

System Development

Implementation of four specialized chatbots

Phase 3

Testing & Evaluation

Performance testing and user feedback collection

Phase 4

Final Report

Complete documentation and research findings

Phase 5

Downloads

Access research documents, reports, and supplementary materials

Our Team

Meet the researchers behind this innovative educational AI project

Prof. Nuwan Kodagoda

Prof. Nuwan Kodagoda

Supervisor

Department of Information Technology
Faculty of Computing, SLIIT

nuwan.k@sliit.lk
Prof. Nuwan Kodagoda

Dr. Kalpani Manathunga

Co-Supervisor

Department of Software Engineering
Faculty of Computing, SLIIT

kalpani.m@sliit.lk
Ranasinghe T.R.

Ranasinghe T.R.

Researcher

Department of Software Engineering
Faculty of Computing, SLIIT

it21144462@my.sliit.lk
Jayawardhana E.K.

Jayawardhana E.K.

Researcher

Department of Software Engineering
Faculty of Computing, SLIIT

it21147678@my.sliit.lk
Balasooriya S.N.

Balasooriya S.N.

Researcher

Department of Software Engineering
Faculty of Computing, SLIIT

it21281532@my.sliit.lk
Wickramasinghe W.G.S.H.V

Wickramasinghe W.G.S.H.V

Researcher

Department of Software Engineering
Faculty of Computing, SLIIT

it21568732@my.sliit.lk

Contact Us

Get in touch with our research team for collaboration opportunities or inquiries

Get In Touch

Address

Sri Lanka Institute of Information Technology
New Kandy Road, Malabe, Sri Lanka

Email

it21/144462/147678/281532/568732@my.sliit.lk

Department

Faculty of Computing
Department of Software Engineering

Follow Our Research

Send us a Message