How mantis2404/gradeops works
GradeOps turns instructor-uploaded exam PDFs and rubrics into AI-proposed grades, then routes each student through mandatory TA review before producing a gradebook and class statistics. The primary path spans the browser upload and review experience, FastAPI pipeline endpoints, a checkpointed LangGraph agent workflow, and persistence. The README documents additional course, rubric, user, reporting, and role-based capabilities; their UI modules are represented, though unsampled implementation details and some connections are not asserted.
Main entry points: graph.py Workflow orchestration · pipeline.py Pipeline endpoints · finalize.py Gradebook finalization · ta-review.js TA review
Components 31
Browser application
- Exam upload
js/pages/upload.js - TA review
js/pages/ta-review.js - Reports
js/pages/reports.js - Course and rubric management
js/pages/courses.js - User management
js/pages/users.js - Role-based navigation
js/router.js - Pipeline API client
js/api/pipeline.js - Review API client
js/api/reviews.js - Authentication client
js/api/auth.js
API and access
- Pipeline endpoints
pipeline/server/routes/pipeline.py - Review endpoints
pipeline/server/routes/review.py - Authentication endpoints
pipeline/server/routes/auth.py - Metadata endpoints
pipeline/server/routes/metadata.py - Live updates
pipeline/server/ws.py
Grading workflow
- Workflow orchestration
pipeline/graph.py - PDF ingestion and segmentation
pipeline/agents/ingestion.py - Handwriting transcription
pipeline/agents/ocr.py - Rubric grading
pipeline/agents/grading.py - Human review gate
pipeline/agents/review.py - Gradebook finalization
pipeline/agents/finalize.py - PDF splitting
pipeline/tools/pdf_splitter.py - Answer similarity
pipeline/tools/similarity.py
Persistence and models
- Rubric and grade schemas
pipeline/schemas/outputs.py - Exam workflow state
pipeline/state.py - MongoDB client
pipeline/server/db.py - Exam file storage
pipeline/tools/storage.py - Runtime settings
pipeline/config.py
Other components
- Instructors
- Teaching assistants
- Vision and reasoning models
- CSV and JSON gradebook
Connections 36
- Instructors → Exam upload: uploads exams
README.md - Teaching assistants → TA review: reviews grades
README.md - Instructors → Course and rubric management: manages courses
README.md - Instructors → Reports: views analytics
README.md - Exam upload → Pipeline API client: starts grading
js/pages/upload.js - TA review → Pipeline API client: polls status
js/pages/ta-review.js - TA review → Review API client: submits decisions
js/pages/ta-review.js - Role-based navigation → TA review: routes to
js/router.js - Role-based navigation → Authentication client: checks session
js/router.js - Pipeline API client → Pipeline endpoints: calls pipeline
js/api/pipeline.js - Review API client → Review endpoints: calls review
- Authentication client → Authentication endpoints: calls auth
js/api/auth.js - Pipeline endpoints → Workflow orchestration: starts and resumes
pipeline/server/routes/pipeline.py - Pipeline endpoints → MongoDB client: reads exam state
pipeline/server/routes/pipeline.py - Review endpoints → Workflow orchestration: resumes review
pipeline/server/routes/review.py - Metadata endpoints → Workflow orchestration: reads workflow state
pipeline/server/routes/metadata.py - Workflow orchestration → PDF ingestion and segmentation: runs first
pipeline/graph.py - Workflow orchestration → Handwriting transcription: runs next
pipeline/graph.py - Workflow orchestration → Rubric grading: runs next
pipeline/graph.py - Workflow orchestration → Human review gate: pauses for review
pipeline/graph.py - Workflow orchestration → Gradebook finalization: finalizes after review
pipeline/graph.py - Workflow orchestration → MongoDB client: creates checkpointer
pipeline/graph.py - PDF ingestion and segmentation → PDF splitting: splits PDF
pipeline/agents/ingestion.py - PDF ingestion and segmentation → Exam file storage: stores exam files
pipeline/agents/ingestion.py - Handwriting transcription → Exam file storage: reads page images
pipeline/agents/ocr.py - Rubric grading → Answer similarity: checks similarity
pipeline/agents/grading.py - Rubric grading → Vision and reasoning models: evaluates answers
README.md - Handwriting transcription → Vision and reasoning models: transcribes writing
README.md - Gradebook finalization → MongoDB client: persists results
pipeline/agents/finalize.py - Gradebook finalization → Live updates: broadcasts updates
pipeline/agents/finalize.py - Pipeline endpoints → Exam file storage: stores upload
pipeline/server/routes/pipeline.py - Workflow orchestration → Exam workflow state: uses shared state
pipeline/graph.py - Exam workflow state → Rubric and grade schemas: types grade data
pipeline/state.py - Gradebook finalization → CSV and JSON gradebook: produces gradebook
README.md - Pipeline endpoints → CSV and JSON gradebook: exports CSV and JSON
pipeline/server/routes/pipeline.py - Runtime settings → Workflow orchestration: configures persistence
pipeline/graph.py