HealthRAG

Personal Medical Document System (Built for a Friend)

30 minutes → 3 seconds • Medical records you can actually use

A friend spent 10+ years visiting doctors without a diagnosis. Each specialist saw only their fragment — missing connections between symptoms across clinics and years. Built HealthRAG in 12 days. Processed 870 documents. Now she answers any doctor’s question about her history in 3 seconds instead of searching through papers for 30 minutes.

Before/After

Before: Doctor asks “What was your hemoglobin six months ago?” → 30 minutes searching papers, trying to remember which clinic

After: Ask Telegram bot → 3 seconds, complete answer with dates and trend

Impact: 870 documents from 10+ years, instantly searchable. Trends visible that were impossible to see before (e.g., “vitamin D dropping for 2 years”).

How It Works

Step 1: Send photo of medical document to Telegram bot

Step 2: AI reads it (including handwriting), extracts test results, dates, diagnoses. When it encounters unknown abbreviations, asks you once, then remembers forever.

Step 3: Data organized into two systems: structured database for trends (“show cholesterol last 2 years”) + search engine for context (“find all mentions of thyroid”)

Result: Ask any question about your medical history, get answer in 3 seconds with specific numbers and dates.

Technical Architecture

Data Pipeline: Medical Document → Google Document AI (OCR) → Claude AI (Structuring + Normalization) → JSON Schema Validation → Parallel Write to BigQuery (structured data) + Qdrant (embeddings) → Conversational AI Layer

Key Technical Decisions:

Real Numbers

Python FastAPI Claude 3.5 Sonnet Google Document AI BigQuery Qdrant Telegram Bot API