Skip to content
All work

Graph-Native Retrieval for Clinical LLM Agents

Research into why AI agents get lost in linked health records, and the surprisingly small change that helped most.

Role
Student researcher (solo)
Status
Results under wraps
Course
EECS 4070 Directed Studies
Lab
York Data Mining Lab
Supervisor
Prof. Manos Papagelis
Timeline
Fall 2026
Stack
PythonFHIRBLAZELiteLLMOpenAI APIpandas

The story

AI agents that answer clinical questions stumble when one health record only points to another, like a prescription pointing to its drug. I built a tool that follows those links for the agent. Then I tested it the strict way: a plan fixed before the main runs, and 1,489 agent runs on a public benchmark. On its own, the tool made no measurable difference. The change that did fits in one sentence. I’m keeping it under wraps until it’s confirmed.

medicationReferenceMedicationRequestMedicationsubjectPatient
A prescription record points to the patient and to a separate drug record.

In numbers

  • 1,489 agent runs
  • 928,935 health records for 100 patients
  • 2,931 benchmark questions

Test plan fixed before the main runs

Contains information from the MIMIC‑IV Clinical Database Demo on FHIR (v2.1.0) (opens in a new tab), which is made available here under the Open Database License (ODbL) (opens in a new tab). Benchmark: FHIR‑AgentBench (opens in a new tab) (Lee et al., ML4H 2025).