Skip to content

ninjaabhinav/SmartAssistantForReaseachPaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Smart Research Assistant (React + FastAPI + Gemini AI)

An AI-powered research assistant web app that allows users to:

  • πŸ“€ Upload PDF or TXT files (like research papers)
  • πŸ“ Automatically generate a 150-word summary
  • πŸ€– Ask questions from the document
  • 🧠 Take a "Challenge Me" quiz based on the content

Built with React (Vite) for frontend, FastAPI for backend, and Gemini AI for language processing.


πŸš€ Features

  • πŸ“„ Upload and parse large research papers (PDF or TXT)
  • ✨ Get a clean, AI-generated summary
  • πŸ€” Ask questions with real-time answers
  • 🎯 Challenge yourself with AI-generated quiz questions
  • πŸ’¬ Gemini Pro API integration for context-aware answers
  • πŸ’… Responsive, minimal UI with loading indicators

πŸ“ Project Structure

smart-assistant/ β”œβ”€β”€ backend/ # FastAPI server β”‚ β”œβ”€β”€ main.py β”‚ └── requirements.txt β”‚ β”œβ”€β”€ frontend/ # React + Vite frontend β”‚ β”œβ”€β”€ public/ β”‚ β”‚ └── index.html β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ App.jsx β”‚ β”‚ β”œβ”€β”€ main.jsx β”‚ β”‚ β”œβ”€β”€ index.css / style.css β”‚ β”‚ └── components/ β”‚ β”‚ β”œβ”€β”€ FileUpload.jsx β”‚ β”‚ β”œβ”€β”€ SummaryCard.jsx β”‚ β”‚ β”œβ”€β”€ AskSection.jsx β”‚ β”‚ └── ChallengeSection.jsx β”‚ β”œβ”€β”€ package.json β”‚ └── vite.config.js


πŸ› οΈ Installation & Run Locally

πŸ“¦ Frontend Setup Instructions (React + Vite)

πŸ› οΈ To set up the frontend:
Step 1: Navigate to the frontend directory
cd frontend
Step 2: Install dependencies and generate node_modules/
npm install
This command uses package.json to install all required packages.

Step 3: Run the development server
npm run dev
Your React app will be available at:
πŸ”— http://localhost:5173

πŸ”’ Note on .gitignore
Make sure node_modules/ is excluded from version control by adding this line in .gitignore:

node_modules/

βš™οΈ Backend (FastAPI + Gemini)

cd backend
pip install -r requirements.txt
uvicorn main:app --reload

Backend runs on http://127.0.0.1:8000

Open Swagger docs: http://127.0.0.1:8000/docs

βš›οΈ Frontend (React)
cd frontend
npm install
npm run dev
Frontend runs on http://localhost:5173

πŸ”‘ Setup Gemini API
In main.py:
genai.configure(api_key="YOUR_GEMINI_API_KEY")
Get your API key from: https://makersuite.google.com/app/apikey

πŸ“„ License
MIT License. Use freely for learning and personal projects.

πŸ™Œ Author
Made with πŸ’» and β˜• by Abhinav Mishra

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published