Error tracking for AI document extraction

Zyonix checks every invoice, receipt and form your AI reads, finds the wrong ones, shows why, and tests your fix on the recorded documents before you ship it. Five calls in Python.

Records calls to OpenAI, Anthropic, LangChain, LlamaIndex, LiteLLM and AWS Bedrock.

Every wrong document, grouped by cause

Problems holds only certain findings, sorted into 22 kinds such as “The AI made up values”. Open one to see the document, the wrong value and the step that produced it.

See how a fix is tested

How Zyonix gets a wrong invoice fixed

  1. Checks each document as its run ends

    A certain finding opens a problem. A doubtful value goes to Needs review, where a person answers yes or no.

  2. Traces the error to the step that made it

    Zyonix follows the wrong total back through the run's steps and names the cause it can show from the trace.

  3. Tests the fix on recorded documents

    zyonix replay --fix re-runs the failing documents on your machine. The server judges the results, a person approves, and Zyonix watches that it holds.

See the five calls in Python

Checks on every document. More once you describe your output.

Catches AI errors from the first run

Call errors, cut-off answers, invalid JSON and crashes, with no setup.

Checks on INV-20421.pdf
2 of 5
  • The AI call answered
  • The answer was not cut off
  • The answer is valid JSON
  • The run did not crash
  • Values match your format

Checks values against your format

Required values, formats, allowed values, rules, and values not found in the document.

Invoice rules
4 of 5 on
  • Total equals the sum of the linesBusiness rule, to the cent
  • Supplier name is in the documentFound in the text, not made up
  • Currency is EUR, USD or GBPAllowed values
  • Due date is a dateFormat
  • Invoice number is presentRequired value

Tries a new problem type on past documents

Add your own problem type in a form and see what it would have flagged before it goes live.

New type: VAT rate is 0, 7 or 19% Last 14 days
11 Trial run past documents it would flag

Sends doubtful document values to a person

Uncertain findings wait in Needs review for a yes or a no. Problems holds only the certain ones.

  • Needs reviewINV-20419.pdf: right supplier?Answer
  • FRA reviewer answered noreceipt-0930.jpg, the date is wrong
  • 2 answers turned into findingsBoth added to problem #7
invoices with a planted mistake caught1
152 of 152
clean invoices flagged by mistake1
0 of 260
kinds of planted mistake in the test set1
19

Five calls in your Python code

Wrap the run and its steps, then hand Zyonix the output and any correction. The SDK sends in the background and never raises into your app, so your output is the same when Zyonix is down.

Python 3.10 and later. A ready prompt lets Claude Code or Cursor add the five calls for you.

OpenAI Anthropic LangChain LlamaIndex LiteLLM AWS Bedrock
extract.py review.py 5 calls
import zyonix
zyonix.init(service="invoices")
@zyonix.run(doc_id=file_name)
def handle(f):
    rec = extract(ocr(f))
    return zyonix.output(rec)
@zyonix.step("extract",
    replayable=True)
def extract(text): ...
zyonix.feedback(doc_id,
    corrected=fixed)
One run for each document.

Document text stays on your network

Zyonix runs on your own server with Docker Compose and sends nothing outside your network. Personal numbers are masked inside your process before anything leaves it.

Read the questions on data

Masked in your process

Email addresses, phone numbers, IBANs and card numbers.

Fingerprints by default

Full document text only when you turn it on.

Deleted after 14 days

Documents go; the daily counts stay.

Your own server

Docker Compose, no outside connection.

Team access to Zyonix in three roles

Invite people as viewer, member or admin. Two-step sign-in can be required for each agent, and removing someone's access takes one click.

Keys for the SDK, CI and coding agents stay apart from the keys people sign in with.

Questions

Python 3.10 and later Docker Compose on your server

Which languages does Zyonix support?

Python 3.10 and later. A pipeline in another language cannot send runs today.

Does Zyonix need my output format?

Only for value checks. Call errors, cut-off answers, invalid JSON and crashes need none.

What document text leaves my servers?

Nothing leaves your network. By default only fingerprints of document text reach Zyonix.

What happens to my app if Zyonix is down?

Nothing changes. The SDK sends in the background and never raises into your code.

Who approves a fix to the AI extraction?

A person on your team, once the server has judged the replayed results.