AI-Quiz-Generator
Inspiration
Studying from large PDFs and notes can be overwhelming. Students often have plenty of learning material but spend a significant amount of time manually creating practice questions. We wanted to solve this problem by making the process of turning study material into useful quizzes fast, interactive, and accessible.
This idea led us to build AI-Quiz-Generator, a platform that uses generative AI to transform learning material into interactive quizzes and provide learners with meaningful feedback on their performance.
What It Does
AI-Quiz-Generator allows users to provide learning material and automatically generate multiple-choice quizzes from it.
Users can:
- Upload educational PDFs, including large documents.
- Generate AI-powered MCQs from the extracted content.
- Choose different difficulty levels such as Easy, Medium, and Hard.
- Attempt quizzes through an interactive interface.
- View answers and explanations.
- Analyze their performance.
- Identify weak topics that require more practice.
- Share quizzes and compete through a leaderboard.
The goal is not just to generate questions, but to create a more engaging way for students to practice, evaluate, and improve their understanding.
How We Built It
We built the project using a full-stack JavaScript architecture with generative AI integration.
Tech Stack
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- AI: Groq API with LLaMA 3.3-70B
- PDF Processing:
pdf-parse - Deployment: Vercel and backend hosting
The overall workflow is:
User Uploads PDF
↓
PDF Text Extraction
↓
Backend Processing
↓
AI Prompt + Extracted Content
↓
LLaMA 3.3-70B via Groq
↓
Structured MCQs
↓
Interactive React Quiz
↓
Performance Analysis
The backend manages document processing, AI requests, API communication, and database operations, while the React frontend provides the interactive quiz experience.
Challenges We Faced
One of our biggest challenges was processing large PDF documents while keeping the generated questions relevant to the actual learning material.
We had to deal with:
- Extracting meaningful text from PDFs with different structures.
- Handling large amounts of extracted content.
- Designing effective prompts for consistent MCQ generation.
- Ensuring AI-generated questions followed the required format.
- Connecting asynchronous AI responses with the React interface.
- Managing quiz and user data using MongoDB.
- Creating a smooth and responsive quiz experience.
Another important challenge was understanding that an LLM response cannot simply be trusted as-is. We had to think about input processing, prompt design, structured responses, and validation to make the generated quizzes more useful.
What We Learned
This project gave us practical experience in building a real-world application around generative AI.
We learned:
- How to integrate an LLM API into a full-stack application.
- How to process and extract information from PDF documents.
- How prompt engineering affects the quality of AI-generated content.
- How to design REST APIs using Node.js and Express.
- How to work with MongoDB for persistent application data.
- How to connect AI-generated content with a React application.
- How to handle asynchronous API operations.
- How to debug, test, and deploy a complete AI-powered application.
Most importantly, we learned that building a useful AI application is not just about connecting an API to a frontend. The quality of the input, prompt, processing pipeline, validation, and user experience all contribute to the final result.
Accomplishments We're Proud Of
We are proud that AI-Quiz-Generator evolved beyond a simple AI question-generation demo into a complete learning application.
Some of our key accomplishments include:
- Generating quizzes from 50+ page PDFs.
- Integrating LLaMA 3.3-70B through Groq.
- Building a complete frontend-to-backend AI workflow.
- Supporting multiple quiz difficulty levels.
- Adding explanations and performance analysis.
- Implementing weak-topic identification.
- Creating an interactive quiz experience.
- Deploying the application for real-world testing.
What's Next
We want to evolve AI-Quiz-Generator from a quiz-generation tool into a more complete AI-powered personalized learning platform.
Future improvements include:
- YouTube/video-to-quiz generation.
- Adaptive quizzes based on previous performance.
- Personalized study plans.
- More detailed learning analytics.
- AI-powered revision recommendations.
- Support for additional document formats.
- Voice-based quiz interaction.
- Improved AI question validation.
- Teacher/instructor dashboards.
Our long-term vision is to create a learning system that doesn't just generate questions, but understands a learner's performance and continuously adapts the learning experience around their needs.
Built With
- express.js
- groq
- mongodb
- node.js
- react.js
- render
Log in or sign up for Devpost to join the conversation.