Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Split Files

Divide parsed file content into smaller text groups. Use this tool before a loop or another step that processes documents in manageable parts.

Use this tool

  1. Supply the parsed File content.

  2. Choose Split style: character chunks, pages, files, or a fixed number of parts.

  3. Set the corresponding size or count.

  4. Run the tool and inspect Chunks before processing each item.

Behavior and limits

This tool returns text groups, not separate downloadable PDFs. Page and file boundaries depend on the supplied parsed content. When dividing into a fixed number of parts, more parts than pages can produce empty trailing items. Use Page Split to create separate files by page.

Inputs

Field
Parameter
Description

File content (required)

input_text

The text content from one or more files to be chunked

Configuration

Field
Parameter
Description

Split style (required)

split_style

Choose how to split the content: by chunks (character limit), by pages, by files, or into a fixed number of parts

Characters per chunk

characters_per_chunk

Maximum number of characters per chunk (default: 500,000). Each resulting chunk can't be smaller than chunk size of files node.

Pages per chunk

pages_per_chunk

Number of pages to include in each chunk (default: 1, minimum: 1).

Files per chunk

files_per_chunk

Number of files to include in each chunk (default: 1, minimum: 1).

Number of parts

number_of_parts

Number of parts to divide all pages into (default: 2, minimum: 1). Pages are flattened across all files in order, then split into this many contiguous, roughly-equal parts. Fewer pages than parts yields trailing empty parts.

Outputs

Field
Parameter
Description

Chunks

chunks

List of chunked text content

Was this helpful?