Document Quiz: an instructor can now build one alone

A Document Quiz is a quiz made from a question PDF and an answer sheet. This page shows each step an instructor takes, from adding the lesson to saving 14 answers, after the fixes from the 3 December review.

SP-982 · 4 Dec 2026

Status as of 4 Dec 2026

Stage
In review. One PR is open. Nothing is merged, nothing is on beta, nothing is in a production tag.
PR
#838 holds all the changes on this page. On 4 Dec all required checks pass on the latest commit: backend lint and tests, frontend lint, tests and build, and the migration check. The database tests and the automated review pass too. The PR is not merged yet.
Ticket
SP-982, In Progress.
Screenshots
All screenshots come from a local stack with mock data. The course, the test paper and the answer key are made up. There is no video.
AI step
The answer draft in the screenshots came from a real AI call on the mock files. It was not typed in by hand.

Why this exists

On 3 December the team walked through the first version of Document Quiz. The feature worked, but an instructor could not finish it without someone explaining the screen. The way to start a Document Quiz was a switch inside the normal quiz form. The file buttons did not look like buttons. The PDF showed one page at a time. The answer rows gave little help when the AI was unsure. A writing task on the paper became a row that could never be saved.

SP-982 fixes those points. The goal is simple. An instructor creates, fills in and saves a Document Quiz without help.

What changed, in one picture

Start

Its own entry

"Document quiz" is a choice in the Add lesson menu, with its own icon in the lesson list.

Files

Two clear steps

Real buttons for the question PDF and the answer file. The paper scrolls through every page.

Check

A draft you can check

The screen counts the rows that need attention and jumps to the next one.

Save

Safe edits

The screen asks before it replaces or removes answers. A removed row has Undo.

The steps, one by one

The example is a grade 8 English test with 15 questions on 3 pages. The answer key has 13 answers. It leaves out question 12 on purpose, and question 15 is a writing task with no fixed answer.

  1. Add a Document quiz

    Open the course, then Content. Click Add lesson under the chapter and choose Document quiz. Before this change you had to choose Quiz and then find a switch in the form.

    Course content page with the Add lesson menu open. Document quiz is listed under Quiz.
    The chapter "Unit 5: Festivals" has 2 lessons. The menu lists Document quiz as its own entry, under Quiz.
    Close-up of the Add lesson menu in English with 11 entries.
    The menu in English.
    Close-up of the Add lesson menu in Vietnamese. The entry reads Quiz tài liệu.
    The same menu in Vietnamese. The name "Quiz tài liệu" is still open for a decision.
  2. Give it a title and save

    The form says what a Document Quiz is and what comes next. Type a title and click Save. The files come after the first save.

    New document quiz form with the title Unit 5 test typed in.
    The heading reads "New document quiz". The line under Basics explains the two files. The title is "Unit 5 test".
    Saved quiz page. Type is Document quiz and Questions is 0.
    After Save the header shows Type "Document quiz" and Questions 0. The Edit questions button is now on the page.
    Lesson list with three icons for a reading, a quiz and a document quiz.
    In the lesson list a Document Quiz has a page icon. A normal quiz keeps the round icon.
  3. Upload the question PDF

    Click Edit questions. The page has two numbered steps. Step 1 takes the question PDF. Step 2 stays locked until the PDF is in.

    Empty answer editor with two steps. Choose answer file is greyed out.
    Both file buttons now look like buttons. Each shows "No file chosen" beside it. Choose answer file is grey until step 1 is done.
    Editor after the question PDF upload. The viewer shows page 1 of 3.
    The file name sits beside the button. The paper opens below at "Page 1 of 3". Choose answer file is now active.
  4. Read the paper by scrolling

    Scroll inside the paper to move through all pages. The page counter follows you. The Previous page and Next page buttons still work, and so do zoom and Fullscreen.

    PDF viewer scrolled to page 2. The counter reads Page 2 of 3.
    After scrolling, the counter reads "Page 2 of 3". The end of page 1 is still visible above page 2, so the pages form one long sheet.
  5. Upload the answer file and wait

    Choose the answer file in step 2. The AI reads both files and builds a draft. In one capture run this took under 50 seconds. Another run took a little longer. You can leave the page while it works.

    Editor while the AI extracts answers. A spinner reads Extracting answers.
    Step 2 shows "Extracting answers..." and tells you that the work continues if you leave.
  6. Check the draft

    The draft has one row per question. A coloured bar at the top counts the rows that need your attention. Save is blocked until that count is zero.

    Answer draft beside the paper. Ten rows on answer page 1 and a bar that reads 1 question needs attention.
    The draft has 14 rows on 2 answer pages. Page 1 holds questions 1 to 10 with their answers marked. The bar reads "1 question needs attention". The line beside Save reads "Fix 1 question before you save." Click to open full size.
    Bar with the count of questions that need attention and two buttons.
    The bar gives two ways out. Go to the question and fix it, or remove every row that has no answer.
  7. Go to the question that needs attention

    Click "Go to next question to check". The screen moves to the right answer page and opens the row. A blue ring holds the row and its panel together, and the button on the row now reads Close.

    Question 12 open inside a blue ring, with two red messages and a Mark as checked button.
    Question 12 has no answer because the key left it out. The red lines say what is wrong. The panel heading repeats "Question 12", so you always know which row you are editing. Click to open full size.

    Type the answer in Accepted answers. If the AI flagged a row that is in fact correct, click "Mark as checked". If the row should not exist, remove it. The bar offers one button that removes all rows without an answer, and it asks first.

    Dialog that asks to remove rows without an answer and names row 12.
    The dialog names the row it will remove. Here that is row 12. In this demo we clicked Cancel and typed the answer.
  8. Remove a row, with Undo

    Open a row and click "Remove question". The row goes at once and a message offers Undo. Before this change a removed row could not be brought back.

    Answer page 2 after question 14 was removed. A message at the bottom left offers Undo.
    Question 14 is gone from answer page 2. The message at the bottom left reads "Question 14 removed" with an Undo button. In the demo this removal was not kept.
  9. Replace the answer file, if you need to

    A new answer file starts a new AI draft, and that draft replaces your edits. So the screen asks first when you have unsaved edits. The Try again button after a failed upload asks the same question.

    Dialog that asks whether to replace the answer draft.
    "Replace the answer draft?" Cancel keeps your edits and uploads nothing.
  10. Save the answers

    When no row needs attention, click Save answers. Then go back to the quiz settings to set the schedule and the pass score.

    Answer page 2 after saving, with questions 11 to 14 and their answers.
    Answer page 2 after the save. Question 12 now has "November". The attention bar is gone and Save answers is grey because nothing is left to save. Click to open full size.
    Quiz settings page. Questions is 14.
    The quiz settings now show Questions 14 and "Includes 14 questions".

Reading the answer screen

What you seeWhat it meansIn this demo
Orange bar with a countThe number of rows the AI was unsure about, or that have no answer.1 question
Dot on an answer page buttonThat answer page holds a row that needs attention.Page 2
Edit and Close on a rowEdit opens the full panel for that row. Close shuts it. Your edits stay.Question 12
Blue ringThe row and the panel inside the ring belong together.Question 12
Mark as checkedYou looked at a row the AI flagged and its answer is right. The flag goes away and the answer stays.Not used
Red line beside SaveSave will not run until these rows are fixed. Click Save and the first one opens.Fix 1 question
Grey question PDF button with a noteYou have unsaved answers. Save them before you replace the question PDF.Shown after the draft loads

Why it can be trusted

Checked by hand. We compared the 14 draft rows with the answer key file. Questions 1 to 6 read B, A, C, C, B, D. Questions 7 to 10 read False, True, False, True. Questions 11, 13 and 14 read money, lanterns, and lights or light. Each one is what the key says.

Known limits

Decisions taken

DecisionChoice
Where does a Document Quiz start?Its own entry in the Add lesson menu. The switch inside the quiz form is removed.
Is it a new kind of lesson in the data?No. It is still a quiz with a document attached. Old quizzes and reports keep working.
How does the instructor read a long paper?One scrolling sheet. The screen draws only the pages near the view. In a test with a 120 page file it kept at most 4 pages drawn at a time.
What happens to questions with no fixed answer?They are left out of the draft. The instructor can still add a row by hand.
Who can use the feature?Unchanged. A platform admin turns Document quizzes on for each tenant.
Vietnamese name"Quiz tài liệu" for now. Not final.

Rollout checklist

  1. Review and merge PR #838. Merging to main deploys beta.
  2. No database migration and no new setting. The tenant setting "Document quizzes" stays as it is.
  3. Beta walkthrough. Repeat the ten steps above with the two real files from the review. Check that open-ended items are left out and that every flagged row makes sense.
  4. Decide the three open points. The page number per answer row, the Vietnamese name, and the Published default for new quizzes.
  5. Move SP-982 to Testing after beta, and to Done once it is in a production tag.