ReadAnyDoc

v0.4.10
io.github.arpitpatel25/readanydoc Checked 11 hours ago Published 23 hours ago

Open-source document parsing for LLMs, a Reducto alternative: PDFs and scans to Markdown and fields.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

parse_document

Parse a local document (PDF, image, DOCX, XLSX, PPTX ...) into Markdown. path: file on this computer. mode: "engine" (default, most accurate) or "model-only" (one model read per page, faster). pages: 1-based page numbers to read; all pages when omitted.

ParameterTypeDescription
path *string
modestring
pages

extract_fields

Extract structured values from a local document into a JSON Schema, with citations. schema: a JSON Schema object (type "object" with properties). instructions: optional guidance for the extraction. array_extract: true for long lists or tables that span many pages. review: also list values to check (found by code, no extra cost). alternatives: also return other values the document gives for a field (a special term or an amendment that changes a price). part_tokens: largest document part per call, in tokens (default 30,000). parse_first: false to skip parsing (the model reads the file itself: a…

ParameterTypeDescription
path *string
schema *object
alternativesboolean
array_extractboolean
fill_required
instructions
modestring
parse_firstboolean
part_tokens
reviewboolean

list_test_sets

The public test sets (invoices, receipts, financial reports, contracts, research papers, resumes, result tables, long reports), with what each tests, its size and its licence, and the systems that can be compared.

run_test

Compare systems on a public test set (set_id) or on the user's own documents (folder + schema_path, and answers_folder with <file stem>.json answer keys if they have them). Scored by code against the answer key. With confirm=false (the default) nothing is spent: it returns the plan (documents, pages, rough cost per system, systems that cannot run and why). Ask the user, then call again with confirm=true to run it. Returns the scores per system and the path of an HTML report with a citation viewer for every document.

ParameterTypeDescription
answers_folder
budget_usd
confirmboolean
folder
limit
out
schema_path
set_id
systems