Skip to content

anmolecule94/genai-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Gen AI Assistant for Research Summarization

A Streamlit-powered application using Google Gemini AI for:

  • πŸ“„ Document upload (PDF/TXT)
  • 🧠 Auto-summarization (≀150 words)
  • πŸ’¬ Free-form Q&A
  • 🎯 Challenge Me Mode (Objective & Subjective quiz generation)

🌐 Live Demo

https://genai-assistant-by-anmol.streamlit.app

πŸš€ Features

  • PDF/TXT Upload: Upload English documents up to 15 MB.
  • Auto-Summary: Generates a concise ≀150-word summary using Gemini.
  • Ask Anything: Ask free-form questions from the document content.
  • Challenge Me Mode:
    • Objective: Auto-generated multiple-choice questions with scoring
    • Subjective: Auto-generated descriptive questions with answer inputs

πŸ“ Folder Structure

genai-assistant/
β”œβ”€β”€ app.py
β”œβ”€β”€ .env
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ file_parser.py
β”‚   β”œβ”€β”€ summarizer.py
β”‚   β”œβ”€β”€ qa_engine.py
β”‚   └── challenge.py

πŸ› οΈ Setup Instructions

  1. Clone this repo
git clone https://github.com/anmolecule94/genai-assistant
cd genai-assistant
  1. Create a virtual environment
python -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Set your Gemini API key
  • Create a .env file in the root with:
GOOGLE_API_KEY=your-gemini-api-key-here

Get your API key here: https://makersuite.google.com/app/apikey

  1. Run the app
streamlit run app.py

πŸ“¦ Requirements

  • Python 3.9 or 3.10
  • API key from Google Gemini (via MakerSuite)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages