Skip to content
← All projects

Clinical Triage RAG System

An LLM triage assistant that grounds its acuity predictions in retrieved clinical guidelines, cutting under-triage from 58.8% to 10.8%.

Role
LLM inference lead (team of 3)
Year
2026
Result
0.901 QWK agreement with clinicians
CodePyTorchLlama-3TransformersFAISSRAG

The problem

Emergency-department triage decides who gets seen first. A model that under-triages (rates a patient as less urgent than they are) is the dangerous failure, so accuracy alone isn’t enough.

My approach

  • Inference: Llama-3-8B quantized to 4-bit NF4 so it runs on a single GPU, with a deterministic parsing cascade that turns free-form generations into valid triage labels. That gave 100% parse compliance over 2,000 generations.
  • Retrieval: dual FAISS indexes plus cross-encoder re-ranking to pull the most relevant clinical context into the prompt.
  • Evaluation: co-designed controlled ablations that switch each component on and off, measured with quadratic weighted kappa (QWK) against clinician labels and with the under-triage rate.

Results

Metric Best setup
QWK agreement with clinicians 0.901
Accuracy 89%
Under-triage rate 58.8% → 10.8%
Parse compliance 100% (2,000 generations)

What I learned

Constraining the output format mattered as much as the retrieval itself: a model you can’t reliably parse can’t be evaluated or trusted in a clinical workflow.