Skip to main content

Checks

Checks lists everything Zyonix checks every document for, and what each check found in the last 14 days. It is also where administrators teach Zyonix new problem types, decide how much each check counts, manage the output format, and switch shadow mode.

Everyone can read this page. Only administrators change anything on it. Viewers and members see a note: An administrator adds problem types and changes how checks count.

The page has six panels, from top to bottom:

  1. Your problem types: checks people on your team described.
  2. Checks your agent reports: checks your developers report from the application's code.
  3. Checked automatically: checks that run on every document with no setup.
  4. From your ... format: the rules in your output format and the checks it adds to every value (only when your agent has an output format).
  5. Output format and rules: the output format file, its versions, and drafting one.
  6. Shadow mode: the calibration switch.

Columns you will see in every list​

The "Last 14 days" column​

What the check found on the documents kept from the last 14 days:

  • N documents failed: documents this check failed.
  • N to review: findings waiting for a person. Click to open Needs review.
  • #8, #10: the problems this check belongs to. Click a number to open the problem.
  • Nothing found: it ran and found nothing.
  • Files errors under its cause: shown for a problem type that watches error messages; it does not fail documents itself, it names the cause of errors that already failed.

How it counts​

Every check has a setting for how its findings count on new documents. Administrators change it with the selector; everyone else sees the current setting as text.

SettingWhat happens to a finding
As Zyonix decides (default)A certain finding fails the document and goes under Problems; a doubtful one becomes a question under Needs review.
Ask a personEven a certain finding becomes a question under Needs review, instead of a problem. Use it for a rule that is right most of the time but not always.
OffNo finding at all. The check still runs and its result is recorded, but nothing fails and nobody is asked. Use it for a check that does not fit your documents.

A change applies from the next document on, never to documents already checked. A message confirms it, for example "Invoice date": ask a person. It applies to new documents. A person's own answer (under Needs review, or a reported correct value) is never changed by this setting.

A dash (—) in this column means the check has no setting of its own.

Your problem types​

Problems you described yourself. Zyonix checks every new document for them.

ColumnShows
ProblemIts name, and under it what it watches, in words
CauseThe cause you chose, or Zyonix works it out
Last 14 daysWhat it found (see above)
How it countsSee above
Remove (admins)Stop checking for it

When there are none: No problem types of your own yet. Without an output format, the panel says you can still name the cause of an application error message, and that value checks need the format.

New problem type​

Use this when you found a mistake Zyonix does not catch, or you expect one. Administrators open the form with New problem type on this panel, or the same button on Problems. The form is titled New problem type: Describe a problem once; Zyonix then checks every new document for it.

The fields:

FieldWhat to enter
What should this problem be called?A name in your words, up to 120 characters, for example Invoice number has a letter O instead of zero. It is how the problem appears on Problems.
What should Zyonix watch?A value the AI extracted (needs an output format), or An error message from the application
Which valueThe field to check, from your output format
This value…The rule (see the list below). Only rules that fit the field's type are offered.
Compare withThe value to compare with, for rules that need one. For dates use YYYY-MM-DD. For must be one of, separate the options with commas.
That fieldFor rules that compare two fields: the other field
Your ruleFor follows my own rule (for developers): an expression, up to 1,000 characters, such as abs(subtotal + tax_amount - grand_total) <= 1
Only for some documents (optional, click to open)Check: Every document, or When (a field) is…; Value: the value that field must have. Leave Value empty to mean "when it is filled in".
When it happensMark the document as failed (it goes under Problems), or Ask a person to review it (it goes under Needs review)
How serious is it?Medium, High or Low
What usually causes it?A cause from the list, or Let Zyonix work it out
How to fix it (optional)What someone should do when it happens, up to 500 characters. It appears on the problem's page under What could fix it.

For An error message from the application, the form asks only for the name, The error message contains (part of the error text, such as quota exceeded, up to 500 characters) and What usually causes it? (you must choose a cause). Errors your application raises whose text contains it are then filed under that cause. This kind works even without an output format.

The rules you can choose in "This value…":

RuleFor fields of type
must be filled inany
must be exactly / must not beany
must be one of (separate with commas)any
must be the same as another fieldany
must be at least / must be at mostnumber or date
must not be more than another field / must not be less than another fieldnumber or date
must contain / must not contain / must start withtext
must have this many characterstext
follows my own rule (for developers)any

Test before you save. Click Test on past documents. Nothing is changed. Zyonix answers, for example: 3 past documents out of 120 would have failed this check., or None of the 120 past documents would have failed. That is fine if this has not happened yet. It also says how many documents did not have the value and would be skipped, what the check watches in words, and links to example documents. If some documents could not be checked in time, the rule is too slow: make it simpler.

Save. Click Save check. The message says Check saved. It runs on every new document.

What to know about problem types​

  • A problem type applies from the next document on. Documents already processed are not judged again (use Re-check kept documents below if you want that).
  • The cause you choose is used only where the evidence shows no other cause. Evidence comes first: a crash, a cut-off answer, or an empty document is reported as that, whatever your problem type says. A cause you chose is shown as suspected, never as proven.
  • Each of your problem types appears on Problems as its own card, in your words.
  • A value problem type becomes a rule in a new version of your output format.
If your developers keep the output format in a file

Saving a problem type writes a new version of the output format on the server. If your developers later upload an older copy of the file (from the website or with zyonix spec push), the problem types added here are removed. Ask them to download the current version first (Download below, or zyonix spec show). Saving also rewrites the file, so comments in it are lost in the new version; older versions keep them.

Remove a problem type​

  1. Click Remove on its row.
  2. Confirm with Remove check.

New documents are no longer checked for it. Documents and problems already recorded stay as they are. Rules that came from your output format file cannot be removed here; change the file instead.

