How eduai-lab/eduai works
EduAI is a UBC course-delivery platform whose central Core app provides course-aware AI chat and APIs, alongside AI Tutor and Question Maker extensions. A learner selects a course, submits a chat request, and receives an AI response grounded in course materials; staff also manage courses, integrations, and platform settings. The README documents the product capabilities and extension integrations; sampled implementation excerpts are limited, so internal call paths are not inferred beyond those documented relationships.
Main entry points: chat.ts Core API · chat-route.server.ts Chat and RAG · server.ts Courses and materials · course-detail-manager-view.tsx Course management
Components 19
Core learning platform
- Core web app
apps/core/app/components/chat/chat-screen.tsx - Course management
apps/core/app/components/courses/course-detail-manager-view.tsx - Core API
apps/core/app/routes/api/chat.ts - Authentication
apps/core/app/lib/auth/server.ts - Courses and materials
apps/core/app/lib/courses/server.ts
AI and retrieval
- Chat and RAG
apps/core/app/lib/chat/chat-route.server.ts - Material processing
apps/core/app/lib/materials/extraction-job.server.ts - Embeddings
apps/core/app/lib/ai/embedding.ts - Model routing
apps/core/app/lib/ai/routing/router.ts - AI providers
apps/core/app/lib/ai/providers.server.ts
Educational extensions
- AI Tutor
apps/extensions/ai-tutor/server/src/app.js - Question Maker
apps/extensions/question-maker/app/frontend/src/App.tsx - Question Maker API
apps/extensions/question-maker/app/backend/src/services/authService.js
Shared services
- Shared UI library
packages/ui/src/ai-service-indicators.tsx - Shared types
packages/types/src/errors.ts
Other components
- Learner or staff
- Canvas LMS
- PostgreSQL
- AI service providers
Connections 18
- Learner or staff → Core web app: uses
- Core web app → Core API: submits chat
- Core API → Authentication: authenticates
- Core API → Chat and RAG: handles chat
- Chat and RAG → Courses and materials: retrieves course context
- Course management → Courses and materials: manages courses
- Course management → Canvas LMS: syncs materials
- Material processing → Embeddings: creates embeddings
- Embeddings → Courses and materials: indexes materials
- Chat and RAG → Model routing: selects model
- Model routing → AI providers: routes inference
- AI providers → AI service providers: requests completion
- AI Tutor → Core API: integrates with
- Question Maker API → Core API: integrates with
- Question Maker → Question Maker API: uses API
- AI Tutor → Shared UI library: uses shared components
- Question Maker → Shared UI library: uses shared components
- Core API → PostgreSQL: persists platform data