Skip to content

Screens / Judging the output

Extraction review

Check the values an agent extracted from a document against the page, correct what's wrong and send what the person accepted.

For: Whoever signs off what an extraction agent read: a clerk entering invoices, a claims handler, a reviewer in finance or legal.

Markdown

3 ways to lay it out

1. Fields beside the page

Pick it when: The default: one document of a few pages, with a list of fields to check one by one.

The page on the left with boxes over the values the agent found; the fields on the right, each with its value, confidence and Accept or Change; the summary and Send review at the foot.
  • Extraction reviewProThe fields beside the pages: value, confidence, where it came from, Accept or Change, and Send review with exactly what was decided.
  • Document viewerProThe pages your app rendered, with the agent's boxes over them; selecting a box picks out its field.
  • Confidence markProHow sure the extraction is, with what it rests on.
  • Change hashProThe sha256 of the reviews, the same in the browser and on the server, so the record holds exactly what was accepted.
Install fields beside the page

Pro and Premium items need a licence key; free ones install as they are.

2. A queue of documents

Pick it when: Documents arrive faster than one person opens them, and each extraction waits until someone reviews it.

A table of documents with how many fields each has open; opening one fills the rest of the screen with its review.
  • Document progress queueProThe batch as the agent works through it: each document queued, working with its stage, done, or failed with the reason and Retry.
  • Data tableProThe documents waiting, with search, sort and filters over them.
  • Assignee pickerProWho reviews a document, a person or an agent, with the load and availability your app passes; nobody is suggested.
  • Extraction reviewProThe opened document's fields beside its pages.
  • useKeyboardReviewProJ and K to move, Y to keep and N to drop, for a list of extracted rows your app draws itself, such as an invoice's line items.
  • Page stateFreeAn empty queue, or a document that couldn't be loaded, with one next step.
Install a queue of documents

Pro and Premium items need a licence key; free ones install as they are.

3. In the conversation

Pick it when: The agent read the document during a chat, and the person checks it without leaving the thread.

The thread on the left; a side panel tab holds the pages above the fields to review.
  • ThreadFreeThe conversation in which the agent read the document.
  • Side panelProThe panel beside the thread; the review is one of its tabs.
  • Extraction reviewProThe pages above the fields when the panel is narrow.
Install in the conversation

Pro and Premium items need a licence key; free ones install as they are.

Rules that matter most here

Already covered elsewhere

Brief for a coding agent

Paste this into the agent that builds the screen. The docs MCP server returns the same text from get_screen.

Build extraction review with Candor UI.
Render the document's pages in your app (pdf.js onto a canvas, or images from your server) and pass them to ExtractionReview, which shows them with DocumentViewer.
Give each page its width and height in its own units, and each field's region in the same units, measured from the page's top-left corner.
Draw only the page on screen: render it when onPageChange names it, and mark it loading until it is drawn and as an error with the reason if it can't be.
Pass each field's confidence with its basis from the extraction; leave both out when there are none, and leave out a region the extraction didn't record.
Name the agent from your app's data with the agent prop, never from model output.
Start with nothing accepted. Send the reviews onSubmit gives you with their changeHash, and check the hash on your server before saving.
Pass locked with the reason when the person can read the fields but not decide them.
For a batch, show DocumentProgressQueue while the agent works through it: it never shows time left, and a stage's bar only when your pipeline measured how far it is; give each finished document a reviewer with AssigneePicker.
For a list of extracted rows you draw yourself, useKeyboardReview gives it the same keys: J and K, Y keep, N drop, U undo.

Start from the "Fields beside the page" layout: The page on the left with boxes over the values the agent found; the fields on the right, each with its value, confidence and Accept or Change; the summary and Send review at the foot.
Candor items: extraction-review (https://candor.themethodic.com/docs/extraction-review.md), document-viewer (https://candor.themethodic.com/docs/document-viewer.md), confidence-mark (https://candor.themethodic.com/docs/confidence-mark.md), change-hash (https://candor.themethodic.com/docs/change-hash.md).
Install: npx candor-ui add extraction-review document-viewer confidence-mark change-hash
Read each item's docs before using it and take its props from there; don't guess them. Pro and Premium items need the person's licence key, which they add with `npx candor-ui key <key>`; don't ask for it.