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, orpage_count, includingcount(*), read the page count without parsing pages. - Page predicates and
LIMITreduce parsing work.
Document extraction with infer
Extract
BOOL, TEXT, ENUM, ARRAY, or STRUCT values from content.