Skip to main content
read_documents parses PDF files and returns one row per page. Each row has the page as Markdown in content and its layout regions in blocks. See Models for the models Chowder uses to parse pages, including layout detection, table structure, and OCR.

Signature

Supported extension: .pdf.

Example

Columns

content is rendered from blocks. Use blocks when you need individual layout regions, such as tables or headings, and their positions. If a document cannot be opened, Chowder retains an incomplete row with null page ordinals and the failure in metadata.error. Files larger than CHOWDER_MAX_FILE_MB (500 MB by default) are skipped with a warning and produce no rows. A remote server can set its own limit. See Configuration.

Expand pages into blocks

Execution

  • Queries that select only source, page_number, or page_count, including count(*), read the page count without parsing pages.
  • Page predicates and LIMIT reduce parsing work.

Document extraction with infer

Extract BOOL, TEXT, ENUM, ARRAY, or STRUCT values from content.
See Caching for result reuse, cache validity, and cache controls.