AboutWorkProjectsNotes
PT

say hi

 © 2026

  • SAPSAPSoftware Developer
  • MiHINMiHINSoftware Engineer
    • Data ingestion
    • Clinical RAG
      • The problem
      • What I built
      • Retrieval
      • Before → after

MiHINMiHINRAG · 2025

Mapping physician notes in minutes, not hours.

Clinicians spent about four hours mapping a physician's note into EHR fields. A Vertex AI RAG workflow does it in ten minutes, and most of the win came from fixing retrieval, not the model.

Company
MiHIN
Scope
Vertex AI RAG, FHIR, SPARQL
Role
Software Engineer
Timeline
2025
4 hr →
10 min
note to EHR mapping
61% →
88%
recall@20
−87%
records before search
48K
records searched
01

Four hours per note.

Turning a physician's free-text note into structured EHR fields was manual: read, search, fill, repeat. A first RAG attempt helped less than expected, because retrieval kept surfacing the wrong records.

02

Resolve, prune, then search.

Toggle between the old and new workflow, or click any step.

idle
Physician noteResolve entitiesFHIR · SPARQLGraph pre-filter−87% of recordsVector searchVertex AIMapped fieldsClinician reviewFastAPI · React

Vector searchVertex AI

Only the free text is embedded. Structured fields are filters, not part of the vector.

Click any step for details · Run walks a request through each step

03

Embed less, find more.

The first version embedded all eight fields of each record into one vector. The structured fields drowned out the clinical text, so similar-looking but wrong records ranked first.

Embedding only the free text, and using the rest as filters, lifted recall@20 from 61% to 88%. Toggle between the two and watch where the right record lands.

notePt c/o chest pain radiating to L arm x2 days. Hx HTN, on lisinopril.

  1. #1Follow-upHTN medication refill0.91
  2. #2Lab orderLipid panel0.89
  3. #3Chief complaintHeadache, 3 days0.88
  4. #4AllergiesPenicillin0.87
  5. #5VitalsBP 150/950.86

right record ranks

#27

missed: outside the top 20

recall@20, across 48K records

61%

The note and results are illustrative. Recall is the real measured number.

04

Where the four hours went.

Drag the playhead to compare both at the same moment.

beforeread the note
read the note
search the EHR
fill fields
after✓ done
resolve entities
pre-filter + search
clinician review
34%
old finishes at 240% · new at 10%Totals are real (about 4 hours to about 10 minutes). The split between steps is illustrative.
next case studySAP · Replacing a GPT pipeline with models we own.