https://github.com/bhavana1312/smart-doc-assistant
Smart Document Assistant uses RAG and AI to turn PDF documents into interactive quizzes, Q&A, and personalized learning insights.
https://github.com/bhavana1312/smart-doc-assistant
ai-chatbot edtech fastapi groq learning-analytics llm mongodb pdf-processing qdrant quiz-generator rag react sentence-transformers tailwindcss
Last synced: 3 months ago
JSON representation
Smart Document Assistant uses RAG and AI to turn PDF documents into interactive quizzes, Q&A, and personalized learning insights.
- Host: GitHub
- URL: https://github.com/bhavana1312/smart-doc-assistant
- Owner: bhavana1312
- Created: 2025-06-21T11:36:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-22T07:14:53.000Z (about 1 year ago)
- Last Synced: 2025-06-22T07:30:45.697Z (about 1 year ago)
- Topics: ai-chatbot, edtech, fastapi, groq, learning-analytics, llm, mongodb, pdf-processing, qdrant, quiz-generator, rag, react, sentence-transformers, tailwindcss
- Language: JavaScript
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Document Assistant
An intelligent assistant that transforms static PDFs into interactive learning experiences with real-time Q&A, quiz generation, and personalized learning analytics.
## 🔗 Demo
[Watch on YouTube](https://www.youtube.com/watch?v=Ixc3t8IubH8)
---
## ✨ Features
- 📄 Upload any **PDF document**
- 🤖 Ask **questions** based on the document using RAG (Retrieval-Augmented Generation)
- 🧠 Get a **quiz** generated from your document content
- 📈 View a **performance report** with weak area detection
- 📝 Download/Export your results
- 🌙 Dark mode support
- 🔐 User authentication (register/login)
- 📊 Visualize your learning with **charts**
---
## 💠 Tech Stack
### 🚀 Frontend
- React (Vite)
- TailwindCSS + Framer Motion
- Recharts for visualizations
- React Router for routing
### 🧠 Backend
- FastAPI
- MongoDB for structured data
- Qdrant for vector search
- SentenceTransformers for embedding
- Groq LLM for response generation
- JWT for authentication
---
## ⚙️ Setup Instructions
### 1️⃣ Clone the repo
```bash
git clone https://github.com/bhavana1312/smart-doc-assistant.git
cd smart-doc-assistant
```
### 2️⃣ Setup Backend
```bash
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reload
```
📁 Create a .env in backend/ directory:
```bash
MONGO_URI=your_mongo_uri
GROQ_API_KEY=your_groq_key
```
### 3️⃣ Setup Frontend
```bash
cd frontend
npm install
npm run dev
```
📁 Create a .env in frontend/directory:
```bash
VITE_BACKEND_URL=http://localhost:8000
```