AI-powered medical assistant using RAG & CAG for instant first aid guidance, symptom analysis, and geospatial doctor discovery across Tunisia. Built with React, TypeScript, and Leaflet.
# 🏥 Medical AI Assistant with RAG & Geospatial Intelligence
An intelligent medical AI assistant powered by **Retrieval-Augmented Generation (RAG)** and **Context-Aware Generation (CAG)** that provides instant first aid guidance, medical information, and connects users with nearby healthcare professionals in Tunisia. Combines conversational AI with real-time geospatial mapping to deliver contextual medical assistance when you need it most.
---
## ✨ Features
### 🧠 AI-Powered Medical Intelligence
- 🤖 **RAG-Enhanced Conversational AI** - Context-aware medical assistant that retrieves relevant medical knowledge to answer your health questions
- 🆘 **First Aid Guidance** - Instant emergency response instructions and step-by-step medical procedures
- 💊 **Medical Information Retrieval** - Evidence-based health information, symptom analysis, and treatment recommendations
- 🔍 **Context-Aware Generation (CAG)** - Personalized responses based on your location, symptoms, and medical history
### 🗺️ Geospatial Intelligence
- 📍 **Smart Doctor Discovery** - AI-powered recommendations for nearby healthcare professionals based on your needs
- 🗺️ **Interactive Medical Map** - Real-time visualization of 4,320+ doctors across 24 governorates in Tunisia
- 📊 **Analytics Dashboard** - Comprehensive insights into specialty distribution and regional healthcare density
- 🎯 **Specialty Filtering** - Search across 48 medical specialties with intelligent matching
### 💡 User Experience
- 💬 **Natural Language Interface** - Chat naturally about your medical concerns in plain language
- 📱 **Responsive Design** - Seamless experience on desktop, tablet, and mobile devices
- ⚡ **Real-Time Streaming** - Instant AI responses with streaming text generation
---
## 🚀 Quick Start
### Prerequisites
- Node.js 18+ and npm
- Git
### Installation
```bash
# Clone the repository
git clone
github.com
cd medical-ai-assistant
# Install dependencies
npm install …