An interactive Streamlit app powered by LangChain and Groq LLMs that helps students learn faster by turning PDF study material into:
- Q&A (Question–Answer pairs)
- MCQs (Multiple-Choice Questions)
- Flashcards
- Summaries
Upload your PDF, select a mode, and generate high-quality study content instantly.
-
📂 Upload PDFs and automatically split them into manageable chunks.
-
🤖 LLM-powered generation using Groq’s
llama-3.3-70b-versatilemodel. -
📝 Modes Available:
- Q&A pairs
- MCQs with answers
- Flashcards (concise one-line answers)
- Summaries
-
🎚️ Difficulty Levels: Easy, Medium, Hard
-
⏱️ Fast & Accurate generation with duplicate removal and consolidation.
For this project, you need a Groq API key.
- Sign up at Groq and get your API key.
- Create a
.envfile in the root folder and add:
echo "GROQ_API_KEY=your_api_key_here" > .envgit clone https://github.com/fns12/quizify-ai.git
cd quizify-aipython -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windows
pip install -r requirements.txtstreamlit run main.pyYou can try the deployed app here: Live Demo
When running the demo, you need to provide your GROQ API Key:
-
Go to manage app,click the three dots (⋮) → Settings → Secrets.
-
Add your key in the following format:
GROQ_API_KEY="your_api_key_here" -
Save and restart the app.
- Upload a PDF file.
- Choose a mode (QNA, MCQs, Flashcards, or Summary).
- Select difficulty and number of questions.
- Click Generate 🚀.
- View and copy results directly.
quizify-ai/
│── main.py # Main Streamlit app
│── requirements.txt # Python dependencies
│── .env.example # Example env file (ignored in git)
│── README.md # Project documentation
Add screenshots here of the interface and output.
Q.1: What is machine learning?
A: Machine learning is a field of AI focused on training algorithms to learn patterns from data.
Q.2: Define supervised learning.
A: Supervised learning is a type of ML where models are trained on labeled data.
1. Which of the following is a supervised algorithm?
A) K-Means
B) Linear Regression ✅
C) PCA
D) Autoencoder
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
MIT License