Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently extract and route specific text/data chunks for focused processing in document workflows.
The ChunkRouter node is designed to facilitate the selection and routing of specific chunks of text or data from a larger set of chunks. This node is particularly useful in document processing workflows where you need to isolate and work with specific segments of text or data. By allowing you to specify an index, the ChunkRouter node can efficiently extract the desired chunk, making it easier to manage and manipulate large documents or datasets. This functionality is essential for tasks that require focused processing on particular sections of a document, such as text analysis, data extraction, or content generation.
This parameter represents the collection of text or data chunks from which a specific chunk will be selected. It is a required input and must be provided as a string. The chunks parameter is crucial because it defines the pool of data from which the node will extract the desired segment.
This parameter is an integer that represents the indices of the chunks. It is a required input and must be provided as an integer. The indices parameter helps in identifying the position of each chunk within the collection, ensuring that the correct chunk is selected based on the specified index.
This parameter is an integer that specifies the index of the chunk to be selected from the collection. It has a default value of 0 and can range from a minimum of 0 to a maximum of 1000. The selected_index parameter is essential for pinpointing the exact chunk you want to extract, allowing for precise control over the data selection process.
This output parameter is a string that contains the chunk of text or data selected based on the specified index. The selected_chunk is the result of the node's operation and represents the specific segment of the original collection that you wanted to isolate. This output is crucial for subsequent processing steps that require focused attention on a particular chunk of data.
selected_index
parameter is within the valid range of the chunks
collection to avoid errors.<selected_index>
is out of range. Available chunks: <number_of_chunks>
selected_index
parameter is set to a value that is outside the range of the available chunks.selected_index
is within the valid range, which is from 0 to the number of available chunks minus one. Adjust the selected_index
parameter accordingly to match the range of your chunks collection.© Copyright 2024 RunComfy. All Rights Reserved.