Study Notes AI Agent is an AI-powered Streamlit app that summarizes PDF study notes and generates exam-style quizzes.
The app allows a student to upload a PDF, extract study content, generate a clean summary, and create quiz questions from the same material. It was built to practice AI-assisted education workflows, PDF processing, prompt-based generation, and Streamlit app development.
This project focuses on helping students convert long study notes into useful revision material.
The workflow is simple:
- Upload a PDF file.
- Extract text from the PDF.
- Generate a structured summary.
- Generate an exam-style quiz from the extracted content.
The project uses Python, Streamlit, PDF text extraction, and OpenRouter/Gemini model access for AI-powered generation.
The goal of this project was to explore how AI can assist students by transforming study material into structured summaries and exam-style revision content.
The project combines PDF processing, prompt engineering, AI model integration, and educational workflow design into a simple student-focused application.
- Upload PDF study material
- Extract readable text from PDF files
- Use the extracted text as the source for summary and quiz generation
- Generates clean study summaries
- Organizes content into readable sections
- Helps students revise long notes faster
- Generates exam-style questions from the PDF content
- Includes multiple-choice questions
- Includes short questions
- Uses the original study material as context
- Simple web app interface
- PDF upload support
- Summary output section
- Quiz output section
- Python
- Streamlit
- OpenRouter API
- Gemini-compatible model access
- PyPDF
- OpenAI-compatible client
- python-dotenv
The project uses:
google/gemini-2.0-flash-001through OpenRouter.
study-notes-ai-agent/
├── app.py
├── agent.py
├── ai_utils.py
├── pdf_utils.py
├── check_key.py
├── requirements.txt
├── Screenshots/
└── README.mdClone the repository:
git clone https://github.com/Shoaibstat876/study-notes-ai-agent.gitGo to the project folder:
cd study-notes-ai-agentCreate a virtual environment:
python -m venv .venvActivate the virtual environment on Windows:
.\.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtCreate a .env file in the project root:
OPENROUTER_API_KEY=your_openrouter_api_key_here
AI_PROVIDER=openrouterStart the Streamlit app:
streamlit run app.pyThen open the local URL shown in the terminal.
API keys are loaded from environment variables.
The .env file is not included in this repository and should never be committed to GitHub.
Before making this repository public, make sure screenshots, logs, and documentation do not expose API keys or private environment variables.
- Python app structure
- Streamlit app development
- PDF text extraction
- AI API integration
- Prompt-based summarization
- Quiz generation workflow
- Environment variable handling
- Educational AI tool design
This is a functional AI study assistant prototype.
It can extract text from PDFs, generate study summaries, and create quiz-style questions. It is not a production learning management system yet.
- Add support for larger PDFs
- Add better PDF text cleaning
- Add quiz difficulty levels
- Add downloadable summary and quiz files
- Add answer key generation
- Add user authentication
- Add saved study sessions
- Add export to PDF or DOCX
- Add deployment documentation
- Add automated tests for utility functions
Muhammad Shoaib Abdul Shakoor
Focused on AI automation, full-stack development, backend APIs, frontend interfaces, and practical AI-native applications.