What is the File Node?

The File Node allows users to upload a file to the flow and use it as an input to the LLM. This node is not a replacement for the Documents Node, which is a more powerful node for creating a document knowledge base for your LLM.

Expose as Input: This toggle displays the file node as an available input on the user-facing interface.

File Input Node Settings

If you click the gear icon in the node, you will see the available settings.

Chunking Settings

  • Chunking Algorithm: Defines how the data is split (e.g., Sentence-based).
  • Chunk Overlap: The number of overlapping tokens between chunks.
  • Chunk Length: Max length of each chunk sent to the LLM.

Additional Features

  • Advanced Data Extraction: Enable more precise field-level parsing (toggle option).
  • Text in Images (OCR): Extract and include text from images (toggle option)

How to Use the File Node

  1. Add a File node to your flow.
  2. Connect the File node to an LLM node.
  3. Mention the File node in the LLM node by pressing ”/” and selecting the File node.
  4. Add an Output node to your flow.
  5. Connect the Output node to the LLM node.

How to Expose the File Node to your Users

  1. Go to the Export tab.
  2. Enable the file node in the Inputs section.
  3. Press Save Interface to save your changes.
  4. Your users should now see an upload button in the interface.