Sandeep17022205/Doctor-AI
1
๐ฅ Healthcare RAG Chatbot
A minimal ChatGPT-like chatbot UI built with React + Tailwind (Vite) and a FastAPI backend that integrates with Google Gemini API for RAG (Retrieval Augmented Generation). All data (PDF/TXT uploads) are stored persistently in ChromaDB, per user session.
๐ Features
- ๐ง RAG + LangChain: Context-aware answers from uploaded documents.
- ๐ File Upload: Supports PDF/TXT uploads.
- ๐พ Persistent Memory: Saves conversation + embeddings in ChromaDB.
- ๐ก Gemini API: Uses Google Gemini as the LLM.
- ๐จ Frontend: Minimal ChatGPT-like UI (React + Tailwind).
- ๐ Single Hugging Face Space (Docker): Runs backend + frontend together.
โ๏ธ Environment Variables
Set the following inside Hugging Face โ Settings โ Variables & secrets:
๐ณ Running on Hugging Face (Docker)
- Create a new Space โ Docker template.
- Upload this repository as ZIP.
- Add your `GOOGLE_API_KEY` in Settings โ Secrets.
- Hugging Face will automatically build & run both frontend and backend.
๐ป Running Locally
# Clone repo
git clone <repo-url>
cd <repo>
# Backend
pip install -r requirements.txt
uvicorn app:app --reload --port 8000
# Frontend
cd frontend
npm install
npm run dev