Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DocAI — PDF & Excel AI Assistant

Upload PDFs or Excel files and chat with them, get summaries, and generate quizzes — powered by Groq API + RAG.

Features

  • PDF Q&A using RAG (FAISS + sentence-transformers)
  • Excel/CSV summarization with pandas
  • Quiz generator with scoring
  • Powered by Groq (llama-3.1-8b-instant) — free tier

Setup

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/docai.git
cd docai

2. Backend

cd backend
python -m venv venv
venv\Scripts\activate        # Windows
source venv/bin/activate     # Mac/Linux

pip install -r requirements.txt

cp .env.example .env
# Open .env and paste your Groq API key
# Get free key at: https://console.groq.com

3. Frontend

cd frontend
npm install
npm run dev

4. Run backend

cd backend
python main.py

Open http://localhost:5173

Get your free Groq API key

  1. Go to https://console.groq.com
  2. Sign up → API Keys → Create API Key
  3. Paste into your .env file

Tech Stack

  • Frontend: React + Vite
  • Backend: FastAPI (Python)
  • LLM: Groq API (llama-3.1-8b-instant)
  • RAG: FAISS + sentence-transformers (runs locally)
  • PDF: PyMuPDF
  • Excel: pandas

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages