Inputs

Input

The Input serves as the entry point and allows users to specify the input. It provides flexibility by supporting three different types of input values, including Text, File, and URL.

Parameters

  • Input Key: A unique identifier for the input value.

  • Input Type: Specifies the type of input value, such as Text, File, or URL.

  • Input Value: The actual input value, which can be a File path, URL, or Text. This parameter is optional.

Connecting an Input component will allow you to upload your file/URL/text(allows multiple files/URL/text as well) in your deployed chat interface. This feature won't be available unless the Input component is attached here. This is also required for the Text Generation stack type.

Adding an Input component in your Stack results in the Upload File option appearing in the Input variables sidebar on deployment.

This is the result of including the Input component in your stack, since it was attached to a PDF file loader and the input is of File type, you get an option to upload PDF on the sidebar. Similarly, different Input type will have their respective Input feature on the sidebar.

Example

In the below examples the Input component is the input to the PyPDFLoader and HumanPromptTemplate components.

Last updated