Multi-agent healthcare intelligence system over 10,000 messy Indian facility records. Trust-scored, sentence-cited, geospatially aware. Built on the Databricks Data Intelligence Platform for Hack-Nation 5 — Serving A Nation challenge.
🔗 Live demo: https://qhealthtest.lovable.app

In rural India, “static” healthcare data is unreliable. A facility might be listed as having an ICU but actually lack functioning equipment or 24/7 staffing. During the Golden Hour, this data gap costs lives. Existing tools surface raw lists; what’s missing is verified, trust-scored, agentic recommendations with reasoning a human can audit.
retrieve_for_agent(query, k, filters) returns Data Contract JSON in ~1.5smin(auditor, validator) + statistical confidence intervalThreadPoolExecutor to stay under the SRS 10s budgetExcel (10k rows)
│
▼
[Pillar 1] Delta Lake → Mosaic AI Vector Search Index
│
│ retrieve_for_agent(query, k, filters)
▼
[Pillar 2] Lead Auditor (Llama 3.3-70B)
│
▼
Validator (Skeptic)
│
▼
{trust_score, truth_gap_notes, verified_capabilities,
evidence_citations, confidence_interval, ...}
│
│ Databricks Model Serving REST endpoint
▼
[Pillar 3] React + Leaflet/CartoDB + Google Maps
- Citizen Mode: trust-graded pins, Truth Box, Navigate
- Admin Mode: Desert Heatmap, Self-Correction Delta,
Critical Supply Chain Needs
Every result returned by lead_auditor_agent() conforms to:
{
"facility_id": "string",
"facility_name": "string",
"pin_code": 800020,
"state": "Bihar",
"city": "Patna",
"coordinates": { "lat": 25.61, "long": 85.13 },
"trust_score": 8,
"verified_capabilities": ["NICU", "24/7 Emergency"],
"truth_gap_notes": "[S2] claims Advanced Cardiac Care but [S4] lists no anesthesiologist.",
"evidence_citations": ["[S1] 24/7 emergency care confirmed."],
"is_medical_desert": false,
"interval_label": "8.0 – 9.0 / 10",
"confidence_note": "High — both agents aligned on evidence",
"recommendation": "Best match — go here first",
"agent1_score": 8,
"validator_score": 9,
"latency_ms": 5430
}
02_retrieval_layer.ipynb in your Databricks workspacemlflow.set_experiment("/Users/<your-email>/serving-a-nation")lead_auditor_agent() + validator_agent()lead_auditor_agent as a Databricks Model Serving endpointcd src/
npm install
npm run dev
Set in your .env:
VITE_AGENT_ENDPOINT=https://<workspace>.cloud.databricks.com/serving-endpoints/<endpoint>/invocations
VITE_DATABRICKS_TOKEN=<scoped PAT — model-serving + mlflow + vector-search scopes>
VITE_GOOGLE_MAPS_API_KEY=<your-google-maps-key>
| Layer | Technology |
|---|---|
| Data | Delta Lake, Unity Catalog, Change Data Feed |
| Retrieval | Mosaic AI Vector Search, HNSW, GTE-Large embeddings |
| Agents | Llama-3.3-70B via Databricks Foundation Model APIs |
| Observability | MLflow 3 Tracing |
| Backend serving | Databricks Model Serving |
| Frontend | React, Vite, Leaflet, CartoDB tiles, Google Maps API |
| Deployment | Lovable |
Built for Hack-Nation 5 × MIT Club of Northern California × MIT Club of Germany — Serving A Nation challenge powered by Databricks.