bshepp
Add HF Space deployment (Dockerfile, nginx, startup script) and auto-detect WebSocket URL
4ba0371
| title: CDS Agent | |
| emoji: π₯ | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| app_port: 7860 | |
| fullWidth: true | |
| custom_domains: | |
| - demo.briansheppard.com | |
| # CDS Agent β Agentic Clinical Decision Support | |
| An agentic pipeline that orchestrates **MedGemma** (HAI-DEF) across six specialized clinical reasoning steps, augmented with drug safety APIs and guideline RAG, to produce comprehensive decision support reports in real time. | |
| ## Architecture | |
| ``` | |
| Frontend (Next.js 14) βWebSocketβ Backend (FastAPI) | |
| β | |
| Orchestrator (6-step pipeline) | |
| βββ Step 1: Parse Patient Data (MedGemma) | |
| βββ Step 2: Clinical Reasoning (MedGemma) | |
| βββ Step 3: Drug Interaction Check (OpenFDA + RxNorm) | |
| βββ Step 4: Guideline Retrieval (ChromaDB RAG) | |
| βββ Step 5: Conflict Detection (MedGemma) | |
| βββ Step 6: Synthesis (MedGemma) | |
| ``` | |
| ## Links | |
| - **Code:** [github.com/bshepp/clinical-decision-support-agent](https://github.com/bshepp/clinical-decision-support-agent) | |
| - **Model:** [google/medgemma-27b-text-it](https://huggingface.co/google/medgemma-27b-text-it) | |
| - **Competition:** [MedGemma Impact Challenge](https://www.kaggle.com/competitions/med-gemma-impact-challenge) | |