File to Text Node
Last updated
Last updated
This node extracts text from a file.
File to convert to text: The file you want to parse text from
Type: File
Note:
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
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)
Processed Text: The text from the file
Type: Text
Example usage: {{file_to_text.processed_text}}