FilesInput
The first component in your index.
Basic Information
- Type: Doesn't apply
- Components it can connect with:
FilesInputis the first component in an index.- FileTypeRouter:
FilesInputcan sendsourcestoFileTypeRouter, which then routes them by file type to appropriate Converters. This is useful if you have files of different types. - Converters:
FilesInputcan sendsourcesto Converters for further processing.
Inputs
FilesInput doesn't need you to provide any inputs. It automatically maps to your files.
Outputs
| Name | Type | Description |
|---|---|---|
sources | LIst of strings, paths or ByteStream objects | The files to process. |
Overview
FilesInput represents the files that your index will process. It must always be the first component in the index.
Usage Example
In Builder, drag FilesInput on the canvas and connect it to a Converter or FileTypeRouter, as in this example:
In YAML, you simply list files among pipeline's inputs and specify the components' inputs that should receive them:
inputs:
files:
- file_classifier.sources # Here you list the components that receive files (sources)
Init Parameters
This component doesn't take any initialization parameters.
Updated about 1 month ago