← back to work
solo project

MedMemGraph

Role: Sole engineerPython · Property Graph · Clinical NLP

Graph-native longitudinal memory for clinical AI agents — it remembers a patient across admissions, answers by walking a fact graph, and can always show why it believes an answer.

PythonHydraDB (graph)Property graphClinical NLP

Context

Built for HackHydra — Track 03 (Memory & Context Retrieval). A clinical assistant that spans many hospital admissions needs real memory: it has to recall what happened last visit, compare across visits, and — critically in a medical setting — never make something up.

Problem

The default pattern, chunk-similarity RAG, ranks passages by embedding distance. That loses provenance (you can't trace an answer back to the fact that justified it) and it fails silently on absence — ask about something the record doesn't contain and a similarity search still returns the "closest" chunk, inviting a confident, wrong answer.

Approach

Results & what I learned

Honest scope: this is a hackathon prototype (~10 commits, Track 03) built on the HydraDB OSS graph engine (an AGPL-3.0 dependency) — a demonstration of the graph-memory approach, not a deployed clinical system. Retrieval quality is shown by construction (paths + refusals); I have not yet benchmarked it head-to-head against a vector-RAG baseline, which is the honest next step.