Skip to content

AI tool to summarize documents and generate Q&A using OpenAI GPT-3.5. Built with Streamlit. Supports TXT, PDF, and DOCX uploads.

Notifications You must be signed in to change notification settings

rehan-shafi/studymate-mini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š StudyMate Mini (Prompt Engineering Demo)

StudyMate Mini is a Streamlit-based web app that uses OpenAI GPT-3.5 to analyze study content or documents. It generates a concise summary and a short Q&A section to help users understand the material better.

πŸ”§ Features

  • Upload and analyze TXT, PDF, or DOCX files
  • Paste custom study content directly
  • GPT-3.5 powered summaries and Q&A generation
  • Session logging with summaries and questions
  • Word limit enforcement for GPT-3.5 context safety

πŸš€ Getting Started

1. Install Dependencies

pip install -r requirements.txt

2. Set OpenAI API Key

In your environment variables or in .env:

export OPENAI_API_KEY=sk-your-api-key

3. Run the App

streamlit run app.py

πŸ“‚ File Structure

  • app.py: Main Streamlit application
  • prompts/: Prompt templates
  • logs/: JSON file logging all session data
  • requirements.txt: Dependency list
  • .gitignore: Files/folders to exclude from Git

🧠 Prompt Engineering

Two custom templates are used:

  • Summary
  • Question & Answer

These are injected dynamically with your input.

  • βœ… Mini Demo (prompt-based)
  • πŸš€ Full Flagship (multi-component StudyMate GPT)

Built with πŸ’‘ by Rehan Shafi.

About

AI tool to summarize documents and generate Q&A using OpenAI GPT-3.5. Built with Streamlit. Supports TXT, PDF, and DOCX uploads.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages