AI Lab Local RAG Maternal Health Safety Guardrails ChromaDB ยท sentence-transformers

MamaCare AI โ€” Maternal Health Assistant

MamaCare AI helps pregnant mothers navigate pregnancy with warm, clear, and stage-aware guidance. It answers common questions across the maternal journey โ€” symptoms, nutrition, fetal movement, antenatal care, birth, and postpartum recovery โ€” while staying grounded in a curated knowledge base and protected by deterministic safety guardrails that escalate emergencies and refuse unsafe medical advice.

33
Curated KB Cards
6
Guardrail Layers
100%
Cited Answers
Local
No External API

Problem Statement

Pregnant mothers often need quick, clear, reassuring answers about symptoms, nutrition, fetal movement, warning signs, and birth preparation โ€” frequently outside clinic hours and in low-connectivity settings. General chatbots are risky here: they can hallucinate, give unsafe medication advice, or miss an emergency that needs urgent care.

Maternal health is exactly the domain where a warm answer must still be safe and evidence-grounded. The hard part is not fluent text โ€” it is refusing to guess, surfacing danger signs, and escalating emergencies reliably.

The solution: A local RAG assistant that answers only from curated maternal-health cards, prioritises high-trust FAQ matches, returns citations, and runs safety guardrails outside the retrieval system to catch emergencies, block dosage advice, protect privacy, and decline out-of-scope questions.

How It Works

๐Ÿ›ก๏ธ
1. Safety Guardrails First
Before any answer, deterministic rules scan the question for emergency symptoms, self-harm, medication/dosage requests, privacy risks, and out-of-scope topics โ€” so safety is never left to the language layer.
๐Ÿคฐ
2. Trimester Awareness
The assistant infers pregnancy stage from the question (or an explicit selection) and prioritises stage-relevant guidance so a first-trimester mother and a third-trimester mother get appropriate answers.
โšก
3. Curated FAQ Fast Path
A lexical FAQ matcher answers must-answer maternal questions first, protecting critical questions from being missed by semantic search alone.
๐Ÿ”Ž
4. Grounded Retrieval & Citations
If the fast path is weak, semantic retrieval (sentence-transformers + ChromaDB in the full app) finds the closest curated cards. Answers are formatted warmly, with "when to seek care" notes and a clear citation to the source card.
Not a diagnostic tool. MamaCare AI provides general, educational maternal guidance. It does not diagnose, does not prescribe medication doses, and does not replace a qualified healthcare professional. In an emergency, mothers are told to seek urgent care immediately.
๐Ÿ“„ Architecture Docs ๐Ÿ”ฌ Methodology ๐Ÿค– Open AI Sandbox โ†’