mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 11:36:38 +08:00
Docs: Updated docs for 0.20.0 (#9169)
### What problem does this PR solve? v0.20.0 documents. ### Type of change - [x] Documentation Update
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
sidebar_position: 6
|
||||
slug: /switch_component
|
||||
---
|
||||
|
||||
@ -19,27 +19,21 @@ A **Switch** component is essential for condition-based direction of execution f
|
||||
|
||||
### Case n
|
||||
|
||||
A **Switch** component must have at least one case, each with multiple specified conditions and *only one* downstream component. When multiple conditions are specified for a case, you must set the logical relationship between them to either AND or OR.
|
||||
A **Switch** component must have at least one case, each with multiple specified conditions. When multiple conditions are specified for a case, you must set the logical relationship between them to either AND or OR.
|
||||
|
||||
#### Next step
|
||||
Once a new case is added, navigate to the **Switch** component on the canvas, find the **+** button next to the case, and click it to specify the downstream component(s).
|
||||
|
||||
Specifies the downstream component of this case.
|
||||
|
||||
- *Once you specify the ID of the downstream component, a link is established between this case and the corresponding component.*
|
||||
- *If you manually link this case to a downstream component on the canvas, the ID of that component is auto-populated.*
|
||||
|
||||
#### Condition
|
||||
|
||||
Evaluates whether the output of specific components meets certain conditions, with **Component ID**, **Operator**, and **Value** together forming a conditional expression.
|
||||
Evaluates whether the output of specific components meets certain conditions
|
||||
|
||||
:::danger IMPORTANT
|
||||
When you have added multiple conditions for a specific case, a **Logical operator** field appears, requiring you to set the logical relationship between these conditions as either AND or OR.
|
||||

|
||||
:::
|
||||
|
||||
- **Component ID**: The ID of the corresponding component.
|
||||
- **Operator**: The operator required to form a conditional expression.
|
||||
- Equals
|
||||
- Equals (default)
|
||||
- Not equal
|
||||
- Greater than
|
||||
- Greater equal
|
||||
@ -53,10 +47,4 @@ When you have added multiple conditions for a specific case, a **Logical operato
|
||||
- Not empty
|
||||
- **Value**: A single value, which can be an integer, float, or string.
|
||||
- Delimiters, multiple values, or expressions are *not* supported.
|
||||
- Strings need not be wrapped in `""` or `''`.
|
||||
|
||||
### ELSE
|
||||
|
||||
**Required**. Specifies the downstream component if none of the conditions defined above are met.
|
||||
|
||||
*Once you specify the ID of the downstream component, a link is established between ELSE and the corresponding component.*
|
||||
|
||||
Reference in New Issue
Block a user