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:
writinwaters
2025-08-01 20:22:27 +08:00
committed by GitHub
parent 21ddcd3c39
commit b89ddd07f0
21 changed files with 215 additions and 878 deletions

View File

@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 8
slug: /categorize_component
---
@ -17,6 +17,15 @@ A **Categorize** component is essential when you need the LLM to help you identi
## Configurations
### Query variables
*Mandatory*
Select the source for categorization.
The **Categorize** component relies on query variables to specify its data inputs (queries). All global variables defined before the **Categorize** component are available in the dropdown list.
### Input
The **Categorize** component relies on input variables to specify its data inputs (queries). Click **+ Add variable** in the **Input** section to add the desired input variables. There are two types of input variables: **Reference** and **Text**.
@ -90,19 +99,9 @@ Additional examples that may help the LLM determine which inputs belong in this
Examples are more helpful than the description if you want the LLM to classify particular cases into this category.
:::
#### Next step
Once a new category is added, navigate to the **Categorize** 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 category.
- Once you specify the ID of the downstream component, a link is established between this category and the corresponding component.
- If you manually link this category to a downstream component on the canvas, the ID of that component is auto-populated.
## Examples
You can explore our customer service agent template, where a **Categorize** component (component ID: **Question Categorize**) has four defined categories and takes data inputs from an **Interact** component (component ID: **Interface**):
1. Click the **Agent** tab at the top center of the page to access the **Agent** page.
2. Click **+ Create agent** on the top right of the page to open the **agent template** page.
3. On the **agent template** page, hover over the **Interpreter** card and click **Use this template**.
4. Name your new agent and click **OK** to enter the workflow editor.
#### Output
The global variable name for the output of the component, which can be referenced by other components in the workflow. Defaults to `category_name`.