An AI-powered web application that converts PDF documents into interactive quizzes using AI.
PDF to Quiz allows users to upload PDF documents, automatically extract questions and answers, generate missing answers using Groq AI, review the extracted content, and create timed quizzes.
The project is designed using a modular architecture so that every component can be reused in future AI-powered applications.
- Upload PDF documents
- Extract text from PDFs
- Detect multiple-choice questions
- Extract existing answers
- Generate missing answers using Groq AI
- Generate explanations for answers
- Classify questions by topic
- Classify difficulty level
- Review extracted questions in a table
- Edit questions before creating quizzes
- Create timed quizzes
- View detailed quiz results
- Export questions to CSV, Excel, and JSON
- React
- Vite
- Tailwind CSS
- Axios
- React Router
- Python
- FastAPI
- PyMuPDF
- pdfplumber
- Groq API
- MongoDB
pdf-to-quiz/
│
├── frontend/
├── backend/
└── README.md
- Backend Setup
- File Upload
- PDF Text Extraction
- Question Extraction
- Option Extraction
- Answer Extraction
- Groq AI Integration
- Explanation Generation
- Topic Classification
- Difficulty Classification
- MongoDB Integration
- Review Question Table
- Quiz Engine
- Timer
- Results Page
- Export to CSV
- Export to Excel
- Export to JSON
Upload PDF
↓
Extract Text
↓
Extract Questions
↓
Extract Answers
↓
Generate Missing Answers (Groq AI)
↓
Store in MongoDB
↓
Review Questions
↓
Generate Quiz
↓
Attempt Quiz
↓
Results & Analytics
↓
Export Data
- Build a reusable PDF processing engine.
- Create a modular AI-powered quiz generator.
- Follow clean architecture principles.
- Keep backend and frontend completely independent.
- Make every module reusable in future projects.
🚧 Project under active development.