Products · LLM Extraction V1

Extraction with Claude

Claude turns a document into structured data, with a confidence score and evidence for every field.

Version 1 · One Claude call per documentDesigned, not builtModule 4 of 15

DesignUser JourneySections

User Journey

What a person sees and what the system does while a document is read, in version 1.

Watch a document being read

Starts when: The app starts extraction after the upload.

  1. The personSees 'Reading your document' with four steps: getting the file, reading it, checking the numbers, saving.

    The systemExtraction records the job as queued and starts it in the background.

  2. The personWatches each step tick off, without the page reloading.

    The systemThe page asks for the job's status every 2 seconds; each step is marked done as it ends.

  3. The personSees the document on the left and the fields on the right, each with a coloured confidence badge.

    The systemClaude has read the document; the answer passed its schema check; the rule checks ran and the fields were saved. The job is extracted.

  4. The personSees 'Review 3 flagged fields' or, if none, 'Continue to results'.

    The systemThe app reads the flagged count from the job and offers the next step.

Result: Every value on the invoice is on screen, with how sure the system is and where it came from. Typically under a minute for a short invoice.

Check where a value came from

Starts when: Taps a field.

  1. The personTaps the Total field, marked red.

    The systemThe field's page, quote and reasons are already on the page from the fields request.

  2. The personSees 'TOTAL DUE $1,240.00, page 2' and the reason 'Total ≠ subtotal + tax (1,150.00 + 80.00 = 1,230.00)'.

    The systemNothing new is fetched.

  3. The personOn a computer, sees the document jump to page 2.

    The systemThe app moves its document preview to the field's page.

Result: The person can judge the value themselves, with the evidence in front of them.

Extraction fails, then a retry works

Starts when: The model is overloaded.

  1. The personSees the reading step take a little longer than usual.

    The systemClaude reported overload. Extraction waits 2 seconds and tries again, then 8 seconds and tries once more.

  2. The personSees 'Reading this document is taking longer than usual. Try again in a few minutes.' and a Retry button.

    The systemBoth retries failed. The job is failed with model_unavailable, marked retryable. Nothing was charged twice.

  3. The personTaps Retry a few minutes later.

    The systemThe app starts a new job for the same file. The failed job stays in the history.

  4. The personSees the steps run again and the fields appear.

    The systemThe new job succeeds.

Result: The person recovers with one tap. Each attempt is recorded with its cost.

Look at cost and speed

Starts when: Opens the jobs page.

  1. The personOpens /admin/jobs.

    The systemExtraction checks the caller is an admin; anyone else gets 'not found'.

  2. The personSees the last 100 jobs with model, prompt version, pages, tokens, cost and time, and the failure rate, average cost and slowest times at the top.

    The systemThe figures come from each job's record. No document content or file names are shown.

Result: The owner can see whether extraction stays under its targets: 60 seconds and $0.10 per document.

When something goes wrong

The model is overloaded or rate-limited after both retriesmodel_unavailable
'Reading this document is taking longer than usual. Try again in a few minutes.' with Retry.
The model's answer does not fit the schema, even after one repairoutput_invalid
'We couldn't read this document reliably. Try again, or upload a clearer copy.'
The file cannot be opened, for example a damaged or password-protected PDFdocument_unreadable
'We couldn't open this document. Upload another copy.'
No text is found, even by OCR: a blank page, or a photo too blurred or dark to readno_text_found
'No text found' and Choose another file. No Retry: the same file would give the same result.
The job takes longer than its limittimed_out
'Reading took too long. Try again.' with Retry.
The file was deleted or expired before it could be readfile_unavailable
'This file is no longer available. Upload it again.'
Starts extraction on a file still uploadingfile_not_ready
'This file is still uploading.'
Asks for fields while the job is still runningjob_not_finished
The steps continue; the fields appear when ready.
Follows a link to someone else's jobjob_not_found
'Not found.'
Upload cannot be reached when startingdependency_unavailable
'Something went wrong starting. Try again.'
Starts more than 10 extractions in a minuterate_limited
'Too many at once. Wait a moment and try again.'