How ayushdevadiga1/lecture-comprehension-gap-detector works
LecGap turns lecture recordings into a course prerequisite graph, then uses that graph for student remediation and instructor analytics. The main flow runs from faculty upload through transcription, passage/concept extraction, prerequisite inference and graph persistence; students then take quizzes and receive remediation ordered by prerequisites. The README documents clip generation, ongoing graph refinement, and faculty analytics as additional capabilities. Some feature links rely on README statements because their implementation files were not excerpted.
Main entry points: jobs Lecture jobs · db.py Course data · quizzes.py Quiz and remediation · passages.py Lecture structure
Components 20
User applications
- Faculty dashboard
frontend/faculty_app.py - Student app
frontend/student_app.py - Course panels
frontend/panels - API client
frontend/client.py
API and jobs
- API routes
backend/api/routes - Lecture jobs
backend/api/jobs - Job tracking
backend/api/job_registry.py - Quiz and remediation
backend/api/routes/quizzes.py - Class analytics
backend/api/routes/quizzes.py
Learning pipeline
- Audio transcription
backend/pipeline/transcribe.py - Lecture structure
backend/pipeline/passages.py - Concept clips
backend/pipeline/segment_clips.py - Prerequisite classifier
backend/pipeline/classify_prerequisites.py - Graph construction
backend/pipeline/build_graph.py - Remediation ordering
backend/pipeline/quiz.py - LLM gateway
backend/pipeline/llm.py
Persistence and refinement
- Graph refinement
experiments/refine.py - Course data
backend/models/db.py
Other components
- Student
- Faculty
Connections 23
- Faculty → Faculty dashboard: uses
- Student → Student app: uses
- Faculty dashboard → Course panels: renders
- Student app → Course panels: renders
- Course panels → API client: requests data
frontend/panels/ingest.py - API client → API routes: calls API
- API routes → Lecture jobs: starts jobs
backend/api/routes/courses.py - Lecture jobs → Job tracking: tracks progress
backend/api/jobs/progress.py - Lecture jobs → Audio transcription: transcribes
backend/api/jobs/extract.py - Lecture jobs → Lecture structure: extracts structure
backend/api/jobs/extract.py - Lecture jobs → Concept clips: cuts clips
- Lecture jobs → Graph construction: builds graph
backend/api/jobs/graph.py - Graph construction → Prerequisite classifier: classifies gaps
backend/api/jobs/graph.py - Lecture structure → LLM gateway: requests extraction
backend/pipeline/passages.py - Audio transcription → Course data: stores transcript
- Lecture structure → Course data: stores passages
- Graph construction → Course data: persists graph
backend/api/jobs/graph.py - Quiz and remediation → LLM gateway: generates questions
backend/api/routes/quizzes.py - Quiz and remediation → Course data: reads responses
backend/api/routes/quizzes.py - Quiz and remediation → Remediation ordering: orders remediation
backend/api/routes/quizzes.py - Quiz and remediation → Class analytics: serves course stats
backend/api/routes/quizzes.py - Graph refinement → Course data: updates graph
- Graph refinement → LLM gateway: creates personas
experiments/refine.py