Access data files from within your Flow.


The Files component allows you to access and format one or more DOC, PDF, DOCX, TXT and MP3 files from within the Flow. The Files component supports multiple files.

The Files component value has the identifier of fi-X, where X represents the instance number of the Files component.


The Files component has the following parameters that can be specified directly on the UI component.

Parameter NameDescription


This parameter specifies the File or collection files to source data from.

Component Inputs

The Files component does not have any input connections.

Component Outputs

The Files component has the following output connections.

Output Name FormatDescriptionConstraints

To VectorDB/Python

This output connection represents the source documents.

Can be connected to any component that supports text string inputs.

Configuration Options

The Files component has the following configuration options.

Configuration Option NameDescription


This is a user supplied textual description of Files component.

Enable Caching

This option determines whether the results of the component are cached. This means that on the next run of the Flow, Diaflow will utilize the previous computed component output, as long as the inputs have not changed.

Caching Time

Only applicable if the "Enable Caching" option has been enabled. This parameter controls how long Diaflow will wait before automatically clearing the cache.

Clear Cache

Only applicable if the "Enable Caching" option has been enabled. Clears the cache.

Use Cases

The following is a simple use case of the Files component, where the Files component is being used to provide an input document to a Document to Plan Text component.

For more information on the Document to Plan Text component, please refer to the section.

Last updated