How csulb-ai-club-projects/material-enhancement-assistant3 works
Material Enhancement Assistant lets instructors upload course files, organize them in projects, inspect previews, and use AI-assisted chat and generated learning materials while retaining approval control. The main flow crosses the Next.js project and upload interfaces into FastAPI endpoints, which delegate persistence and document workflows to backend services; Gemini supports generation and retrieval. The README also documents quizzes and export of approved revisions. The sampled excerpts establish only some service calls, so unsampled UI and backend links are included only where the README documents the capability; other uncertain connections are omitted.
Main entry points: data_service.py Domain data workflows · projects.py Project and chat API · PreviewWorkspace.tsx Preview and chat · MaterialEnhancementWorkspace.tsx Project workspace
Components 21
Instructor interface
- Project workspace
frontend/src/components/material-enhancement/MaterialEnhancementWorkspace.tsx - Course upload
frontend/src/components/course-content-upload/CourseContentUploadClient.tsx - Preview and chat
frontend/src/components/material-enhancement/PreviewWorkspace.tsx - Project dashboard
frontend/src/components/dashboard/DashboardClientPage.tsx
Backend API
- Project and chat API
backend/app/api/projects.py - Upload API
backend/app/api/upload.py - Quiz API
backend/app/api/quiz.py - Account API
backend/app/api/account.py
Processing services
- Domain data workflows
backend/app/services/data_service.py - Document extraction
backend/app/services/parser_service.py - Source previews
backend/app/services/preview_service.py - Material export
backend/app/services/export_service.py - Authentication
backend/app/services/auth_service.py
Persistence and models
- Postgres database
backend/app/services/db.py - Object storage
backend/app/services/storage_service.py - Domain records
backend/app/models
AI capabilities
- Gemini generation
backend/app/services/llm_service.py - Text embeddings
backend/app/services/embedding_service.py
Other components
- Instructor
- Google Gemini
- S3-compatible storage
Connections 25
- Instructor → Project workspace: uses
README.md - Instructor → Course upload: uploads files
README.md - Instructor → Preview and chat: reviews materials
README.md - Project workspace → Project and chat API: manages projects
- Course upload → Upload API: submits files
- Preview and chat → Project and chat API: asks questions
frontend/src/components/material-enhancement/PreviewWorkspace.tsx - Preview and chat → Project and chat API: clears history
frontend/src/components/material-enhancement/PreviewWorkspace.tsx - Project dashboard → Project and chat API: loads projects
- Project and chat API → Domain data workflows: delegates operations
backend/app/api/projects.py - Upload API → Domain data workflows: delegates uploads
backend/app/api/upload.py - Quiz API → Domain data workflows: delegates quiz work
backend/app/api/quiz.py - Account API → Authentication: handles accounts
- Domain data workflows → Postgres database: reads and writes
backend/app/services/data_service.py - Domain data workflows → Object storage: stores files
backend/app/services/data_service.py - Domain data workflows → Document extraction: extracts text
backend/app/services/data_service.py - Domain data workflows → Source previews: renders previews
backend/app/services/data_service.py - Domain data workflows → Text embeddings: indexes text
backend/app/services/data_service.py - Domain data workflows → Gemini generation: requests AI work
backend/app/services/data_service.py - Domain data workflows → Domain records: builds records
backend/app/services/data_service.py - Project and chat API → Material export: exports materials
backend/app/api/projects.py - Authentication → Postgres database: uses transactions
backend/app/services/auth_service.py - Gemini generation → Google Gemini: generates content
backend/app/services/llm_service.py - Text embeddings → Google Gemini: embeds chunks
backend/app/services/embedding_service.py - Object storage → S3-compatible storage: reads and writes objects
backend/app/services/storage_service.py - Instructor → Material export: approves revisions
README.md