CareBridgeAI is a full-stack humanitarian platform connecting refugees, donors, and NGOs using AI. It features a medical chatbot powered by RAG (Retrieval-Augmented Generation), real-time hospital locator, voice search, and multilingual support.
π Live Demo: https://carebridgeai-peach.vercel.app
Frontend β Vercel (React + Vite + TailwindCSS)
Backend β HuggingFace Spaces (Flask + Gunicorn)
Vector DB β Pinecone (Medical case embeddings)
LLM β Groq (LLaMA 3.3 70B)
- Describe your symptoms in any language and get relevant medical advice
- Uses Retrieval-Augmented Generation (RAG):
all-MiniLM-L6-v2SentenceTransformer converts your query to a vector- Pinecone searches 250,000+ medical dialogue embeddings for similar cases
- Groq LLaMA 3.3 70B generates a professional, empathetic response grounded in real doctor-patient cases
- Trained on the ruslanmv/ai-medical-chatbot dataset
- Automatically detects the specialist type needed (General, Dentist, Cardiology, etc.)
- Always ends with a disclaimer to consult a real doctor
- Automatically recommends nearby hospitals based on your symptoms
- Uses OpenStreetMap Overpass API to find real medical facilities
- Supports specialist search: General, Dentist, Pharmacy, Cardiology, Orthopedics, Neurology, Ophthalmology, Dermatology, Pediatrics
- Falls back to a wider radius if no results found nearby
- Shows facilities on an interactive Leaflet map with Google Maps directions
- Speak your symptoms instead of typing
- Real-time speech-to-text using Google Speech Recognition
- Supports multiple languages with auto-detection
- Listen to AI responses read aloud
- Multilingual TTS using gTTS
- Hover over any bot message and click the speaker icon to hear it
- Input in any language β auto-translated to English for processing
- Responses delivered back in the detected language
- Powered by deep-translator
- Secure one-time and monthly donation options
- Real-time impact tracking with progress bars
- Active causes: Emergency Relief, Education, Healthcare, Housing
- NGO registration and partnership portal
- Resource management and donor connection tools
- AI-powered analytics dashboard
- Verified NGO network across 34 countries
- Full dark and light theme support across all pages
- Smooth animated transitions
| Technology | Purpose |
|---|---|
| React 19 | UI Framework |
| Vite | Build Tool |
| TailwindCSS 4 | Styling |
| React Router DOM | Navigation |
| React Leaflet | Interactive Maps |
| Lucide React | Icons |
| GSAP | Navbar Animations |
| Technology | Purpose |
|---|---|
| Flask | Web Framework |
| Gunicorn | WSGI Server |
| SentenceTransformers | Query Embedding |
| Pinecone | Vector Database |
| Groq (LLaMA 3.3 70B) | LLM Response Generation |
| gTTS | Text-to-Speech |
| SpeechRecognition | Voice-to-Text |
| deep-translator | Multilingual Translation |
| Pydub + ffmpeg | Audio Processing |
carebridgeai/
βββ src/
β βββ components/
β β βββ ChatBot.jsx # AI chatbot + map UI
β β βββ Navbar.jsx # Animated navbar
β β βββ Main.jsx # Landing page
β β βββ Donor.jsx # Donor platform
β β βββ Ngo.jsx # NGO hub
β β βββ About.jsx # About page
β β βββ Services.jsx # Services page
β β βββ HospitalLocator.jsx# Hospital finder
β β βββ useLocation.jsx # Geolocation hook
β βββ App.jsx
β βββ main.jsx
βββ chat.py # Flask backend (RAG + APIs)
βββ main.ipynb # Pinecone data upload notebook
βββ Dockerfile # HuggingFace Spaces deployment
βββ requirements.txt
βββ README.md
- Python 3.11+
- Node.js 18+
- Pinecone account
- Groq API key
git clone https://github.com/AriseAk/CareBridgeAI.git
cd CareBridgeAIpip install -r requirements.txtCreate a .env file in the root:
PINECONE_API_KEY=your_pinecone_key
GROQ_API_KEY=your_groq_key
Run the backend:
python chat.pynpm installCreate a .env file:
VITE_API_URL=http://localhost:5000
Run the frontend:
npm run devhttp://localhost:5173
- Connect your GitHub repo to vercel.com
- Add environment variable:
VITE_API_URL = https://redinferno1736-carebridgeai-backend.hf.space
- Deploy
- Create a new Space at huggingface.co/spaces
- Select Docker β Blank β CPU Basic
- Upload
chat.py,requirements.txt,Dockerfile - Add secrets in Space Settings:
PINECONE_API_KEY = your_key
GROQ_API_KEY = your_key
- Space URL:
https://your-username-carebridgeai-backend.hf.space
The RAG system is powered by the ruslanmv/ai-medical-chatbot dataset.
- Medical dialogues were cleaned, embedded using
all-MiniLM-L6-v2 - Uploaded to Pinecone index
medical-bot - See
main.ipynbfor the full data pipeline
Note: The production deployment uses the RAG pipeline (
chat.py). The fine-tuned BART model (app.py) is available for local experimentation only.
| Name |
|---|
| Prateek Raghavendra |
| Akshay Bhat |
| Pranav D P |