Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

算子(Operator)

地址:examples/python-operator-dataflow

关键词:Operator

Operator提供了更加轻量化的方案,并且有更多Dora的高级功能,拥有更快的通信速度。

安装依赖

$ uv venv -p 3.11 --seed # 创建环境
$ uv pip install -e ../../apis/python/node # 安装Dora Python API
$ source .venv/bin/activate
$ pip install -r requirements.txt # 安装依赖,如果要体验dataflow_llm,则使用requirements_llm.txt

由于Operator暂未适配--uv标签作为启动参数,为了使用uv管理的Python,所以要在终端中source .venv/bin/activate

$ dora run dataflow.yml

运行效果