Skip to content

Changelog

0.4.9 (2026-11-25)

  • readanydoc bench run sec-filings: 16 companies' 10-Qs checked against the numbers each company tagged in its SEC filing (XBRL), so the answer key needs no hand labels. Scored by code (readanydoc/bench/sec.py): tagged values found, and extracted values the company also tagged. 0.4.8 scores 93.9% found, 89.2% right.
  • --replay DIR and --replay-only on readanydoc bench: re-test a code change on the same model answers, paying only for calls whose request changed, or nothing at all.
  • Bench reports show how often values labelled high and low confidence were right.
  • research/benchmarks/charts.py: ChartParse-Bench (58 charts) run and scored in one script.

0.4.8 (2026-11-25)

  • Very large page images (over 50 MP or 15,000 px, and any image the API would refuse) are shrunk before reading instead of failing. OmniDocBench (1,651 pages): text error 0.073 -> 0.050, tables (TEDS) 87.0 -> 88.1, reading-order error 0.162 -> 0.142, now ahead of Reducto on all three.
  • Block labels tidied after reading, no model call: Key Value only on form-like pages (3+ of them), page numbers the read left out added from the text layer (or local OCR on scans), picture captions in Chinese recognised as figures. OmniDocBench layout: block types right 82.1 -> 83.4 (Reducto 84.6), precision 85.7 -> 86.3; forms unchanged.
  • Charts: line, area and scatter series without data labels are sampled densely. Chart benchmark (58 charts): score 0.71 -> 0.83, series found 79% -> 93%, value error unchanged.
  • Extraction confidence is measured: a number that disagrees with another value for the same thing (same metric, period, segment) is marked low, and extract_confidence is the share of such values that were right on the benchmarks. 10-Qs: values marked high 94.5% right, low 78.0% (before: nearly all high, 89.2%). Labels are only ever lowered. Extracted values themselves are unchanged.
  • Tested and not changed: cross-page tables, degraded scans, contract cross-references, removing conflicting 10-Q values. Details in docs/decisions.md.

0.4.7 (2026-11-22)

  • Running page headers, footers, page numbers and margin line numbers are labelled by the page read itself in the engine mode: the read wraps them in <page-header>, <page-footer>, <page-number>, <line-number>, and they come back as Header / Footer / Page Number blocks with the tags removed. The text is kept, only typed. Before, a one-page document had no repetition to detect them by, and letterheads, running titles merged into a paragraph and footer lines inside other blocks were left in the body. Same one model call per page, no extra cost.
  • olmOCR-bench (1,403 pages, official tests): 84.3 -> 85.4; headers and footers 81.1 -> 90.3 (Reducto 90.1). On the 1,263 pages never used in development: 84.0 -> 85.2. Tables 92.2 -> 89.8, mostly run-to-run variation (one screenshot of a table now reads as a figure). The other benchmarks are unchanged from 0.4.5. Details in docs/decisions.md.
  • model-only is unchanged.

0.4.6 (2026-11-20)

  • readanydoc bench scores schema validity: the share of outputs that pass the task's JSON Schema, checked by the standard jsonschema validator (independent of ReadAnyDoc's own code), counting null for a value the document does not give as valid; a strict figure is reported next to it. Shown in the report and the command-line summary.
  • New test set contracts: 510 commercial contracts from CUAD (The Atticus Project, CC-BY-4.0), scored against the lawyers' answers: title, parties, dates, governing law and 12 kinds of clause.
  • Benchmarks page rewritten with ReadAnyDoc against Reducto on parsing and extraction (long reports, quarterly filings, credit agreements, research papers, invoices, contracts...), modes, schema validity, split, classify and edit. Per-document results in results/extraction.csv.

0.4.5 (2026-11-20)

  • Values the output left out are now warned about by default. printed_but_empty and row_not_extracted (code only, no model call) are listed in warnings on every extraction, without review. Repeated hits on one field (a date in every signature block) are one line with a count. Turn it off with left_out_warnings=False (Python), --no-left-out-warnings (CLI) or settings.left_out_warnings: false. The noisier review flags (not_found_on_page and the rest) stay behind review. On 52 saved real outputs the warning appears about 0.1 times per document, as measured for 0.4.4.

