AI-powered quiz generation platform that helps students learn from their coursebooks through interactive quizzes, intelligent chat assistance, and curated video recommendations.
🚀 Live Demo: https://beyond-quiz.vercel.app/
- Upload PDF coursebooks or select from pre-loaded NCERT textbooks
- AI generates three question types: MCQs, Short Answer, and Long Answer questions
- Intelligent scoring with detailed feedback and explanations
- Progress tracking dashboard with performance analytics
- ChatGPT-style interface for document-based Q&A
- Context-aware responses based on uploaded materials
- Persistent chat history across sessions
- Multiple concurrent chat sessions
- AI-curated educational YouTube videos based on document content
- Topic-specific recommendations for enhanced learning
- Comprehensive dashboard showing quiz attempts and scores
- Performance trends and improvement metrics
- Detailed attempt history with feedback summaries
Backend: Flask, PyMongo, Google Gemini 2.5 Flash, PyPDF2
Frontend: HTML5, CSS3, JavaScript, PDF.js
Database: MongoDB Atlas
Deployment: Vercel
- Python 3.9+
- MongoDB Atlas account
- Google Gemini API key
- Clone the repository:
git clone [your-repo-url]
cd beyondquiz- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
Create a
.envfile:
MONGO_URI="mongodb+srv://username:password@cluster.mongodb.net/dbname"
GEMINI_API_KEY="your_gemini_api_key"- Run the application:
python app.py- Open
http://127.0.0.1:5000in your browser
Deploy to Vercel:
vercelConfigure environment variables in Vercel Dashboard:
MONGO_URIGEMINI_API_KEY
beyondquiz/
├── app.py # Flask backend with API endpoints
├── requirements.txt # Python dependencies
├── vercel.json # Vercel configuration
├── templates/
│ └── index.html # Main application template
└── static/
├── style.css # Application styles
├── chat-style.css # Chat interface styles
├── script.js # Application logic
└── chat-script.js # Chat logic
POST /api/upload- Upload PDF coursebookGET /api/pdfs- List all uploaded PDFsPOST /api/generate-quiz- Generate quiz from PDFPOST /api/score-quiz- Score quiz submissionPOST /api/chat- Chat with AI teacherPOST /api/recommend-videos- Get video recommendationsGET /api/progress- Retrieve quiz history
- PDF visual preview not persistent after refresh (serverless constraint)
- No user authentication (global progress tracking)
- Gemini API rate limits on free tier (handled with retry logic)
- Large PDFs (500+ pages) may experience longer processing times
- User authentication and personalized progress
- Cloud storage for persistent PDF previews
- Vector embeddings for semantic search
- Export progress reports
- Spaced repetition scheduling
- Mobile application
Apache License 2.0