Inspiration

As a student, I often struggled with dense lecture notes and textbooks. Summarizing material and creating practice questions took hours, leaving less time for actual learning. I wanted to create a tool that could instantly summarize study material and generate quizzes, helping students study smarter, not harder.

What it does

StudyMate AI allows users to upload study materials (PDFs, DOCX, TXT) and instantly generates:

  1. Concise summaries highlighting key points and definitions.
  2. Short quiz questions with answers for self-assessment. Optional storage of summaries and quizzes for future reference. The tool is powered by Google Gemini models, deployed on Cloud Run, making it serverless, scalable, and fast.

How we built it

  1. Frontend: Minimal HTML page with a file upload form. Users can select a document and submit it.
  2. Backend: a. Built with Flask and deployed on Cloud Run. b. Text extraction from PDFs using PyMuPDF. AI Summarization and Quiz Generation: Used Gemini API with carefully crafted prompts to generate concise summaries and quizzes. c. Storage: Uploaded files are temporarily stored in Cloud Storage. Optional storage of summaries and quizzes in Firestore.
  3. Deployment: Dockerized the Flask backend.
  4. Deployed to Cloud Run for a stable, scalable API endpoint.

Challenges we ran into

  1. Handling large PDFs efficiently without timeout on Cloud Run.
  2. Crafting prompts for Gemini to generate concise yet meaningful summaries.
  3. Ensuring the uploaded files are sanitized and secure for processing.
  4. Optimizing the system to avoid overloading Cloud Run instances with multiple simultaneous requests.

Accomplishments that we're proud of

  1. Successfully integrated Gemini models to process real study material.
  2. Deployed a fully functional, serverless backend on Cloud Run.
  3. Achieved minimalistic UI while providing meaningful outputs (summary + quiz).
  4. Ensured optional persistent storage for user convenience.

What we learned

  1. How to leverage foundation models like Gemini for real-world tasks.
  2. The challenges and best practices for file uploads and processing on serverless platforms.
  3. Integration of Cloud Storage and Firestore with Cloud Run.
  4. How to design minimal yet effective frontends for AI-powered apps.

What's next for StudyMate AI — Your Smart Study Partner

  1. Add multi-language support to help students worldwide.
  2. Allow batch uploads for multiple documents at once.
  3. Add interactive quizzes with scoring and performance tracking.
  4. Integrate text-to-speech for audio summaries.
  5. Explore mobile app integration using the Cloud Run API.

Built With

  • cloud-storage
  • docker
  • firestore
  • gemini-1.5-pro-(ai-studio)
  • google-cloud-run
  • html/css-(tailwind)
  • pymupdf
  • python-(flask
  • python-docx)
Share this project:

Updates