|
| 1 | +# AWEL Flow Usage |
| 2 | + |
| 3 | +:::info NOTE |
| 4 | + |
| 5 | +⚠️ Please note that this tutorial mainly introduces the installation and use of agent workflows. For the development of workflows, please refer to the `Development Guide`. |
| 6 | +This capability is supported after version V0.5.0. |
| 7 | +::: |
| 8 | + |
| 9 | +<p align="left"> |
| 10 | + <img src={'/img/app/dbgpts_flow_black.png'} width="720px" /> |
| 11 | +</p> |
| 12 | + |
| 13 | +As shown in the picture, this is the management and editing interface for DB-GPT workflows. Intelligent agents can be orchestrated into definitive workflows using the Agentic Workflow Expression Language (AWEL). These workflows can be used for subsequent application creation. |
| 14 | + |
| 15 | +<p align="left"> |
| 16 | + <img src={'/img/app/awel_flow_node.png'} width="720px" /> |
| 17 | +</p> |
| 18 | + |
| 19 | +## Workflow Installation |
| 20 | + |
| 21 | +As part of this introductory tutorial, we will cover the installation and use of workflows. |
| 22 | + |
| 23 | +Before you can start using workflows, you need to complete the installation and deployment of DB-GPT. For detailed deployment instructions, you can refer to the quick start guide. Once the project is deployed, you can begin installing and using AWEL workflows. The DB-GPT official provides an application repository that can be used for installation. Here, we will use the command line for operation. Execute `dbgpt --help` in the terminal to check if the command line is installed correctly. |
| 24 | + |
| 25 | +<p align="left"> |
| 26 | + <img src={'/img/app/dbgpts_cli.png'} width="720px" /> |
| 27 | +</p> |
| 28 | + |
| 29 | +As illustrated, the dbgpt command supports various operations, including model-related tasks, knowledge base interactions, Trace logs, and more. Here, we will focus on the operations related to apps. |
| 30 | + |
| 31 | +<p align="left"> |
| 32 | + <img src={'/img/app/dbgpts_apps.png'} width="720px" /> |
| 33 | +</p> |
| 34 | + |
| 35 | +By using the `dbgpt app list-remote` command, we can see that there are three available AWEL workflows in the current repository. Here, we will install the `awel-flow-web-info-search` workflow. To do this, execute the command dbgpt app install `awel-flow-web-info-search`. |
| 36 | + |
| 37 | +Let's also install the other official workflows provided: |
| 38 | + |
| 39 | +``` |
| 40 | +dbgpt app install awel-flow-web-info-search |
| 41 | +dbgpt app install awel-flow-example-chat |
| 42 | +dbgpt app install awel-flow-simple-streaming-chat |
| 43 | +``` |
| 44 | +By executing these commands, you will install the respective workflows onto your system. |
| 45 | + |
| 46 | +<p align="left"> |
| 47 | + <img src={'/img/app/dbgpts_app_install.png'} width="720px" /> |
| 48 | +</p> |
| 49 | + |
| 50 | +After successful installation, restart the DB-GPT service (dynamic hot loading is on the way 😊). Refresh the page, and you will be able to see the corresponding workflows on the AWEL workflow page. |
| 51 | + |
| 52 | +## Creating Applications Based on Workflows |
| 53 | + |
| 54 | +Earlier, we introduced the construction and installation of AWEL workflows. Next, let's discuss how to create data applications based on large models. |
| 55 | + |
| 56 | +Here, we will create a search dialogue application based on the `awel-flow-web-info-search` workflow. |
| 57 | + |
| 58 | +The core capability of the search dialogue application is to search for relevant knowledge using a search engine (such as Baidu or Google) and then provide a summarized answer. The effect is as follows: |
| 59 | + |
| 60 | +<p align="left"> |
| 61 | + <img src={'/img/app/app_search.png'} width="720px" /> |
| 62 | +</p> |
| 63 | + |
| 64 | +Creating the aforementioned application is very simple. In the application creation panel, click `Create`, enter the following parameters, and the creation process will be complete. There are a few parameters that require attention: |
| 65 | + |
| 66 | +- Work Mode |
| 67 | +- Flows |
| 68 | +The work mode we are using here is `awel_layout`. The AWEL workflow selected is `awel-flow-web-info-search`, which is the workflow that was installed previously. |
| 69 | + |
| 70 | +<p align="left"> |
| 71 | + <img src={'/img/app/app_awel.png'} width="720px" /> |
| 72 | +</p> |
| 73 | + |
| 74 | +The above is the basic introduction to using the intelligent agent workflow. We look forward to more of your suggestions on how to play around with it. For instructions on how to develop workflows, you can refer to the development tutorial that follows. |
| 75 | + |
0 commit comments