Blog
Booth AI
STABLE

Chunk Text

The Chunk Text node divides a lengthy text into smaller segments, each with a specified maximum number of characters, akin to slicing a long roll of paper into sections of equal length. This segmentation is particularly useful for managing and processing large texts in smaller, more manageable pieces, such as fitting text into certain display areas or for detailed text analysis. Inputs: - chunk_size: An integer specifying the maximum number of characters for each text chunk. - text: The source text to be divided into chunks. Output: - A list of text segments, each up to the specified character limit, preserving the order of the original text.

Inputs
Text
The body of text to be split up into smaller pieces or chunks.
Chunk Size
The number of characters each piece of text should contain after chunking.
Outputs
Collection
The output strings