Skip to content

AI-powered study assistant for personalized learning, note summarization, and quiz generation using Streamlit and Gemini API.

GPA95/AI_StudyBuddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📘 Study Buddy — AI-Powered Study Assistant

Streamlit Gemini API Python IBM SkillsBuild Status Version


🧠 Project Overview

Students often struggle to grasp difficult topics or summarize lengthy notes.
Study Buddy is an AI-powered web app that acts as a personal academic assistant, capable of:

  • 🧩 Explaining complex concepts in simple terms
  • 📄 Summarizing notes or uploaded PDFs
  • ❓ Generating quizzes or flashcards for quick revision

It combines Streamlit for UI and Gemini 2.5 Flash API for fast, intelligent AI responses — all in a clean chat-based interface.

🔗 Check out the live app here! 🏎️


⚙️ System Design

🏗️ Architecture

A lightweight Streamlit frontend interacts with Google’s Gemini 2.5 Flash backend through secure API calls.
All secrets are managed safely via .env and st.secrets.

🧩 Core Features

Mode Function Example
🧠 Explainer Simplifies academic concepts “Explain Deadlock in OS”
📄 Summarizer Condenses notes or PDFs Upload 20-page PDF → short summary
Quizzer Generates MCQs & flashcards “Create 10 questions on DBMS”

Additional:

  • 📂 PDF upload (text extraction via PyPDF2)
  • 💬 Real-time chat interface
  • 🔄 New chat reset option
  • ☁️ Deployed on Streamlit Cloud

🧱 Project Structure

StudyBuddy/
├── main.py
├── requirements.txt
├── assets/
│ └── PROBLEM STATEMENTS.pdf
├── components/
│ ├── chat_ui.py
│ ├── pdf_handler.py
│ └── sidebar.py
├── core/
│ ├── ai_utils.py
│ ├── explainer.py
│ ├── pdf_handler.py
│ ├── quizzer.py
│ └── summarizer.py
└── utils/
└── gemini_helper.py

🪜 Workflow

StudyBuddy Workflow ©️🖼️ Diagram Credits: https://gitdiagram.com/

💡 Tech Stack

Category Technologies
Frontend Streamlit
Backend / AI Engine Google Gemini 2.5 Flash API
Language Python
Libraries PyPDF2, google-generativeai, streamlit, dotenv
Deployment Streamlit Community Cloud
Security .env + st.secrets key handling

🧾 Results

  • 🎯 Simple, modern, and interactive chat-based UI
  • 📑 Summarization and quiz generation from user input or PDFs
  • ⚡ Fast AI responses through Gemini 2.5 Flash
  • 🧩 Smooth multi-mode workflow for learning support

🚀 Future Scope

  • 🗣️ Speech-based interaction
  • 🌐 Multi-language explanations
  • 🧠 Flashcard & spaced-repetition support
  • 👤 Implement memory-based personalization for users
  • ☁️ Drive/Notion integration for saved sessions

🧩 “Integrating AI with Education — Making Learning Simpler, Smarter, and Accessible for All.”


👨‍💻 Author

Ammaar Ahmad Khan

🌟 If you find this repository useful, please give it a star! 🌟