0.4.4 (2026-11-19)

  • Review flags values the output left out, by code with no model call: printed_but_empty (a field is empty but the document prints a value for it that nothing took, for example a dropped billing contact) and row_not_extracted (a list took some rows of a table and left another out). They replace list_may_be_incomplete. On planted misses in 47 documents: 84-100% of emptied lists and 89-95% of blanked fields caught, about 0.1 flags per document on real outputs. What it does not catch, and the model-based option we did not build, are in the extraction guide ("Values the output left out").

0.4.3 (2026-11-19)

  • fill_required (Python, CLI --fill-required, MCP, settings.fill_required): which required fields always get a value. "choices" (default, as in 0.4.2): required yes/no and enum fields. True: also every required number and text field. A list of field paths: the choices and those fields. False: none. Forced numbers and text may be guesses: with review, each one not printed in the document is flagged filled_because_required. On a pack of 5 order forms, True scored 98.3% of fields right against 100% for the default (it filled end dates the answer key leaves empty).
  • Review: a total row whose label spans the columns ("Monthly recurring | USD 1,500.00") no longer counts as a missing list item.

0.4.2 (2026-11-19)

From a user's test of 0.4.0 on a pack of 5 order forms (their scorer: 97.9% of fields right). After these fixes, one run: 534 of 534 fields right, $0.012-0.015 per form.

  • Required yes/no and enum fields come back in the schema's type. A field the schema requires and does not allow null (a boolean, an enum) has no empty choice: the model has to answer it, so the output passes the schema's own validation (4 of 5 forms returned null for a required boolean). In the coded format such fields are marked "always answer". An optional section the document does not have is still null, and a list item is never made up for such a field. Numbers and text are never forced: a required one the document does not give stays null, with a warning.
  • Alternatives (alternatives=True) come back in the field's own format and type ("2026-03-01", 4500), with the printed text kept as printed.
  • Review: no not_found_on_page for enum fields (a category the model picks is never printed as such); no list_may_be_incomplete for a total row under the items; "&" in a name is matched against "&" in the parsed table (a printed name was flagged as not printed).

0.4.1 (2026-11-19)

  • readanydoc bench: a small sample now covers the set's hard documents (photos, scans, handwriting, multi-page) and mixes difficulties, instead of the first clean PDFs.
  • BENCHMARKS.md: a 20-invoice extraction run against Reducto and a plain model.

0.4.0 (2026-11-19)

Test it yourself: compare ReadAnyDoc with other systems on public test sets or your own documents.

  • readanydoc bench: compare ReadAnyDoc with Reducto, a plain model call or its own other modes, on 8 public test sets (invoices, receipts, quarterly reports, credit agreements, research papers, resumes, result tables, long reports) or on your own documents, with your own keys. Cost estimate and confirmation before spending, a budget cap, resumable runs, scoring by code against answer keys, and an HTML report with every system's citation boxes on the page. Also as MCP tools (list_test_sets, run_test) and in Python (readanydoc.bench).

0.3.0 (2026-11-19)

