CoolFace
Apppublic

Sandeep17022205/Doctor-AI

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
App README

๐Ÿฅ 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:

VariableDescription
GOOGLE_API_KEYYour Gemini API key

๐Ÿณ Running on Hugging Face (Docker)

  1. 1.Create a new Space โ†’ Docker template.
  2. 2.Upload this repository as ZIP.
  3. 3.Add your `GOOGLE_API_KEY` in Settings โ†’ Secrets.
  4. 4.Hugging Face will automatically build & run both frontend and backend.

๐Ÿ’ป Running Locally

bash
# 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