Building MedRoute — an AI triage agent that routes patients to local or remote LLMs based on case complexity

MedRoute — Intelligent Medical Triage Agent for Low-Resource Clinics

Hey AMD community! I’m building MedRoute for the AMD Developer Hackathon ACT II,
and wanted to share what I’m working on.

The Problem

In emerging markets like South Asia, rural clinics are overwhelmed.
Doctors handle 80+ patients a day with no decision support.
Simple cases eat up the same time as critical ones.

What I’m Building

MedRoute is a hybrid routing agent that triages patient symptoms
and intelligently decides:

  • Simple case? → handled locally by Llama 3.2 3B running on AMD Developer Cloud
  • Complex case? → escalated to a powerful remote model via Fireworks AI

This keeps costs minimal while ensuring critical cases get full diagnostic power.

Architecture

  • Local inference on AMD GPUs (Llama 3.2 3B via Ollama)
  • RAG pipeline over WHO primary care guidelines (ChromaDB)
  • Complexity scorer routes based on symptom severity (score 1–10)
  • Report generator outputs a structured PDF for the doctor
  • Full stack: FastAPI + React + Docker

Why AMD?

Running local inference on AMD Developer Cloud is what makes this
economically viable — no per-token cost for the 70% of cases that
are straightforward. AMD GPUs handle the base layer, Fireworks AI
handles the edge cases.

Track

Unicorn Track — targeting real-world impact in healthcare access.

Would love feedback from the community. What edge cases should I be thinking about?

#MedRoute #AMDHackathon #AIAgents #Healthcare llm

1 Like

Strong idea. The main thing to tighten is that the biggest risk is a serious case being marked as “simple,” so the routing should lean toward escalation when it is unsure. Add a hard red-flag override for symptoms like chest pain, trouble breathing, or fever in an infant so those always escalate no matter the score. And if the remote model is unavailable, fall back to “refer to a clinician” instead of silently lowering the urgency. It would also be smart to include age and pregnancy in the score, since they can change how urgent the case is by a lot. Thank you for sharing, I really support this idea and I hope it will help many real people with problems.

1 Like

Hi there,

I took the time to read through your project. I really like where you’re going with MedRoute. Hybrid routing is a smart way to stretch limited compute while still giving clinicians access to stronger models when it matters. For a hackathon project, this is a genuinely creative architecture with a lot of potential impact.

Since you’re working in a healthcare‑adjacent space, one thing that can make your project even stronger is thinking about the “governance layer” early on, not in a heavy regulatory way, but in a practical engineering way. Even simple guardrails can make the system more reliable and more trustworthy for real‑world use.

A few things you might consider as you continue with your project:

Lean toward escalation when the model is unsure.
In real clinics, the biggest risk isn’t over‑escalation — it’s missing a serious case that looks mild at first glance. A simple “when uncertain, escalate” rule can go a long way.

Add a small set of red‑flag overrides.
Symptoms like chest pain, trouble breathing, fever in an infant, or severe dehydration are almost always treated as urgent. Hard‑coding a few of these into your routing logic keeps the system safe without adding complexity.

Handle outages gracefully.
If the remote model is unavailable, it’s safer to fall back to “refer to clinician” instead of letting the urgency drop. This is a great place to show thoughtful design in a hackathon setting.

Include basic context like age or pregnancy.
These two factors alone can change the urgency of a case dramatically, and they’re easy to incorporate into your scoring.

Make uncertainty visible.
Even a simple “confidence” or “low‑context” flag in the PDF helps clinicians understand when the system is guessing vs. when it’s confident.

None of this is meant to weigh down your idea. It’s quite the opposite. You’ve got a strong foundation, and adding a few governance‑minded touches will make your project stand out as something that’s not just clever, but also responsibly designed for the kind of environments you’re aiming to support.

Really excited to see where you take it next.

Take care and good luck in the hackathon!

J