Skip to content

Preserve extraction confidence when citation grounding is unusable - #169

Merged
xujustinj merged 4 commits into
mainfrom
xujustinj/reducto-confidence-without-box
Nov 21, 2026
Merged

xujustinj merged 4 commits into
mainfrom
xujustinj/reducto-confidence-without-box

Conversation

@xujustinj

@xujustinj xujustinj commented Nov 20, 2026 •

Copy link
Copy Markdown

What changed

  • Preserve provider-returned confidence independently of citation geometry for Reducto, LlamaExtract, Extend, LandingAI, and Azure Content Understanding.
  • Use Pulse’s schema_output.confidence as the field confidence. Scores survive missing citations, and fields without a native score remain unscored.
  • Give the three public Reducto pipelines one shared continuous-confidence configuration. Reducto’s value score uses the minimum available numerical extraction confidence per field. A field without a returned number remains unscored in continuous mode.

Why

A Reducto response returned extraction confidence of 0.996 on an out-of-page citation. Rejecting the box also discarded the score. The same failure pattern affects other providers, including cases where a box has no usable page or a field has no source region. Pulse returns field scores separately from the OCR and table-cell scores on its citation anchors. For example, a field with schema confidence 0.0 and an anchor score of 0.9 now keeps 0.0.

Testing

  • Regression tests cover malformed or missing grounding and a genuine zero score. The Pulse regression failed before the change and passed after it.
  • 287 provider and scorer tests passed on the preceding revision. After the Pulse update, 80 focused tests, Ruff, and the diff check passed.
  • Two saved Pulse responses preserved extracted values and grounding and emitted the exact schema scores.
  • Four saved Reducto responses produced identical continuous-confidence and grounding output before and after the multi-provider change.
  • Combined cleanly with pricing PR Use Reducto’s reported usage for Extract cost #166. All nine pricing tests passed on the combined code.

@xujustinj xujustinj changed the title Keep Reducto confidence when citation boxes are invalid Preserve extraction confidence when citation grounding is unusable Nov 21, 2026
@xujustinj
xujustinj merged commit ab573f7 into main Nov 21, 2026
3 checks passed
@xujustinj
xujustinj deleted the xujustinj/reducto-confidence-without-box branch November 21, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant