How ektumbar/syllabus-driven-multi-agent-academic-tutor works
This is a syllabus-driven, multi-tenant academic tutor: students sign in, create courses from syllabi, upload lecture materials, then study modules through adaptive quizzes and progress tracking; administrators manage users and inspect audit logs. The documented learning workflow runs through a LangGraph orchestrator and four agents, with retrieval over indexed course documents and mastery persisted in Postgres. The README documents some agent-stage links; source-index references support other connections. Unsampled implementations and dynamic wiring are not independently verified.
Main entry points: App.jsx Application Routes · client.js API Client · orchestrator.py Agent Orchestrator · crud.py Data Operations
Components 33
Student and Admin UI
- Application Routes
frontend/src/App.jsx - Course Study
frontend/src/pages/Course.jsx - Course Home
frontend/src/pages/Home.jsx - Syllabus Upload
frontend/src/components/SyllabusUpload.jsx - Quiz Panel
frontend/src/components/QuizPanel.jsx - Concept Explainer
frontend/src/components/ConceptExplainer.jsx - Mastery Dashboard
frontend/src/components/MasteryDashboard.jsx - Admin Console
frontend/src/admin/AdminDashboard.jsx - API Client
frontend/src/api/client.js - Authentication UI
frontend/src/auth/AuthPage.jsx
Backend API and Identity
- Auth Routes
backend/auth/auth_routes.py - Syllabus and Documents API
backend/api/syllabus_routes.py - Quiz API
backend/api/quiz_routes.py - Chat API
backend/api/chat_routes.py - Profile API
backend/api/profile_routes.py - Admin API
backend/api/admin_routes.py - JWT Identity
backend/auth/dependencies.py
Tutoring and Retrieval
- Syllabus Planner
backend/agents/planner_agent.py - Agent Orchestrator
backend/agents/orchestrator.py - Course Researcher
backend/agents/researcher_agent.py - Adaptive Examiner
backend/agents/examiner_agent.py - Answer Evaluator
backend/agents/evaluator_agent.py - Document Ingestion
backend/rag/ingest.py - Embedding Service
backend/rag/embeddings.py - Vector Search
backend/rag/vector_store.py - Gemini Client
backend/llm/llm_client.py
Persistence and Integrations
- Data Operations
backend/db/crud.py - Domain Records
backend/db/models.py - Postgres Database
backend/db/database.py - Supabase File Storage
backend/storage/file_storage.py
Other components
- Student
- Admin
- Google Gemini
Connections 45
- Student → Application Routes: uses
- Admin → Application Routes: uses
- Application Routes → Course Home: routes
frontend/src/App.jsx - Application Routes → Course Study: routes
frontend/src/App.jsx - Application Routes → Mastery Dashboard: routes
frontend/src/App.jsx - Application Routes → Admin Console: routes
frontend/src/App.jsx - Application Routes → Authentication UI: routes
frontend/src/App.jsx - Course Home → Syllabus Upload: renders
frontend/src/pages/Home.jsx - Course Home → API Client: requests
frontend/src/pages/Home.jsx - Course Study → Quiz Panel: renders
frontend/src/pages/Course.jsx - Course Study → Concept Explainer: renders
frontend/src/pages/Course.jsx - Course Study → API Client: requests
frontend/src/pages/Course.jsx - Mastery Dashboard → Mastery Dashboard: shows mastery
- Admin Console → Admin API: requests
- Authentication UI → API Client: authenticates via
frontend/src/auth/AuthPage.jsx - API Client → Auth Routes: calls REST API
- API Client → Syllabus and Documents API: calls REST API
- API Client → Quiz API: calls REST API
- API Client → Profile API: calls REST API
- Auth Routes → JWT Identity: checks identity
backend/auth/auth_routes.py - Auth Routes → Data Operations: reads and writes
backend/auth/auth_routes.py - Syllabus and Documents API → Syllabus Planner: parses syllabus
backend/api/syllabus_routes.py - Syllabus and Documents API → Data Operations: stores course
backend/api/syllabus_routes.py - Syllabus and Documents API → Document Ingestion: indexes documents
backend/api/syllabus_routes.py - Syllabus and Documents API → Supabase File Storage: stores files
backend/api/syllabus_routes.py - Quiz API → Agent Orchestrator: runs tutoring flow
backend/api/quiz_routes.py - Chat API → Course Researcher: retrieves context
backend/api/chat_routes.py - Profile API → Data Operations: reads profile
backend/api/profile_routes.py - Admin API → Data Operations: manages records
backend/api/admin_routes.py - Agent Orchestrator → Syllabus Planner: extracts modules
backend/agents/orchestrator.py - Agent Orchestrator → Course Researcher: retrieves context
backend/agents/orchestrator.py - Agent Orchestrator → Adaptive Examiner: generates quiz
backend/agents/orchestrator.py - Agent Orchestrator → Answer Evaluator: evaluates answers
backend/agents/orchestrator.py - Answer Evaluator → Adaptive Examiner: remediates errors
- Course Researcher → Vector Search: searches chunks
backend/agents/researcher_agent.py - Document Ingestion → Embedding Service: creates vectors
- Embedding Service → Gemini Client: requests embeddings
backend/rag/embeddings.py - Vector Search → Embedding Service: embeds queries
backend/rag/vector_store.py - Syllabus Planner → Gemini Client: generates modules
backend/agents/planner_agent.py - Adaptive Examiner → Gemini Client: generates questions
backend/agents/examiner_agent.py - Answer Evaluator → Gemini Client: evaluates response
backend/agents/evaluator_agent.py - Gemini Client → Google Gemini: generates content
backend/llm/llm_client.py - Data Operations → Postgres Database: queries records
backend/db/crud.py - Postgres Database → Domain Records: maps tables
backend/db/models.py - Agent Orchestrator → Data Operations: persists mastery
backend/agents/orchestrator.py