Skip to content

0.4.12: readanydoc evals, six new public test sets

Latest

Choose a tag to compare

@arpitpatel25 arpitpatel25 released this 04 Dec 18:17
d45390e

Parsing and extraction are unchanged from 0.4.11.

  • readanydoc evals: eval sets from your own documents and records. init builds a set from a folder of
    documents and an export of their true values (CSV, JSON, JSONL), with a field mapping in evals.yaml; run scores
    ReadAnyDoc, another system, or saved outputs of any parser (--outputs, no model call); view opens the report.
    Plain files on your machine; nothing is hosted or uploaded.
  • Capture from live use. readanydoc.extract(..., eval_set="name") (or READANYDOC_EVAL_SET) keeps the document
    and output as a candidate; readanydoc.evals.add_feedback(result.id, expected=... | correct=True) makes it a scored
    example. A candidate is never scored before feedback. ExtractResult.id is new.
  • For CI: readanydoc evals run <set> --fail-under 95 and evals.assert_eval(name, min_score=0.95) for pytest.
  • Scorers on their own: FieldMatch, TableMatch, ValueMatch, called as scorer(output, expected).
  • Six new public test sets (readanydoc evals list): sec-10k (20 annual reports against the companies' own
    SEC XBRL numbers), forms (FUNSD), forms-multilingual (XFUND, seven languages), registration-forms and
    ad-buy-forms (VRDU), tax-forms (IRS W-2, 1099-NEC and W-9 filled with invented values, half as scans). No
    ReadAnyDoc scores are published for them yet. Several allow research or non-commercial use only: check the licence
    shown by list.
  • Scoring: dates printed as 28-Mar-2026, 1st March 26 or 2026/03/28 now match the same day in another format.
  • New dependency: pyyaml.
  • Guide: https://readanydoc.com/docs/guides/evals/