مساعدك الذكي لفهم المعرفة الطبية | Your Intelligent Medical Knowledge Assistant
A production-grade, document-grounded medical AI web platform engineered for healthcare students, patients, and clinicians.
🔬 Project Overview
MEDAI is an advanced bilingual (Arabic ⇄ English) medical knowledge platform. It enables users to ask medical questions, understand complex health concepts, explore clinical lectures, and receive clear, patient-friendly explanations backed strictly by verified medical documents and citations.
The platform eliminates the developer dashboard feel and presents a clean, trustworthy medical experience where technical vector metrics are neatly isolated to an Advanced settings panel.
Core Distinctions:
Document-Grounded (No Hallucinations): The AI answers solely from indexed medical curriculum and textbooks. If information is not in the knowledge base, it explicitly states so.
True Bilingual RTL / LTR: Seamless switching between Arabic (with native RTL typography) and English with zero hardcoded language leaks.
Traceable Reference Citations: Every key fact includes a clickable citation [1], [2] that opens a dedicated Source Viewer displaying the exact source excerpt and page number.
Interactive Human Anatomy: Educational modules detailing major human organ systems (Heart, Brain, Lungs, Liver, Kidneys, Digestive System).
🌟 Why MEDAI?
Challenge with Generic LLMs How MEDAI Solves It
Hallucinated Medical Advice Strict RAG grounding with ChromaDB cosine retrieval — refuses to guess missing facts.
No Source Verification Real-time passage extraction with exact document names, sections, and page references.
Cluttered Developer Dashboards Redesigned modern medical UI focusing on human clinical care and learning.
Poor Arabic Medical Translation Native Arabic medical ontology and terminology with standardized formatting.
Privacy & Cloud Vendor Lock-in 100% local processing using open-weight LLMs (Ollama) and local embeddings.
✨ Features
🩺 Clinical AI Assistant: Conversational medical inquiry with streaming answers and empathetic, structured formatting.
📑 Source Viewer Drawer: Instant modal inspecting cited passages with highlighted excerpts.
📚 My Medical Library: Dedicated document management for PDF, TXT, and Markdown files.
⚡ Multi-Stage Progress Workflow: Real-time upload feedback (Uploading → Reading → Extracting → Chunking → Embedding → Indexing).
🫀 Interactive Anatomy Explorer: Visual body organ explorer with verified physiological facts and direct Q&A links.
💬 My Chats Session History: Persistent local conversation history with renaming, searching, and resumption.
🕸️ Knowledge Explorer: Semantic map connecting questions, topics, lectures, and cited excerpts.
📊 Knowledge Insights: Clean analytics covering document coverage, query volumes, and library metrics.
🎨 Adaptive Theme & Language: Dark Navy and Clean Light themes with persistent state.
🛡️ Medical Safety System: Prominent educational notices and emergency triage advisories.
🛡️ Medical Safety & Constraints
Important
Educational Disclaimer: MEDAI is designed exclusively for educational exploration and medical knowledge understanding. It does NOT provide certified clinical diagnosis, write medication prescriptions, or replace urgent emergency care.
Strict Negative Refusal: When questions fall outside the uploaded knowledge, the system responds with a calibrated refusal advising consultation with a healthcare provider.
Emergency Triage Warning: Detects high-risk symptoms and prompts the user to seek immediate professional emergency medical care.