Upload PDFs or Excel files and chat with them, get summaries, and generate quizzes — powered by Groq API + RAG.
- Here is the link https://medium.com/@raghavaashok2004/i-built-a-pdf-excel-ai-assistant-upload-any-document-ask-questions-get-summaries-and-generate-68113e021e20
- I explained every detail in the Medium
- 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
git clone https://github.com/YOUR_USERNAME/docai.git
cd docaicd 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.comcd frontend
npm install
npm run devcd backend
python main.py- Go to https://console.groq.com
- Sign up → API Keys → Create API Key
- Paste into your
.envfile
- Frontend: React + Vite
- Backend: FastAPI (Python)
- LLM: Groq API (llama-3.1-8b-instant)
- RAG: FAISS + sentence-transformers (runs locally)
- PDF: PyMuPDF
- Excel: pandas