AI quiz generator from notes
Paste class notes and get a multiple-choice quiz with explanations, then take it in the browser.
Intermediateâą 8â12 hoursđĒ 7 stepsNext.js or FlaskLLM API
What you'll learn
- âPrompting for reliable, checkable output
- âValidating AI output before showing it
- âBuilding a small full-stack app
What you'll build
- âPaste notes or upload a text file
- âChoose number of questions and difficulty
- âQuiz with instant feedback
- âExport to CSV
Step-by-step guide
- 1
Input
A text area with a length limit (for example 6,000 words); show the word count.
- 2
Prompt
Ask for N questions, 4 options each, exactly one correct, an explanation quoting the notes, as JSON.
- 3
Validate
Check every question has 4 unique options and a valid answer index; drop or regenerate bad ones.
- 4
Quiz UI
One question at a time, show explanation after answering, final score.
- 5
Grounding check
Ask the model (or a second call) to confirm each answer is supported by the notes; flag unsupported ones.
- 6
Save
Download as CSV or JSON to reuse.
- 7
Costs
Show estimated tokens before generating; set a max per request.
đ Make it stand out
- +Hindi output
- +Spaced repetition of wrong answers
- +Share a quiz link with friends