Feat/remediation - #391
Open
02Tirtha wants to merge 5 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: Remediation Sheet Generation Feature
Overview
The Remediation Feature is a powerful AI-driven, personalized practice generation system. It automatically creates targeted practice questions for students based on their incorrect answers in assessments. Operating as an asynchronous background service triggered post-evaluation, it generates 5 customized practice variants per failed question, providing concept-matched and human-readable content to help students master the topics they struggle with.
Highlights
Architecture
The system employs a modular architecture bridging Python and Node.js ecosystems:
Workflow
RemediationService.startGeneration()is called. ARemediationLedgeris created in MongoDB with apendingstatus, returning immediately to the caller.GenerativeEngine.completedand the practice questions are available for the student.Generation Engine (Smart Router)
The
GenerativeEngineacts as a smart router, classifying the original question and dispatching it to one of three specialized engines:Major Components
RemediationService: The main orchestrator handling the async Phase A/B pipeline.GenerativeEngine: The smart 3-engine classification and routing layer.BlueprintEngine: A deterministic concept-based generator providing zero-AI dependency fallbacks.Concept Dictionary: A JSON-based mapping of 200+ keywords to concepts for auto-detection.RemediationLedger,ExamBlueprint): The data layer tracking generation status and blueprint metadata.RemediationNotesView: The React frontend component that renders the generated practice variants.Benefits
Real Implementation of the Remediation Sheet
/api/students/:id/level-worksheet/submitand/api/students/:id/diagnostic/submitRemediationLedgercontaining the original failed question, the student's incorrect answer, and the 5 generated practice variants (with answers and hints)./remediation-note/:studentId/:examId. TheRemediationNotesViewfetches the ledger and displays: