AI Quiz Maker – Panda Hacks 2025 Submission

Inspiration

During my medical studies, I constantly struggled to retain dense material. I had pages of notes, but testing myself was slow and tedious. The traditional way of creating quizzes took too much time.

With generative AI on the rise, I realized I could instantly transform my notes into interactive quizzes. This would turn passive reading into active recall, a scientifically proven method to boost long-term memory retention.


How I Built It

  • Framework: Streamlit for an intuitive, web-based interface.
  • AI Engine: Powered by OpenAI’s GPT models for question generation.
  • PDF Export: Using FPDF so users can download and print their quizzes.
  • UI Features:
    • Minimalist design with navigation (Home, Quiz Generator, About)
    • Motivational quotes to keep learners engaged
    • One-click quiz generation and export

Basic Workflow:

  1. User pastes their topic or notes.
  2. AI generates 5 multiple-choice questions with 4 options each.
  3. Answers are stored and the quiz can be exported as PDF.

What I Learned

  • Prompt Engineering: Getting consistent, high-quality output from LLMs.
  • User-Centered Design: Creating tools for people who aren’t technical.
  • API Integration: Connecting Streamlit with AI

Challenges Faced

  1. Quota Limits: Navigating free-tier restrictions without breaking the user flow.
  2. Response Consistency: Ensuring AI output stayed in clean multiple-choice format.
  3. Error Handling: Dealing with API failures gracefully.
  4. UI Flow: Making navigation simple yet functional in a short timeframe.

🚀 Future Plans

  • Free, Local AI Models: Remove API cost barriers by integrating open-source LLMs.
  • Adaptive Quizzes: Difficulty adjusts based on the user’s answers.
  • Topic Recommendations: Suggests new quizzes based on knowledge gaps.

Built With

Share this project:

Updates