← Back to case studies
May 2025

Building a safe RAG health assistant for 537M diabetes patients

Proved that safety architecture can be designed into a health AI product from day one. The four-layer system (emergency keyword fast-path, system prompt scope constraints, source transparency, and hallucination prevention through structured citation parsing) handles real diabetes queries with source-backed answers and no unsafe responses in testing.

Challenge

537 million adults worldwide live with diabetes. For the newly diagnosed, the gap between leaving a doctor's office and feeling genuinely informed can be months wide. Most fill it with Google and Reddit, where misinformation is common. Two distinct user types that existing tools fail to separate: newly diagnosed patients who are emotionally overwhelmed and need reassurance in plain language, and lifelong learners or caregivers who want clinical depth and evidence. Most health chatbots treat these as the same user. Designing around that distinction, and doing so safely, became the central product decision.

Approach

Outcome

Skills Demonstrated

Health AIRAG ArchitecturePrompt EngineeringSafety Design0 to 1 ExecutionLangChainFlask / PythonUX Design

Links