{"name":"parse-flows","title":"Parse flows","keyPoints":["Same 57 pages of court filings, same day: the OCR flow parses them in 48.0 s, Digital pages · LiteParse in 65.1 s, with no page sent to the OCR engine and no fee.","OCR parsed a page in 0.60 to 0.99 s on sheaf.us on Oct 8 and 9: 341 pages in three file sets, 12 pages at once.","Digital pages · LiteParse reads a page with a text layer with no model and no network; a scan, hidden text or garbled text goes to the OCR engine."],"tables":[{"heading":"Speed on sheaf.us: the whole parse of a file set","columns":["Flow","File set","Run","Pages","Read by the OCR engine","Parse","A page"],"rows":[["OCR","Paramount and Warner Bros.: 3 court filings","Oct 8 2026","57","57","34.5 s","0.60 s"],["OCR","SpaceX IPO: 3 filings","Oct 8 2026","48","48","47.3 s","0.99 s"],["OCR","Musk v. Altman: 15 court filings","Oct 9 2026","236","236","210.5 s","0.89 s"],["OCR","Paramount and Warner Bros.: 3 court filings","Oct 25 2026","57","57","48.0 s","0.84 s"],["Digital pages · LiteParse","Paramount and Warner Bros.: 3 court filings","Oct 25 2026","57","0","65.1 s","1.14 s"]],"note":"Parse: one parse run of the whole file set, from its start to the last page's bounding boxes, which covers render, reading and grounding. OCR: Mistral OCR 4.1 with page annotation, 12 pages at once. The two Oct 25 runs had the same settings but Digital pages: under LiteParse, LiteParse read every page on our worker, and no page went to the OCR engine."},{"heading":"The OCR flow, step by step","columns":["Step","Tool","What it makes","Order"],"rows":[["1. Render every page","Poppler (pdftoppm), 150 DPI","A PNG image of each page, and a thumbnail","16 pages a batch, one batch after another"],["2. Read each page","Mistral OCR 4.1, sent the PNG image","The page's text as Markdown, and its blocks with their bounding boxes","12 pages at once, starting while step 1 still runs"],["3. Find each word","Poppler's text layer (pdftotext); Tesseract only on a page with no text layer","A bounding box for each printed word","After step 1, while step 2 runs; Tesseract one page after another"],["4. Grounding","Matching, no model","A bounding box for each line, table row and table cell of the text","Once a file, after steps 2 and 3"],["5. Classify","Claude Sonnet 5.5","The documents, their names, and where one file holds several","After the parse"]],"note":"With the parse engine LiteParse, step 2 is LiteParse, its OCR on, with no model and no network: the whole file read once, while step 1 runs."},{"heading":"The Digital pages · LiteParse flow, step by step","columns":["Step","Tool","What happens to the page","Order"],"rows":[["1. Render every page","Poppler (pdftoppm), 150 DPI","It becomes a PNG image","16 pages a batch, one batch after another"],["2. Read the PDF","LiteParse, its OCR off","Its text as blocks with their bounding boxes: headings, paragraphs, tables","Once a file, while step 1 runs"],["3. Read the text layer","Poppler (pdftotext)","Every printed word, with its bounding box","Once a file, while step 1 runs"],["4. List the pictures","Poppler (pdfimages)","The size of each picture on the page","Once a file, while step 1 runs"],["5. Check each page","Three checks, no model","It passes, or it goes to step 2 of the OCR flow","As each batch is rendered"],["6. Write a page that passed","Plain code, no model","Two files: its text as Markdown, and LiteParse's blocks with their bounding boxes","At once"],["7. Find each word","The words from step 3","A bounding box for each printed word","After step 1"],["8. Grounding","Matching, no model","A bounding box for each line, table row and table cell of the text","Once a file, after steps 6 and 7"]],"note":"A page that passes uses no OCR, no model and no network: its text is LiteParse's, from the PDF's text layer, never read from the PNG image. The review room shows the image, and the hidden-text check looks at it. Classify follows, as in the OCR flow."},{"heading":"The three checks of Digital pages · LiteParse","columns":["Check","It sends the page to the OCR engine when","It reads"],"rows":[["1. Scanned","The page has no words, or one picture covers 80% of it","The words and the pictures"],["2. Hidden text","A word does not show on the page: white text, or text under a bar","The PNG image and the words' bounding boxes"],["3. Garbled text","1% or more of its characters have no meaning","The characters"]],"note":"A page with any reason goes to the OCR engine. A table, a logo or a signature is no reason. A drawn tick box and the text inside a picture are not read: LiteParse is for documents, not forms."}],"scoringMethod":"Timed, not scored: one parse run of a whole file set on sheaf.us, from its start to the last page's bounding boxes, which covers render, reading and grounding. A page's time is that total over the set's pages. No grader and no ground truth: a speed needs neither.","log":[{"date":"261025","line":"Added Digital pages · LiteParse and OCR on the same 57 pages, Oct 25: 65.1 s and 48.0 s. The digital page table moved to the new Digital pages board."},{"date":"261025","line":"LiteParse replaced Read Embedded Text: its flow and its three checks. Added LiteParse to a digital page read from its PDF: 20 of 20 values, 0.01 s a page with its OCR off, $0."},{"date":"261009","line":"Added a digital page read from its PDF: embedded text, GPT-6 Luna and Claude Haiku 5.5 at low and medium effort, with correct values, time, tokens and cost."},{"date":"261009","line":"New board. OCR: 0.60 to 0.99 s a page on sheaf.us, on 341 pages. Read Embedded Text is not timed there yet."}],"updatedAt":"2026-10-25T18:59:31.910Z"}