Products · LLM Extraction V2

LLM as judge

A second, independent model check that catches the extractor's mistakes.

Planned, not builtModule 11 of 15

ProductRequirement EPICSections

Requirement EPIC

Epic
MVP2 · E10 · LLM as judge on extraction
Goal
a second, independent check that catches the extractor's mistakes.
Stories in this module
4

EXTRACTION-V2-E10-01 Judge node

  • AC1For each extracted field, the judge gets the document, the field name and its value (not the extractor's reasoning) and returns {verdict: correct|incorrect|unsure, reason, evidence_quote}.
  • AC2It uses prompt prompts/judge-field/v1.md and a model set separately from the extractor's.
  • AC3Calls are batched (several fields per call, grouped by page) to keep the added time to 30% or less.

EXTRACTION-V2-E10-02 Combined confidence and routing

  • AC1Final confidence = a documented formula of model confidence, rule checks and judge verdict (incorrect caps it at 0.2, unsure at 0.6). The formula is versioned.
  • AC2Review routing uses the combined score. The UI shows the judge's reason next to flagged fields.

Evals: JDG-1 judge agreement, JDG-2 routing recall with judge, JDG-3 flag rate, JDG-4 bias checks, JDG-5 added latency.

REVIEW-V2-E10-03 Judge vs human dashboard

  • AC1/admin/quality shows, for the last 30 days, **numbers only**: judge agreement with human decisions, the confusion matrix and the fields the judge most often gets wrong. No field value, document or user appears (Nikhil's rule on #41; small-group rules in REVIEW-V2-E10-04).
  • AC2The admin can add the cases where the judge and the human disagree to Review's eval candidates, **inside Review's database**, for the admin to approve as in REVIEW-V1-E4-04. Nothing is exported to files or to the repository, and the candidates are deleted with their owner's account (decisions on #41).

REVIEW-V2-E10-04 Privacy rules for small groups in reports

Decided by Nikhil on 20 Nov 2026 (PR #81): MVP1's accuracy report shows every count as it is, so it can be tested with few users; MVP2 adds rules so a small count can never point to one person. As the owner, I want reports built from real users' work to stay anonymous as the number of testers grows, so a number can never reveal something about one person's document.

  • AC1In every admin report built from users' data (the accuracy report of REVIEW-V1-E4-04 and the judge vs human dashboard of REVIEW-V2-E10-03), a row whose numbers come from **fewer than 2 different people** is hidden or merged into "Other". The threshold is configuration.
  • AC2A count from enough people is shown as it is, however small, so the report stays useful with few testers.
  • AC3Hidden rows are still counted in the totals, and the report says how many rows were hidden and why.
  • AC4Unit tests cover the edge cases: one person with many corrections, many people with one each, and a total that would let a hidden row be worked out by subtraction.