Skip to content
AI Learning Ground Start learning

News ·

Document Review with Unsiloed and TypeSafe Jev

A tutorial shows how to combine Unsiloed document extraction with TypeSafe's Jev to flag medication-list rows for human review using OCR confidence scores and typed plausibility judgments.

Document Review with Unsiloed and TypeSafe Jev
Image: Hacker News

The walkthrough builds a document-review pipeline for a medication list. Unsiloed extracts structured fields, returns citation bounding boxes, and provides two confidence scores per field: extraction_score for the value itself and grounding_score for whether it was located in the document. Jev then evaluates focused questions against that extracted state, without seeing the image or the Unsiloed scores.

Jev questions return typed answers. A Noul returns the probability a statement is true (0.04 means a 4% chance of yes, not 4% confidence); Choice picks from named options and Score evaluates an ordered rubric, both with a probability distribution and confidence value. Each question has an ID (matching a row ID like row-5) so answers can be matched back to extracted rows; the ID is also included in the instructions since question IDs are not sent to the model. Requests are posted as JSON to https://api.typesafe.ai/v1/systemone with a Bearer API key kept server-side.

In the demo, one cetirizine dose is obscured by a coffee stain (extraction 0.74, grounding 0.76, Jev plausibility 0.94) and is flagged by the reading check, while an ibuprofen row reads cleanly (both scores 0.99) but gets a Jev plausibility of 0.04 and is flagged as implausible. Rules send a row to review when reading score is below 0.90 or plausibility below 0.50; a plausible reading never cancels a low OCR score, since each check catches failures the other misses. The example cutoffs should be tested against manually reviewed documents before production use.

For builders, the pattern shows how to pair extraction confidence with model judgment to catch both misread and correctly-read-but-wrong data, and how typed, ID-matched answers make routing to human review deterministic and auditable.

References

Read the full story at Hacker News ↗Like, save or discuss on Buzz

#community #signals