How gittaboina1-ops/finalproject works
PragTutor is a role-based tutoring web application backed by a FastAPI service and a pedagogical RAG engine. A student signs in, asks about a course topic, and receives an explanation grounded in course material, with prerequisite guidance and quiz support; teacher and admin dashboards provide course-upload and account-management capabilities. The documented engine identifies the topic, checks mastery and prerequisites, retrieves text and visual material, builds a teaching prompt, and generates a response. Some API-to-engine details are documented or indexed rather than visible in the excerpts, so those edges cite that evidence.
Main entry points: pragtutor_backend.py Query orchestration · api.js API client · main.py FastAPI gateway · student_database.py Student progress store
Components 26
Web application
- Sign-in and roles
LPITUTOR/src/context/AuthContext.jsx - AI chat and quiz
LPITUTOR/src/pages/student/AIChat.jsx - Answer renderer
LPITUTOR/src/components/LLMMessageRenderer.jsx - Student dashboard
LPITUTOR/src/pages/student/StudentDashboard.jsx - Teacher dashboard
LPITUTOR/src/pages/teacher/TeacherDashboard.jsx - PDF upload
LPITUTOR/src/pages/teacher/UploadPDF.jsx - Admin dashboard
LPITUTOR/src/pages/admin/AdminDashboard.jsx - API client
LPITUTOR/src/services/api.js
API and roles
- FastAPI gateway
LPITUTOR/backend/main.py
Tutoring engine
- Query orchestration
pragtutor_backend.py - Topic identification
topic_identifier.py - Prerequisite planning
prerequisite_engine.py - Teaching prompt
dynamic_prompt.py - Image context
multimodal_processor.py - LLM generation
llm_service.py - Quiz evaluation
pragtutor_backend.py
Course knowledge
- Text and image retrieval
retrieve.py - Knowledge-base builder
build_knowledge_base.py - PDF visual extraction
visual_processor.py - Course PDFs and metadata
data - ChromaDB vector store
Student state
- Student progress store
student_database.py - MongoDB
Other components
- Student
- Teacher
- Administrator
Connections 32
- Student → Sign-in and roles: signs in
LPITUTOR/src/context/AuthContext.jsx - Sign-in and roles → API client: requests login
LPITUTOR/src/context/AuthContext.jsx - Teacher → PDF upload: uploads PDFs
- Administrator → Admin dashboard: manages accounts
- Student → AI chat and quiz: asks questions
- Student → Student dashboard: views progress
- AI chat and quiz → API client: sends queries
LPITUTOR/src/pages/student/AIChat.jsx - Student dashboard → API client: loads progress
LPITUTOR/src/pages/student/StudentDashboard.jsx - PDF upload → API client: uploads files
LPITUTOR/src/pages/teacher/UploadPDF.jsx - Teacher dashboard → PDF upload: opens upload
LPITUTOR/src/pages/teacher/TeacherDashboard.jsx - Admin dashboard → API client: manages users
LPITUTOR/src/pages/admin/AdminDashboard.jsx - API client → FastAPI gateway: calls REST API
LPITUTOR/src/services/api.js - FastAPI gateway → Query orchestration: dispatches tutoring
README.md - FastAPI gateway → Student progress store: reads and updates
LPITUTOR/backend/main.py - FastAPI gateway → Knowledge-base builder: builds knowledge base
LPITUTOR/backend/main.py - Query orchestration → Topic identification: identifies topic
pragtutor_backend.py - Query orchestration → Prerequisite planning: checks prerequisites
README.md - Query orchestration → Text and image retrieval: retrieves grounding
README.md - Query orchestration → Image context: processes images
pragtutor_backend.py - Query orchestration → Teaching prompt: builds teaching prompt
pragtutor_backend.py - Query orchestration → LLM generation: generates response
pragtutor_backend.py - Query orchestration → Student progress store: records query
pragtutor_backend.py - Query orchestration → Quiz evaluation: creates and evaluates
pragtutor_backend.py - Prerequisite planning → Student progress store: reads mastery
prerequisite_engine.py - Student progress store → MongoDB: persists progress
README.md - Text and image retrieval → ChromaDB vector store: queries embeddings
README.md - Text and image retrieval → PDF visual extraction: matches extracted figures
README.md - Knowledge-base builder → Course PDFs and metadata: chunks course PDFs
README.md - Knowledge-base builder → ChromaDB vector store: builds collection
README.md - PDF visual extraction → Course PDFs and metadata: extracts figures
README.md - LLM generation → Student: returns explanation
README.md - AI chat and quiz → Answer renderer: renders answer
LPITUTOR/src/pages/student/AIChat.jsx