An AI-Powered Automated Grading & Educational Management Platform
Checkmate is a comprehensive educational platform designed to revolutionize the grading process and streamline classroom management. By leveraging Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG), Checkmate automates the extraction of questions from exam papers, generates rubrics, maps unstructured student answers to structured schemas (QA-Pairing), and intelligently grades subjective submissions based on teacher-provided reference materials.
Perform AI Grading
|
AI Grading Results
|
- Intelligent QA-Pairing: Automatically extracts questions from uploaded PDFs/images and maps handwritten/typed student answers precisely to the corresponding sub-questions.
- AI-Driven Grading Engine: Evaluates student answers using RAG, comparing them against generated rubrics and teacher reference materials (PPTs, PDFs) to provide accurate, constructive feedback and scores.
- Automated Rubric Generation: Dynamically creates cell-by-cell grading matrices based on total marks, subject context, and custom strictness levels.
- Plagiarism Detection: Scans student submissions for academic dishonesty using local AI models.
- Comprehensive LMS Portal: Full Learning Management System capabilities including Course Management, Announcements, Attendance Tracking, Comments, and Detailed Assessment Analytics.
- Role-Based Access Control: Secure, dedicated portals for Students, Teachers, and Administrators.
- Cross-Platform Availability: Accessible via a modern React Web Portal and a dedicated React Native Mobile Application.
Frontend & Mobile
- Web App: React, Vite, Tailwind CSS (Modern, premium dynamic UI)
- Mobile App: React Native / Expo (
checkmate-app)
Backend Core
- Server: Node.js, Express.js
- Database: PostgreSQL
- ORM: Prisma
- Storage: Supabase Storage (Secure file management for attachments/materials)
- Testing: Jest, Supertest
AI & Python Microservices
- Environment: Python 3.11+
- Machine Learning: PyTorch, Torchvision, FAISS (Vector Database), SentenceTransformers
- LLM Integrations: Local LLM Server (Ollama /
gemma3), Groq API, Gemini API - Document Processing: OCR Engines, PyPDF
Checkmate's automated grading pipeline works in 4 distinct phases:
- Extraction Phase: Teacher uploads an exam PDF. The system uses OCR and LLMs to extract structured questions, subparts, and assigned points, organizing them into a strict nested JSON hierarchy.
- Rubric Generation: Calculates dynamic mark ranges for "leaf" questions and batches LLM requests to generate cell-by-cell grading criteria.
- QA-Pairing Phase: When a student submits their assignment, the OCR extracts all text. The LLM intelligently maps the unstructured student text strictly to the original question JSON skeleton without mutating the schema.
- AI Evaluation Phase: Reference materials are chunked and embedded into a FAISS vector database. For each paired answer, the system retrieves relevant context (RAG) and the AI evaluates the response against the rubric, applying custom strictness multipliers to bound the final score.
- Node.js (v18+)
- Python (Specifically 3.11 for AI microservices)
- PostgreSQL Database
- Supabase Account (for Object Storage)
cd frontend
npm install
npm run dev
# The web app runs on http://localhost:5173Create a .env file in the backend directory with your PostgreSQL database URL, JWT secret, and Supabase credentials.
cd backend
npm install
npm run dev
# The backend API runs on http://localhost:5000You can start the Python services using the provided batch script:
.\start_python_services.batOr run them manually:
QA-Pairing Service (Port 5002) Note: Requires Python 3.11
cd services/qa-pairing
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121 --force-reinstall
python app.pyLLM Service (Port 5003)
Ensure you have a .env file configured with LLM_PROVIDER, LLM_MODEL (e.g., gemma3), and API keys if applicable. If using Ollama, ensure it is running (ollama run gemma3).
cd services/llm
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
python app.pyPlagiarism Detection Service
cd services/plagiarism-detection
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
python app.pyThe backend integrates a robust testing environment running isolated tests on a Dockerized PostgreSQL instance. The suite guarantees high reliability across:
- Authentication & Role Verification (Admin, Student, Teacher)
- Course & Enrollment Logic
- Announcement & Comment Workflows
- Assessment Submission & Grading Pipelines
- Reference Material Uploads (Supabase interactions)
Developed as a comprehensive Final Year Project (FYP). Checkmate is designed to push the boundaries of automated educational tools, blending modern web technologies with advanced, locally hosted AI microservices.









