[Feature Request]: Sit an uploaded past exam paper as a timed exam with its printed points
Do you need to file a feature request?
- [x] I have searched the existing feature request and this feature request is not already filed.
- [x] I believe this is a legitimate feature request, not just a question or bug.
Feature Request Description
Let learners sit an uploaded past exam paper as a timed exam, with the paper's original tasks and printed points, and get a points-based result afterwards. It builds on what deep_question already has for mimic mode (paper upload/parsing, the question extractor), on the quiz card, the AI quiz judge and the question notebook. No new store, endpoint or viewer is planned.
Proposed design, as three stacked PRs that can be reviewed one at a time:
- Extraction schema. The exam-paper extractor also returns per-task
pointsandsub_questions(label,text,points, printedanswer, type), the paper's stated duration and total points, and puts handwritten additions on a scanned paper intoannotations, which are never used as an answer. Saved question files getschema_version: 2. Mimic mode keeps working on whole tasks (its reference question is the stem plus every part). mode="original"for deep_question. It serves the paper's tasks unchanged, one quiz item per sub-question (with the shared case text it builds on), with the printed points and key. There is no explore/plan/generation model call. Printed keys stay out of the streamed markdown and the chat response.- Timed exam in the quiz card (an
exammode of the existingQuizViewer): a start card with the time limit, a countdown, no feedback until "Submit exam" (auto-submit at the deadline), reload-safe drafts, and a locked result. Exact/numeric matches are final; every other answer, including photo answers, goes to the AI judge with the item's printed points and an "answer key unverified" hint, because keys read from scans can be wrong. The result shows points per task and sub-question; every item lands in the question notebook, so wrong and unanswered items come back for practice. One[Quiz Performance]message carries the points.
It depends on two independent PRs that are useful without it: deterministic numeric answer equivalence (1.250,50 vs 1250.5, 1/8 vs 0,125) and a structured AI-judge verdict for photo answers.
Related Module
Question Generator
Use Case
Students preparing for written exams often rehearse with real past papers, usually as scanned PDFs, under exam conditions: the original tasks, a fixed time, points per sub-task, no hints until the end. Today DeepTutor can only generate new questions in the style of an uploaded paper (mimic mode). It cannot serve the original tasks or their point scheme, has no timer, and grades each answer immediately. Typical papers have multi-part case tasks (a shared case text, then parts a, b, c that build on each other's figures), numeric answers with local notation, true/false statements that need a justification, and handwritten working, which the learner may want to answer with a photo, especially on a phone.
Additional Context
- Related earlier requests: #4 (an exam-simulation tool built from past papers, closed) and #714 (a spec for an "Original Paper" test, closed by its author as filed in the wrong repository). This proposal is independent of both and reuses the existing quiz, judge and notebook infrastructure.
- Known limits of the first version: keys extracted from scans are unverified (only mismatches are re-checked by the judge); scanned papers need an OCR-capable parser such as MinerU; a photo picked during a running exam is uploaded only with the submission (it is kept on the device in IndexedDB until then); points are only shown when the paper prints them.
- Size (added lines, without tests, locales and generated contracts): about 0.4k (schema), 0.4k (original mode) and 2.6k (timed exam; most of it the exam state machine and its reload/photo safety). Each PR has its own tests and passes the repo checks on its own.
- Draft PRs are ready; I would open them after feedback on the design here.