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 β¦