bshepp commited on
Commit ·
fdd7dd5
1
Parent(s): 40a59f7
docs: align video script with actual sample case, deployment, and new UX features
Browse files- docs/video_script.md +24 -21
docs/video_script.md
CHANGED
|
@@ -8,13 +8,12 @@
|
|
| 8 |
|
| 9 |
## PRE-RECORDING CHECKLIST
|
| 10 |
|
| 11 |
-
- [ ]
|
| 12 |
-
- [ ]
|
| 13 |
-
- [ ] Start frontend: `cd src/frontend && npm run dev`
|
| 14 |
-
- [ ] Open browser to `http://localhost:3000`
|
| 15 |
- [ ] Close unnecessary tabs/notifications
|
| 16 |
-
- [ ]
|
| 17 |
- [ ] Browser zoom ~110-125% for readability on video
|
|
|
|
| 18 |
|
| 19 |
---
|
| 20 |
|
|
@@ -36,9 +35,9 @@
|
|
| 36 |
|
| 37 |
**[SCREEN: App interface — PatientInput component visible]**
|
| 38 |
|
| 39 |
-
> "Let me show you how it works.
|
| 40 |
|
| 41 |
-
**[ACTION: Click
|
| 42 |
|
| 43 |
> "When I submit this case, the agent pipeline kicks off. You can see each step executing in real time on the left."
|
| 44 |
|
|
@@ -46,19 +45,15 @@
|
|
| 46 |
|
| 47 |
> "Step 1 — MedGemma parses the free-text narrative into structured patient data: demographics, vitals, labs, medications, allergies, history."
|
| 48 |
|
| 49 |
-
**[Wait for Step 1 to complete
|
| 50 |
|
| 51 |
> "Step 2 — Clinical reasoning. MedGemma generates a ranked differential diagnosis with chain-of-thought reasoning. It's considering ACS, GERD, PE, aortic dissection — weighing evidence for and against each."
|
| 52 |
|
| 53 |
-
**[Wait for Step 2 to complete
|
| 54 |
|
| 55 |
-
> "Step 3 — Drug interaction check. This isn't the LLM guessing — it's querying the actual OpenFDA and RxNorm databases for his
|
| 56 |
|
| 57 |
-
**[Wait for
|
| 58 |
-
|
| 59 |
-
> "Step 4 — Guideline retrieval. Our RAG system searches 62 curated clinical guidelines across 14 specialties. For this case it pulls the ACC/AHA chest pain and ACS guidelines."
|
| 60 |
-
|
| 61 |
-
**[Wait for Step 4 to complete, ~10 seconds]**
|
| 62 |
|
| 63 |
> "Step 5 — and this is what makes it a real safety tool — Conflict Detection. MedGemma compares what the guidelines recommend against what the patient is actually receiving. It surfaces omissions, contradictions, dosage concerns, and monitoring gaps."
|
| 64 |
|
|
@@ -66,7 +61,7 @@
|
|
| 66 |
|
| 67 |
> "Step 6 — Synthesis. Everything gets integrated into a single comprehensive report."
|
| 68 |
|
| 69 |
-
**[Wait for Step 6 to complete. Total pipeline ~
|
| 70 |
|
| 71 |
---
|
| 72 |
|
|
@@ -74,7 +69,7 @@
|
|
| 74 |
|
| 75 |
**[SCREEN: Scroll through the CDSReport component]**
|
| 76 |
|
| 77 |
-
> "Here's the CDS report. At the top — the ranked differential diagnosis. ACS is correctly identified as the leading diagnosis, with clear reasoning."
|
| 78 |
|
| 79 |
**[ACTION: Scroll to drug interactions section]**
|
| 80 |
|
|
@@ -86,7 +81,11 @@
|
|
| 86 |
|
| 87 |
**[ACTION: Scroll to guidelines section]**
|
| 88 |
|
| 89 |
-
> "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
---
|
| 92 |
|
|
@@ -96,7 +95,7 @@
|
|
| 96 |
|
| 97 |
> "Under the hood: MedGemma 27B powers four of six pipeline steps — parsing, reasoning, conflict detection, and synthesis. It's augmented with OpenFDA and RxNorm APIs for drug safety, and a 62-guideline RAG corpus for evidence-based recommendations.
|
| 98 |
>
|
| 99 |
-
> We validated on 50 MedQA USMLE cases with 94% pipeline reliability and
|
| 100 |
>
|
| 101 |
> With 140 million ED visits per year in the U.S. alone, even a modest improvement in diagnostic completeness and medication safety represents lives saved. CDS Agent is built to make that happen."
|
| 102 |
|
|
@@ -113,10 +112,14 @@
|
|
| 113 |
| Report Review | 40 sec | 2:40 |
|
| 114 |
| Closing — Tech & Impact | 20 sec | 3:00 |
|
| 115 |
|
|
|
|
|
|
|
| 116 |
## TIPS
|
| 117 |
|
| 118 |
-
- **
|
|
|
|
| 119 |
- **Don't rush** — the real-time pipeline visualization IS the demo; let it breathe
|
| 120 |
- **Zoom into the Conflicts section** — it's the most visually impressive and differentiating feature
|
| 121 |
-
- **If the endpoint is slow** —
|
|
|
|
| 122 |
- **Backup plan** — if the HF endpoint is down, you can use Google AI Studio with Gemma 3 27B IT as a fallback (update .env accordingly)
|
|
|
|
| 8 |
|
| 9 |
## PRE-RECORDING CHECKLIST
|
| 10 |
|
| 11 |
+
- [ ] Ensure HF Dedicated Endpoint is running (check `https://bshepp-cds-agent.hf.space/api/health/config`)
|
| 12 |
+
- [ ] Open browser to `https://demo.briansheppard.com` (or `https://bshepp-cds-agent.hf.space`)
|
|
|
|
|
|
|
| 13 |
- [ ] Close unnecessary tabs/notifications
|
| 14 |
+
- [ ] Submit one case end-to-end before recording to confirm model is warm (watch for warm-up screen)
|
| 15 |
- [ ] Browser zoom ~110-125% for readability on video
|
| 16 |
+
- [ ] **Local fallback** (if Space is down): `cd src/backend && uvicorn app.main:app --host 0.0.0.0 --port 8002` + `cd src/frontend && npm run dev`, then open `http://localhost:3000`
|
| 17 |
|
| 18 |
---
|
| 19 |
|
|
|
|
| 35 |
|
| 36 |
**[SCREEN: App interface — PatientInput component visible]**
|
| 37 |
|
| 38 |
+
> "Let me show you how it works. I'll load a built-in sample case — a 55-year-old male presenting to the ED with acute substernal chest pain radiating to his left arm and jaw, with diaphoresis and nausea. He has hypertension, type 2 diabetes, and hyperlipidemia, and he's on metformin, lisinopril, atorvastatin, and aspirin."
|
| 39 |
|
| 40 |
+
**[ACTION: Click the "Chest Pain (55M)" sample case button, then click "Analyze Patient Case"]**
|
| 41 |
|
| 42 |
> "When I submit this case, the agent pipeline kicks off. You can see each step executing in real time on the left."
|
| 43 |
|
|
|
|
| 45 |
|
| 46 |
> "Step 1 — MedGemma parses the free-text narrative into structured patient data: demographics, vitals, labs, medications, allergies, history."
|
| 47 |
|
| 48 |
+
**[Wait for Step 1 to complete]**
|
| 49 |
|
| 50 |
> "Step 2 — Clinical reasoning. MedGemma generates a ranked differential diagnosis with chain-of-thought reasoning. It's considering ACS, GERD, PE, aortic dissection — weighing evidence for and against each."
|
| 51 |
|
| 52 |
+
**[Wait for Step 2 to complete]**
|
| 53 |
|
| 54 |
+
> "Steps 3 and 4 run in parallel. Step 3 — Drug interaction check. This isn't the LLM guessing — it's querying the actual OpenFDA and RxNorm databases for his four medications. Real API data, not hallucination. Step 4 — Guideline retrieval. Our RAG system searches 62 curated clinical guidelines across 14 specialties. For this case it pulls the ACC/AHA chest pain and ACS guidelines."
|
| 55 |
|
| 56 |
+
**[Wait for Steps 3 & 4 to complete]**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
> "Step 5 — and this is what makes it a real safety tool — Conflict Detection. MedGemma compares what the guidelines recommend against what the patient is actually receiving. It surfaces omissions, contradictions, dosage concerns, and monitoring gaps."
|
| 59 |
|
|
|
|
| 61 |
|
| 62 |
> "Step 6 — Synthesis. Everything gets integrated into a single comprehensive report."
|
| 63 |
|
| 64 |
+
**[Wait for Step 6 to complete. Total pipeline ~2-3 minutes]**
|
| 65 |
|
| 66 |
---
|
| 67 |
|
|
|
|
| 69 |
|
| 70 |
**[SCREEN: Scroll through the CDSReport component]**
|
| 71 |
|
| 72 |
+
> "Here's the CDS report. At the top — the ranked differential diagnosis. ACS is correctly identified as the leading diagnosis, with clear reasoning. The elevated troponin and ST elevation in II, III, and aVF support an inferior STEMI."
|
| 73 |
|
| 74 |
**[ACTION: Scroll to drug interactions section]**
|
| 75 |
|
|
|
|
| 81 |
|
| 82 |
**[ACTION: Scroll to guidelines section]**
|
| 83 |
|
| 84 |
+
> "Cited guideline recommendations from authoritative sources — ACC/AHA, ADA, and others."
|
| 85 |
+
|
| 86 |
+
**[ACTION: Click the "Download .md" button in the left panel]**
|
| 87 |
+
|
| 88 |
+
> "And clinicians can download the full report as Markdown for their records."
|
| 89 |
|
| 90 |
---
|
| 91 |
|
|
|
|
| 95 |
|
| 96 |
> "Under the hood: MedGemma 27B powers four of six pipeline steps — parsing, reasoning, conflict detection, and synthesis. It's augmented with OpenFDA and RxNorm APIs for drug safety, and a 62-guideline RAG corpus for evidence-based recommendations.
|
| 97 |
>
|
| 98 |
+
> We validated on 50 MedQA USMLE cases with 94% pipeline reliability and 38% diagnostic mention rate — before any fine-tuning.
|
| 99 |
>
|
| 100 |
> With 140 million ED visits per year in the U.S. alone, even a modest improvement in diagnostic completeness and medication safety represents lives saved. CDS Agent is built to make that happen."
|
| 101 |
|
|
|
|
| 112 |
| Report Review | 40 sec | 2:40 |
|
| 113 |
| Closing — Tech & Impact | 20 sec | 3:00 |
|
| 114 |
|
| 115 |
+
> **Note on timing:** The pipeline typically takes 2-3 minutes on the live endpoint. You can speed up the wait portions (1.5x-2x) in post-editing while keeping narration at normal speed to fit within 3 minutes. Alternatively, record narration separately and overlay it.
|
| 116 |
+
|
| 117 |
## TIPS
|
| 118 |
|
| 119 |
+
- **Warm up before recording** — Submit a test case first. If the model has scaled to zero you'll see a "Model Warming Up" spinner; wait for it to complete (~1-2 min) before the real recording
|
| 120 |
+
- **Speak during pipeline wait times** — the pipeline execution is perfect narration time
|
| 121 |
- **Don't rush** — the real-time pipeline visualization IS the demo; let it breathe
|
| 122 |
- **Zoom into the Conflicts section** — it's the most visually impressive and differentiating feature
|
| 123 |
+
- **If the endpoint is slow** — speed up wait portions in post-editing (1.5x-2x) while keeping narration at normal speed
|
| 124 |
+
- **Retry resilience** — if a pipeline run fails, the "Try Again" button lets you retry without reloading the page
|
| 125 |
- **Backup plan** — if the HF endpoint is down, you can use Google AI Studio with Gemma 3 27B IT as a fallback (update .env accordingly)
|