> For the complete documentation index, see [llms.txt](https://docs.aiplanet.com/genai-stack-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aiplanet.com/genai-stack-1/quickstart/core-concepts/inputs-outputs.md).

# Inputs/Outputs

### Input

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.&#x20;

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.&#x20;

<figure><img src="https://3489179498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjlRjmrZThWiLNO9xTu9d%2Fuploads%2FApqxDiIgYBFc04qP9ok8%2Fimage.png?alt=media&amp;token=9f89b32f-2638-442c-b0a5-27d885be7faa" alt=""><figcaption></figcaption></figure>

If you are connecting the Input Component to a Prompt Template the input\_type of *"Text"* should be chosen.&#x20;

<figure><img src="https://3489179498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjlRjmrZThWiLNO9xTu9d%2Fuploads%2FBx4ZOWLCnGwe5o39JCQu%2Fimage.png?alt=media&amp;token=3645fbf9-969b-4ab0-8a39-d617c1868994" alt=""><figcaption></figcaption></figure>

**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](/genai-stack-1/quickstart/deployment.md).

To know more about Input components and their interfaces refer the [Input Component Documentation](/genai-stack-1/components/inputs.md).

### Output

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.&#x20;

<figure><img src="https://3489179498-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjlRjmrZThWiLNO9xTu9d%2Fuploads%2Fmhn8NCJWDaFPJWOukfof%2Fimage.png?alt=media&amp;token=2cc5ee4f-1de6-4bea-9915-66905cc267af" alt=""><figcaption></figcaption></figure>

To know more about Output components and their interfaces refer the  [Output Component Documentation.](/genai-stack-1/components/outputs.md)