Every extraction call is enforced by the API, whatever the schema's size, and reads one cached copy of the document; citations point where a person checking a value would look; and a cheaper one-stage mode.

  • Enforced output at any size. A schema the API refuses as one structured-output call is asked in one fixed answer format ({"values": [{"code", "item", "value"}]}, codes from your schema's own fields), the same in every call, and turned back into your exact shape. No call is ever made just to fix the shape.
  • The document is cached within a run: after the first group of fields, every group reads it at a tenth of the price. Nothing is reused between runs.
  • Page parts are sized in tokens: part_tokens (default 30,000, capped by the model's own limit; extract(..., part_tokens=...), settings.part_tokens, MCP part_tokens). Measured on a 43-page 10-Q: 30,000 kept the accuracy of small parts at lower cost; one 43-page part lost a third of the values.
  • Model limits (context, output, price jump, prices) come from a snapshot of LiteLLM's public model list, about 4,300 models, or an OpenAI-compatible server's /models; your own file in READANYDOC_MODEL_LIMITS overrides them. An unknown model is an error naming part_tokens, never a guess. The output limit is the model's own.
  • One log line per run with every setting chosen (readanydoc logger, extract settings: {...}), and READANYDOC_TRACE=<file.jsonl>: one line per model call (tokens, cache reads and writes, cost, seconds, why the call was made, the reply) and per decision.
  • A value stated once for a whole table or page (a unit, "in thousands", a period in a heading) is written on every item it covers; of two copies of the same list item, the less complete one is dropped; names are copied in full.
  • Citations: the table the model read each row from is kept across page parts; worked-out values (a period from a column heading, a scale from "in millions", a code from a name) are boxed on the printed words they come from; a category chosen from your schema's list is never boxed on the same word elsewhere; a number is matched only as a whole number; a short value printed in several places is not boxed at a guess. On a 10-Q, numbers boxed on the right row: 94% (Reducto 81%); category boxes on the cover page: 128 to 0.
  • extract(..., parse=False) (MCP parse_first=false): one stage, off by default. The model reads the file itself (PDF, scans, images, Office files) and citations come from the PDF's own words or local OCR, with no model. About half the cost and 2.5 times faster on a 43-page 10-Q, but less accurate (102-110 values against 99-129) and with 3-4 times fewer citations.
  • A value the document does not give stays null, also for a required field: never an invented value.

Full research record: Extraction research.

0.2.0 (2026-11-18)

Extraction costs what the answer costs again, and stays reliable on schemas of any size. Breaking: the field_report response key (report in Python, fields_to_check in MCP) is gone; its useful parts are opt-in.

  • The model writes only your schema's fields. 0.1.8 asked for a source, a printed form and notes for every value in the same reply, also with citations off; on large schemas that reply ran past the length limit, and the recovery (pages and fields in halves) multiplied the calls. That is removed.
  • Structured outputs for any schema size: your schema is rewritten in code (every field required, "" for a value the document does not have, numbers and yes/no as text), the API enforces it, and the answer is turned back into your types and checked against your schema, patterns and ranges included. Schemas over 40 fields are asked in groups before any call, in parallel, each seeing the whole document; a group the API will not compile is split further (a one-token check, remembered on disk per schema).
  • Citations are found by code: each value is looked up on the parsed pages, including dates and numbers printed another way (03/04/2025, $4,200.00); a value printed in several places is cited next to the rest of its object (one short _block label per object, removed from the result). A value whose words were not placed by the parser is found in the page's own words (form amounts printed apart from their labels).
  • A reply that is cut off is split by fields, lists apart from the rest, with all pages in view; only a single long list is split by pages. A field is reported as unreadable only if it is still empty at the end.
  • Opt-in: review=True (settings.review) lists values to check, found by code with no model call (not_found_on_page, ambiguous_date, struck_through, void_page, list_may_be_incomplete counted on rows with an amount, ...); alternatives=True or a list of fields (settings.alternatives) returns other values the document gives for a field, with where they are printed; derived_values=False asks for printed values only. CLI: --review, --alternatives [FIELD ...], --printed-only.
  • No more "inferred" lines in warnings, and no automatic re-ask for lists that look short.
  • Enum values that differ only in case are matched ("PAID" to "paid").
  • Each group of a large schema is told which fields are asked separately, so neighbouring objects (buyer and seller) are not mixed up. An optional object the document does not have comes back as null, and "null" written as text is null where your schema allows it. A value the document gives in another form ("USA" for a country code) is written in the field's form; a field the document does not answer stays empty instead of guessed.
  • Measured on 12 test documents against 0.1.8: 2.6x cheaper and 2.8x faster at extraction, about the cost and time of 0.1.6; citations on the right words 93.6% (0.1.8: 84.7%). On a 5-contract test pack: 98.5% of fields right (0.1.8: 98.7%), at a quarter of the cost and an eighth of the time.

0.1.8 (2026-11-17)

  • Field report: every extracted field says how it was found. conflict when the document gives two values (every candidate with its page), inferred when the document never states it, and blank, not_applicable, not_in_document or unreadable instead of a bare null. Flags for conversions to check (day/month order, parentheses, "in thousands", percentages, currency), crossed-out values and pages stamped VOID. Lists with fewer items than their table are asked for again, then reported. In field_report (HTTP), report (Python), fields_to_check (MCP), and in warnings. On by default; settings.field_report: false turns it off.
  • Python 3.13 is supported.
  • readanydoc extract --instructions @rules.md reads long instructions from a file.
  • The "figure blocks could not be located" warning only appears when figure images, descriptions or chart data were asked for.

0.1.7 (2026-11-17)

  • Extract on deep schemas with citations on no longer comes back empty. A broken model reply is never read as a fragment: it is repaired only when the result fits the schema exactly, otherwise asked for again, then in halves. A field that still cannot be read says so ("could not be read") instead of "not found in the document".
  • Citations are asked for as a flat source list next to the data, not by wrapping every value: less for the model to get wrong on deep schemas. Fields the model writes one level off are put back.
  • Structured outputs are used on the Anthropic API whenever the schema fits the API's limits.

0.1.6 (2026-11-15)

  • After the first successful readanydoc parse or extract in a terminal, one line asks for a GitHub star, once ever. Never in scripts, CI, the server, the MCP server or the Python library; READANYDOC_NO_STAR=1 turns it off.

0.1.5 (2026-11-15)

  • The MCP server is part of the base install: pip install readanydoc then readanydoc mcp (the mcp extra still works and installs nothing more).
  • Claude Code plugin pinned to an exact commit, as the Claude plugin directory requires; submitted to the directory.
  • Privacy page in the docs.

0.1.4 (2026-11-15)

  • The PyPI page now shows the showcase image and working links (README links are absolute).

0.1.3 (2026-11-15)

  • LangChain loader and LlamaIndex reader: readanydoc.integrations.langchain.ReadAnyDocLoader, readanydoc.integrations.llamaindex.ReadAnyDocReader (extras langchain, llamaindex).
  • Claude Code plugin: /plugin marketplace add arpitpatel25/ReadAnyDoc, then /plugin install readanydoc@readanydoc (the MCP server through uvx, plus a skill for reading documents).
  • Listed in the official MCP Registry as io.github.arpitpatel25/readanydoc, published from each release.
  • Showcase of two real public-domain documents with every output (examples/showcase/), a Colab notebook, use-case pages and a comparison of alternatives in the docs, and link previews for the website and docs.

0.1.2 (2026-11-15)

  • readanydoc mcp: an MCP server with two tools, parse_document and extract_fields (with citations), for Claude Code, Claude Desktop, Cursor and other assistants. Install with pip install "readanydoc[engine,mcp]".
  • AGENT_SETUP.md: step-by-step setup instructions for coding agents, and a one-line prompt to paste into Claude Code, Codex or Cursor (README, website and docs).
  • Community: GitHub Discussions, issue forms, and links from the README, website and docs.

0.1.1 (2026-11-15)

  • A page the model provider declines to read (content filtering) is no longer empty: a second model reads it if READANYDOC_REFUSAL_READER (or the read option refusal_reader) is set, otherwise the page's local OCR text is used. OCR-text blocks are always low confidence and the response keeps a warning.
  • Table re-reads are bounded per page: at most 16 re-reads, and a page waits at most 180 seconds for them (READANYDOC_TABLE_SECONDS). Unfinished re-reads keep the page read's table. This stops the rare very slow table-heavy document.
  • Long list extraction checks its rows: a segment that returns far fewer items than its parsed tables have rows is extracted again in halves (kept only when it finds more); a gap that remains is reported in warnings.
  • usage.by_model names the model used for extract, split, classify and edit calls instead of task:extract.

0.1.0 (2026-11-14)

First public release.

  • readanydoc.parse and readanydoc.extract as a Python library; extract takes a pydantic class or JSON Schema and returns typed values with citations.
  • Two modes: engine (default) and model-only, both on Claude Haiku 5.5 at high effort; handwritten pages go to Claude Sonnet 5.5.
  • Every model the pipeline uses can be chosen, with its effort and any provider request options. Anthropic, OpenAI and OpenAI-compatible endpoints.
  • Reducto-compatible HTTP server: parse, extract, split, classify, edit, async jobs, webhooks, citations.
  • Benchmarks against Reducto r-1 on olmOCR-bench, OmniDocBench, RD-TableBench, FUNSD and long-document extraction (BENCHMARKS.md).