File Operations
File to Text Node
Convert a file into text
The file to text node allows you to parse text from a file.
Node Inputs
- File to parse: The file you want to parse text from.
- Type:
File
- Type:
For providing the file, you have two options:
- If toggle is on Upload: Upload a file by clicking the upload button
- If toggle is on Variable: Reference files from other nodes.
Node Parameters
On the face of the node:
- File Parser: The file parser you want to use to parse the inputted file. The available options are: Default (Basic OCR), Llama Parse, and Textract.
In the gear:
- Chunk Text: Chunk the text with the below dimensions
- Chunk Size (if Chunk Text is set to True): The size of each chunks in tokens (1 token = ~4 characters; default is 1024 tokens)
- Chunk Overlap (if Chunk Text is set to True): The number of tokens of overlap between chunks (default is 400 tokens)
Node Outputs
- Processed Text: The text from the file
- Type:
Text
- Example usage:
{{file_to_text_0.processed_text}}
- Type: