Skip to content

Parse unstructured documents accurately,
with evidence.

qaechi-parser turns PDFs, slide decks, spreadsheets and text into structured data. Every value comes back with the exact quote and page it was read from, and a value it cannot prove comes back as null.

PPTX text 100% of slide text recovered, incl. groups, tables, charts and notes qaechi100% naive11%
Tables 100% of tables kept whole with their header qaechi100% naive22%
Invented quotes 100% flagged by the verbatim check against the source qaechi100% naive0%
Any document 1 shape structured or unstructured, every value comes back with its quote and page

Benchmark Seeded synthetic corpus, one rule isolated per metric; “naive” is plain text extraction. Method and reproduction →

Start in 30 seconds

Try it on the bundled sample ledger. Swap in your own document and fields when you are ready.

pip install "qaechi-parser[parse]"
qaechi-parser parse ledger.csv --doc-type ledger
import qaechi.parser as qp

result = qp.parse("ledger.csv", "ledger", lines=True)
print(result.total.value, result.total.provenance.quote)   # 1225000  Total |  | 1225000
pip install "qaechi-parser[parse,server]"
QAECHI_INTERNAL_TOKEN=dev QAECHI_SOURCE_DIR=./docs qaechi-parser serve
curl -X POST localhost:3100/jobs -H "X-Internal-Token: dev" -H "Content-Type: application/json"          -d '{"documentId":"l-1","source":"ledger.csv","docType":"ledger","lines":true}'

All languages: Python, Node.js, TypeScript, Java

Unstructured in, structured out, nothing guessed

Most business knowledge lives in contracts, invoices, decks and ledgers. A parser that drops a hidden sheet, splits a table from its header or lets the model “fix” a number looks fine until a total is wrong. qaechi-parser has one goal: parse unstructured data accurately, and show the proof.

01

Read everything

Every sheet (hidden ones too), every slide shape, grouped text, chart values and speaker notes. Nothing is skipped silently; what was truncated is counted.

02

Keep the structure

Tables are never split from their header. Chunks respect a size budget without cutting a row, so the model sees data the way the document laid it out.

03

Prove every value

Each value carries quote, page and chunkId. Quotes are matched verbatim against the source; misses are listed in quoteCheck.notInSource, never hidden.

A value, and where it came from

qaechi-parser proposes values with evidence. Your ERP, review queue or agent decides what to accept.

Sourcecontract.pdfpage 3

The Customer shall pay a monthly service fee of KRW 1,200,000 starting on 1 March 2026. The deposit is set out in Schedule B.

ResultExtractiongrade: yes
"fee": {
  "value": 1200000,
  "provenance": { "page": 3, "quote": "KRW 1,200,000" }
},
"start": {
  "value": "2026-03-01",
  "provenance": { "page": 3, "quote": "1 March 2026" }
},
"deposit": { "value": null, "provenance": null }

Point at a value, or at the highlighted text, to see its evidence. deposit has no evidence in this page, so it comes back null instead of a guess.

Where it fits

Documents where a wrong number costs money, and someone has to be able to check it.

  • Royalty statements


    Publisher and society statements in PDF and XLSX: works, periods, gross and net amounts, each traced to its row, ready for settlement.

  • Invoices and ledgers


    Line items and totals with the sign and the thousands separators read correctly; fixed layouts are read the same way every time.

  • Contracts


    Parties, fees, dates and terms from free-form text, with the clause each value came from for legal review.

One pipeline, every document

Every document goes through the same pipeline, and every value it returns is checked against the source before it is saved.

  1. ReadThe right reader for the document type and format.
  2. LoadPDF, PPTX, XLSX, CSV, TXT and MD into text with page anchors.
  3. ChunkTable-safe chunks within the size budget.
  4. ExtractStructured output with a quote for every value.
  5. VerifyEach quote matched verbatim against the source.
  6. GradeGroundedness yes / no / unknown, never optimistic.

Read the parsing rules

What you can rely on

Defaults chosen for systems that post numbers, not for demos.

  • Provenance on every value


    quote, page and chunkId for each field and line item, ready for a review UI.

  • Lossless loading


    Hidden sheets, grouped shapes, charts and notes. A table never loses its header.

    Parsing rules

  • Consistent on recurring layouts


    Documents you receive again and again are read the same way every time, at low cost.

  • Safe by default


    Stub mode with no keys, loopback bind, constant-time token check, path traversal blocked.

    HTTP API

How it compares

The same LLM can sit behind each approach. What changes is what you can prove afterwards.

LLM prompt only OCR + hand-written rules qaechi-parser
Evidence for each value Usually none Position, no quote check Quote and page, checked verbatim
When unsure Often guesses Rule fails or misreads null, routed to review
Tables, hidden sheets, slide notes Depends on the text you pass Per layout Read losslessly, tables kept whole
Recurring layouts Tokens on every file A rule per layout Same answer every time, low cost
Free-form documents Yes No Yes, with an OpenAI-compatible model that supports tools

Part of qaechi

qaechi-parser is the first module of qaechi, an open-source stack for turning documents into data that small teams can trust.

  1. parserEvidence-first extraction
  2. ragAnswers that cite the same evidence
  3. batchLarge document sets, retries and reports
  4. streamEvent streaming of extraction results
  5. securityAccess control and masking for sensitive fields

Try it in a minute

Parse the bundled sample ledger in one command.

Getting started Ask a question

pip install "qaechi-parser[parse]"
qaechi-parser parse examples/ledger.csv --doc-type ledger