Skip to main content

Review and feedback

Some findings are uncertain: a check could not confirm a value (for example the value was not found in the document), or a check is set to "ask a person". Those go to the review queue instead of the problem list. A person's answer becomes evidence: it confirms or clears the finding and the run's result and issues are updated.

Feedback is the other way round: you tell Zyonix that a document's output was right or wrong, with the corrected record if you have it. That is ground truth for the whole document.

zyonix review list​

The review tasks. zyonix review on its own is the same command.

zyonix review
zyonix review list --check grounding:invoice_date
zyonix review list --all
zyonix review list --status decided --limit 100
OptionDefaultWhat it does
--statusopenopen, decided or closed
--limit N50how many tasks
--check KEYallonly the tasks of this check, for example grounding:invoice_date
--allofflist every task. By default a check with more than 3 tasks is collapsed into one line

Who may run it: any reader.

How to read it: a table TASK, RUN, DOC, CHECK, FIELD, VALUE, WHY. Checks with many tasks (usually one cause) appear under Collapsed with their task and run counts and an example task; use --check KEY to expand one.

zyonix review show​

One task with its evidence: the run, document, check (with its tier and reason), field and value, the source text around the value (the match in [[double brackets]]), and the output record.

zyonix review show 12
OptionWhat it does
TASKthe task number

Who may run it: any reader.

The Next block of an open task lists the three answers below and zyonix runs show for the whole run.

zyonix review confirm​

The finding is right: the output is wrong.

zyonix review confirm 12

zyonix review reject​

The finding is wrong: the output is fine. This answers this one finding only.

zyonix review reject 12

zyonix review correct​

The output is wrong, and here is the right record.

zyonix review correct 12 --file fixed.json
zyonix review correct 12 --json-record '{"invoice_no": "1042", "total": 1190.0}'
cat fixed.json | zyonix review correct 12 --file -
OptionWhat it does
TASKthe task number
--file FILEa JSON file with the corrected record (- reads standard input)
--json-record JSONthe corrected record inline

Give exactly one of --file and --json-record.

Who may run confirm, reject and correct: administrator.

Output (all three): task 12: confirm (run 3c70b5c68036); detection re-runs for this document, then a Next block to the remaining tasks and the issue list. Issues update once Zyonix has attributed the answer.

zyonix feedback​

Record feedback on a document's output, or list the feedback it already has.

zyonix feedback INV-1042 # list its feedback
zyonix feedback INV-1042 --verdict correct
zyonix feedback INV-1042 --verdict wrong --file fixed.json --run 3c70b5c68036
zyonix feedback INV-1042 --json-record '{"total": 1190.0}' --reviewer "Asha (finance)"
OptionWhat it does
DOC_IDthe document id (as your application names it)
--verdictcorrect or wrong. With a corrected record and no verdict, wrong is assumed
--file FILEa JSON file with the corrected record (- reads standard input)
--json-record JSONthe corrected record inline
--run RUNthe run (trace id) this feedback is about, when the document has several
--reviewer NAMEwho is giving it

With none of --verdict, --file and --json-record the command lists the document's feedback: ID, WHEN, VERDICT, SOURCE, REVIEWER, RUN, CORRECTED.

Who may run it: listing, any reader. Recording, member (or an sdk key, which your application can use to send feedback from production).

Output: feedback for INV-1042 recorded (wrong); detection re-runs for it.

Feedback or review?

A feedback verdict speaks for the whole document. zyonix review reject answers one finding only. Use feedback when you know the right output; use review to answer the question Zyonix asked.