Inputs/Outputs
Last updated
Last updated
Inputs and Outputs are the primary way in which you can define the start and end of a stack. This is useful in Text Generation usecases where you would have to define what parameters are given to the stack and what outputs you are getting from the stack.
The Input component can basically attach with a Data Connector or with the Prompt Template. The input_type should be chosen appropriately depending to which component you are connecting it to. If you are connecting the Input Component to a File Loader the input_type of "File" should be chosen.
If you are connecting the Input Component to a Prompt Template the input_type of "Text" should be chosen.
NOTE: Including this Input component allows user to upload multiple inputs (File/URL/text) in a side bar in the deployed page. Find an example of how this works in the Deployment page.
To know more about Input components and their interfaces refer the Input Component Documentation.
Output Component is basically for receiving and storing the end result and making it downloadable as well it can connect with any component which returns "Documents" as an output.
To know more about Output components and their interfaces refer the Output Component Documentation.