GEPA Prompt Optimization Lifts Jev's F1 From 69.1% to 79.7% on Medical Literature Task

matei_zaharia · x · 2026-09-21

A hands-on guide (reshared by Matei Zaharia) tests TypeSafe AI's 'System One' decision model Jev on identifying adverse drug event sentences in public medical literature. First pass: every Jev output passed format checks, but 54 of 300 test answers disagreed with labels — near-perfect recall on positives, many false positives, and occasional fully-confident wrong answers. Connecting GEPA, a prompt optimizer that proposes instruction revisions from training errors, clarified the evidence each sentence required (drug, harmful effect, relationship). On a fresh test set, F1 rose from 69.1% to 79.7% and probability error nearly halved, at the cost of two extra missed positives. Jev, released September 15, 2026, returns choices, scores and probabilities for agent-critical-path decisions (relevance checks, model routing, tool-call review); TypeSafe claims 193.6× faster and 444.6× cheaper in selected workflow evaluations. Key lesson: valid output ≠ trustworthy output; error-driven GEPA prompt revision is an effective domain-adaptation path. Notebooks and code are included.

Original post →

More from coding & agent

coding & agent channel →