Skip to main content

Read Document

Controlled node

Overview

This node is used to access documents contents from your library. The file can be chosen from the library using the side panel. Alternatively select the file using the file input. This node is useful for accessing data required to be passed to other nodes.

Inputs

InputTypeDescriptionDefault
FileFileA file containing information-
RunEventFires when the node starts running-
DoneEventFires when the node finishes running-
TextListText content of the file-

Panel Controls

The show node panel allows you to choose the file to read from your library. Read document limits the selection to only one document.

Larger documents may require reading in "chunks". Toggle the chunk option in the side panel to chunk by "default", "count", "separator", "structure" or "divide". This will return the file text content in a list of chunks separated by option.

Chunking Options

The ReadDocument node supports various chunking options to process large documents. These options can be set in the side panel and include:

Default: Splits the document into chunks of 700 words by default.

Count: Splits the document into chunks of a specified number of elements (words, sentences, or paragraphs).

Separator: Splits the document based on a specified separator (e.g., comma, period).

Structure: Splits the document based on its structure (e.g., sentences, paragraphs, words).

Divide: Divides the document (e.g. sentences, paragraph, words) into a specified number of chunks.