How 71ashu/ai-course-advisor works
AI Course Advisor is a full-stack academic planning product. Students register or sign in, complete onboarding if needed, then use the advisor to get explainable course recommendations and inspect degree progress, profiles, prerequisite paths, and conversation history. The backend API coordinates recommendation scoring, prerequisite analysis, collaborative signals, grade prediction, and advisory text, with student and course state persisted in PostgreSQL. The graph emphasizes documented capabilities and sampled call relationships; several backend routes and UI panels are represented from the README and SOURCE INDEX rather than inspected source excerpts.
Main entry points: CourseAdvisor.jsx Advisor shell · app.py Flask API · models.py Domain models · services.py Scoring and progress
Components 21
Student experience
- App shell
frontend/src/App.jsx - Auth screens
frontend/src/components/auth/AuthPage.jsx - Advisor shell
frontend/src/CourseAdvisor.jsx - Advisor chat
frontend/src/components/course-advisor/AdvisorTab.jsx - Course cards
frontend/src/components/course-advisor/CourseCard.jsx - Conversation list
frontend/src/components/course-advisor/ConversationList.jsx - Onboarding quiz
frontend/src/components/course-advisor/OnboardingQuiz.jsx - Dashboard
frontend/src/components/course-advisor/DashboardPanel.jsx - Progress panel
frontend/src/components/course-advisor/ProgressPanel.jsx - Profile panel
frontend/src/components/course-advisor/ProfilePanel.jsx - API client
frontend/src/api.js
Backend API
- Flask API
backend/app.py - Email delivery
backend/mailer.py
Recommendation engine
- Scoring and progress
backend/services.py - Prerequisite graph
backend/knowledge_graph.py - Collaborative filter
backend/collaborative.py - Grade prediction
backend/grade_predictor.py - Advisory messages
backend/llm.py
Academic data
- Domain models
backend/models.py - PostgreSQL
Other components
- Student
Connections 27
- Student → App shell: uses
README.md - App shell → API client: requests
frontend/src/App.jsx - App shell → Auth screens: renders
frontend/src/App.jsx - App shell → Advisor shell: renders
frontend/src/App.jsx - Advisor shell → API client: requests
frontend/src/CourseAdvisor.jsx - Advisor shell → Advisor chat: renders
frontend/src/CourseAdvisor.jsx - Advisor shell → Onboarding quiz: renders
frontend/src/CourseAdvisor.jsx - Advisor shell → Dashboard: renders
frontend/src/CourseAdvisor.jsx - Advisor shell → Progress panel: renders
frontend/src/CourseAdvisor.jsx - Advisor shell → Profile panel: renders
frontend/src/CourseAdvisor.jsx - Advisor chat → Course cards: renders
frontend/src/components/course-advisor/AdvisorTab.jsx - Advisor chat → Conversation list: renders
frontend/src/components/course-advisor/AdvisorTab.jsx - Advisor chat → API client: submits queries
- API client → Flask API: HTTP requests
README.md - Flask API → Scoring and progress: scores recommendations
backend/app.py - Flask API → Advisory messages: generates advice
backend/app.py - Flask API → Prerequisite graph: serves graph paths
backend/app.py - Flask API → Email delivery: sends reset email
backend/app.py - Scoring and progress → Prerequisite graph: checks prerequisites
backend/services.py - Scoring and progress → Collaborative filter: scores peers
backend/services.py - Scoring and progress → Grade prediction: predicts grades
backend/services.py - Scoring and progress → Domain models: reads academic records
backend/services.py - Prerequisite graph → Domain models: reads courses
backend/knowledge_graph.py - Collaborative filter → Domain models: reads enrollments
backend/collaborative.py - Grade prediction → Domain models: reads grade history
backend/grade_predictor.py - Flask API → Domain models: reads and writes
backend/app.py - Domain models → PostgreSQL: persists records