Checks your agent reports​

Your developers can report checks from the application's own code:

  • zyonix.check("saved_to_database", ok) when the code knows whether something worked;
  • zyonix.flag("duplicate") when something went wrong.

A failed one becomes a problem under its own name. See the SDK reference.

ColumnShows
CheckThe name used in the code
RanHow many documents reported it
Last 14 daysWhat it found
How it countsSee above

When there are none: Your agent reports no checks yet.

Checked automatically​

Checks that run on every document with no setup:

  • exceptions raised by your agent's code, one problem per kind of error;
  • tools your agent calls that fail, one problem per tool;
  • model (AI) calls that fail and are not recovered by a retry or fallback;
  • model answers cut off at the token limit;
  • model answers that are not valid JSON;
  • answers where the model refuses (for a person to review);
  • answers that repeat the instructions (for a person to review);
  • answers that repeat themselves (for a person to review).
ColumnShows
What Zyonix watches forThe check in plain words
Last 14 daysWhat it found
How it countsSee above

From your output format​

Shown when your agent has an output format. The title names it, for example From your invoice format. It lists the rules written in your output format (such as line amounts add up to the total) and then the checks the format adds to every value:

  • required values are filled in;
  • values have the right type, such as a number where a number belongs;
  • values have the right format: dates, codes, allowed values;
  • line amounts add up: quantity times price, and the lines to the total;
  • values can be found in the document (for a person to review);
  • values are read from the right label in the document;
  • no placeholder such as N/A or TBD in place of a value;
  • values are in a plausible range (for a person to review);
  • the same document gets the same answer (for a person to review).
ColumnShows
CheckThe rule's description or expression, or the family of checks
Last 14 daysWhat it found
How it countsSee above

Output format and rules​

The output format (reliability spec) is a YAML file that describes what your application should return: its fields, their types, which are required, how each is found in the document, and the rules every document must pass. Value checks need it. Without one, Zyonix checks how documents run, not what the AI answered; the panel says so.

With a format, the panel says Version N describes your ... format and lists its versions:

ColumnShows
VersionThe version number, with Active on the one in use
ByWho uploaded it
WhenWhen it was uploaded

Buttons:

ButtonWhoWhat it does
DownloadEveryone, when there is a formatDownloads the active version as reliability-spec-vN.yaml
Draft from your documentsAdminsProposes a first format read from your delivered documents (see below)
Upload a new versionAdminsChoose a .yaml or .yml file. Zyonix checks it; if it is valid, it becomes the active version and applies to new documents. If not, a message says what is wrong.
Re-check kept documentsAdmins, when there is a formatChecks the documents of the last 14 days again with the active version (see below)

Draft from your documents​

Writing the format by hand is the slowest part of getting started. Zyonix can draft one from what your application already delivered. This needs documents sent with full capture.

  1. Run some documents through your application first.
  2. Click Draft from your documents. A window opens: Draft for and the format's name. It says how many delivered documents it read and how many fields it found.
  3. If your application returns more than one format, choose one in the selector. An agent checks one format at a time; documents of the other formats stay unchecked.
  4. Read the draft line by line. For each field it proposes the type, whether it is required (filled in nearly every time) and how it is looked up in the document. Each line says what it was based on, for example filled in 36 of 41. Labels the AI chooses (such as a category) and long notes are not looked up in the document. Fields it is unsure about are left out and named in a comment.
  5. To change something, click Download, edit the file, and upload it with Upload a new version. Or click Use this draft to make it active as it is.
  6. After Use this draft, Zyonix offers to re-check the kept documents: click Re-check documents to see what the new format finds on the last 14 days.

Nothing is activated until you click Use this draft or upload a file. Do this with shadow mode on: a new format's first findings need calibration too.

Re-check kept documents​

  1. Click Re-check kept documents.
  2. Read the window: Documents of the last 14 days that were checked with an older version are checked again with this one. Some may move to another problem or leave Needs review. People's answers stay.
  3. Click Re-check documents.

The message says how many documents will be checked again in the next minutes, or that every kept document was already checked with this version.

Shadow mode​

Zyonix's checks are tuned on example documents, not yet on yours. Shadow mode is for the first weeks on your documents (for example a pilot), so that nobody is alerted about a problem Zyonix may still be judging wrongly.

The panel says whether it is on (On since a date) or off (Off: problems are announced to your alert channels). Only administrators switch it, with Turn shadow mode on or Turn shadow mode off. Zyonix support can also switch it for you. Every switch is recorded with who made it.

What still happens: every document is checked. Problems, questions under Needs review and every count are recorded and shown on the website as usual.

What changes:

  • No alert reaches your channels (webhooks, Slack).
  • Every page shows a banner saying the results are being calibrated.

What you do meanwhile: answer the questions under Needs review. Each answer says whether a finding was right; together they measure Zyonix's accuracy on your documents. It also helps to open a handful of problems each week and ask: is this a mistake we care about? Set noisy checks to Ask a person or Off.

When to turn it off: when the problems it finds are ones your team would call a mistake. As a rule of thumb: about 95 of every 100 answered findings confirmed, over at least 100 answers. Turning it off is one click; alerts go out again from the next problem on.

Common tasks​

Stop a noisy check

  1. Find the check in one of the lists.
  2. In How it counts, choose Ask a person (to keep seeing it as questions) or Off.

Watch for a new mistake

  1. Click New problem type.
  2. Name it, choose the value and the rule, and choose Mark the document as failed or Ask a person to review it.
  3. Click Test on past documents, read the result, then Save check.

Set up value checks for the first time

  1. Make sure some documents arrived with full capture.
  2. Draft from your documents, read it, Use this draft.
  3. Re-check documents, and look at what it found on Problems and Needs review.
  4. Keep shadow mode on until the results look right.