docs: edited define-inputs-and-outputs
Browse files
docs/creating-pipelines/define-inputs-and-outputs.mdx
CHANGED
|
@@ -2,6 +2,46 @@
|
|
| 2 |
sidebar_position: 3
|
| 3 |
---
|
| 4 |
|
| 5 |
-
# Define
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
sidebar_position: 3
|
| 3 |
---
|
| 4 |
|
| 5 |
+
# Define Inputs & Outputs
|
| 6 |
|
| 7 |
+
Once your nodes are connected, the next step is to define where your pipeline starts (inputs) and ends (outputs).
|
| 8 |
+
|
| 9 |
+
## What are Inputs?
|
| 10 |
+
|
| 11 |
+
Inputs are the data your pipeline begins with.
|
| 12 |
+
For example:
|
| 13 |
+
|
| 14 |
+
- A **text prompt**
|
| 15 |
+
- An **image** uploaded by the user
|
| 16 |
+
- A **number** or configuration value used in calculations
|
| 17 |
+
|
| 18 |
+
To define an input:
|
| 19 |
+
|
| 20 |
+
Here
|
| 21 |
+
|
| 22 |
+
Video
|
| 23 |
+
|
| 24 |
+
## What are Outputs?
|
| 25 |
+
|
| 26 |
+
Outputs are the final result produced by the pipeline.
|
| 27 |
+
For example:
|
| 28 |
+
|
| 29 |
+
- A generated text
|
| 30 |
+
- A generated or modified image
|
| 31 |
+
- JSON data for use in another app
|
| 32 |
+
|
| 33 |
+
To define an output:
|
| 34 |
+
|
| 35 |
+
Here
|
| 36 |
+
|
| 37 |
+
Video
|
| 38 |
+
|
| 39 |
+
## Tips for Working with Inputs and Outputs
|
| 40 |
+
|
| 41 |
+
- Use **clear names** for your input/output nodes to make the pipeline easy to understand.
|
| 42 |
+
- You can have **multiple inputs and outputs** if your use case requires it.
|
| 43 |
+
- Some nodes can act as both intermediate processors and final outputs — choose what makes the most sense for your flow.
|
| 44 |
+
|
| 45 |
+
:::tip Tip
|
| 46 |
+
Defining inputs and outputs makes your pipeline reusable and easier to integrate into other systems.
|
| 47 |
+
:::
|