Healthmate Compass
About the project
🧭 HealthMate Compass
An AI health companion that explains lab reports and prescriptions in plain language, routes you to the right nearby specialist, and remembers your health history across chats.
The problem
Most people get a lab report they can’t read. They panic, ignore real warning signs, and don’t know which doctor to see or where to find one.
What it does
- 🧪 Lab report explainer: upload a photo or PDF. Gemma 4 reads it, and plain-language explanations come in English or Urdu (RTL), one language at a time.
- 🚩 Code-based flags: high, low, and normal are computed in Python against reference ranges. The AI never decides them.
- 💊 Prescription analyzer: extracts medicines, doses, and schedules, then checks them against your recorded allergies.
- 🩺 AI doctor chat: a LangGraph agent that triages symptoms using your profile and past chats.
- 🚨 Instant emergency path: rule-based detection (English, Urdu, Roman Urdu) skips the LLM and shows Rescue 1122 guidance.
- 🧠 Permanent memory: a pgvector store plus structured profile updates (“I recovered from the flu” updates your record, with undo).
- 📍 Real nearby specialists: results come only from Google Places (OpenStreetMap fallback), never from the model, with directions links.
How Gemma 4 is used
Gemma 4 (26B A4B) through the Gemini API reads report images, writes the explanations, powers the symptom chat, and extracts facts for memory. OpenRouter provides an automatic Gemma 4 fallback. Model license: Apache 2.0.
Safety by design
- No diagnosis, with “may relate to” wording and a disclaimer.
- Flags come from code, not the model.
- Doctors come only from map data, never from the LLM.
- Emergencies are handled by rules, with zero LLM calls.
- No dosing advice.
Tech stack
Backend: Python 3.11, FastAPI, LangGraph, Instructor + Pydantic · AI: Gemma 4 (Gemini API, OpenRouter fallback), Gemini embeddings (768d) · Data: Supabase (Postgres, pgvector, Auth, RLS) · Maps: Google Places + OpenStreetMap · Frontend: React 18, TypeScript, Vite, Tailwind, i18next
🧩 Open source
Public repo under an open-source license, including a reusable Agent Skill (skills/safe-lab-report-explainer) that follows the Agent Skills open standard.
What’s next
Medicine conflict alerts, report trends, WhatsApp reminders, and more languages.
Demo uses synthetic data only. HealthMate gives information, not a diagnosis.
Built with
AI tools
Prize Categories Entered
- Submitted
Best Use of Gemma 4
- Submitted

Best Open-Source AI Project