Skip to content

Commit c898dda

Browse files
docs: add production links and fix typos (#45)
* docs: add production links and fix typos * fix links
1 parent 590a622 commit c898dda

File tree

12 files changed

+48
-38
lines changed

12 files changed

+48
-38
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ print(res)
6161

6262
VeADK provides several useful command line tools for faster deployment and optimization, such as:
6363

64-
- `veadk deploy`: deploy your project to Volcengine VeFaaS platform (you can use `veadk init` to init a demo project first)
65-
- `veadk prompt`: otpimize the system prompt of your agent by PromptPilot
64+
- `veadk deploy`: deploy your project to [Volcengine VeFaaS platform](https://www.volcengine.com/product/vefaas) (you can use `veadk init` to init a demo project first)
65+
- `veadk prompt`: otpimize the system prompt of your agent by [PromptPilot](https://promptpilot.volcengine.com)
6666

6767
## Contribution
6868

docs/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ actions:
1313

1414
features:
1515
- title: 更丰富的内置工具
16-
details: Builtin工具,例如侧重头条、抖音搜索的web_search等;MCP工具,例如飞书Lark、数据湖LAS、优解PromptPilot等
16+
details: Builtin工具,例如侧重头条、抖音搜索的WEB_SEARCH等;MCP工具,例如飞书Lark、数据湖LAS、优解PromptPilot等
1717
- title: 更灵活的功能扩展
1818
details: 提供Agent各类组件的基础实现,通过插件方式灵活扩展。
1919
- title: 更完备的观测和评估管理
2020
details: 运行时数据通过OpenTelemetry协议无缝衔接APMPlus、Cozeloop、TLS;运行时数据生成测试数据集文件,可直接在本地和Cozeloop中进行评估测试。
2121
- title: 更强大的知识和记忆管理
22-
details: 知识库支持火山引擎各类现有数据库,例如关系型数据库、键值数据库、VikingDB知识库记忆库等。
22+
details: 知识库支持火山引擎各类现有数据库,例如关系型数据库、缓存数据库、VikingDB知识库记忆库等。
2323
- title: 更科学的结果评测
2424
details: 提供不确定性Tools(例如搜索类)场景下的测评解决方案,弥补传统仅根据输入输出进行评测而导致评测结果不符合预期的问题。
2525
- title: 更友好的最佳实践

docs/docs/agent.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Agent 中主要包括如下属性:
2222
| tracers | list | 追踪器列表,能够定义不同的追踪方式,并在 Agent 执行完毕后将整体 Tracing 信息保存至本地 |
2323
| serve_url | str | Agent 服务主机的 URL,将显示在 Agent Card 中 |
2424

25+
您可以在[火山引擎方舟平台](https://www.volcengine.com/product/ark)选择适合您的大模型。
26+
2527
## 运行
2628

2729
在生产环境中,我们推荐您使用 VeADK 的`Runner`执行器来进行多租户服务与 Agent 运行,在多租场景下,`Runner`通过三个属性来确定资源空间:
@@ -111,4 +113,4 @@ planner_agent = Agent(
111113

112114
runner = Runner(agent=planner_agent, short_term_memory=ShortTermMemory())
113115
response = await runner.run(messages=prompt, session_id=session_id)
114-
```
116+
```

docs/docs/deploy.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
VeADK提供了一个云引擎,配合命令行脚手架,你可以方便地:
44

5-
- 将你的本地Agent项目上传到云端
5+
- 将你的本地Agent项目上传到云端[火山引擎函数服务平台](https://www.volcengine.com/product/vefaas)
66
- 启动一个新的样例模板项目进行开发
77

88
你可以指定部署到云端的项目以三种模式进行对外服务:
@@ -138,10 +138,10 @@ updated_cloud_app = engine.update_function_code(
138138
```
139139

140140
**注意事项:**
141+
141142
- 更新操作会保持相同的访问端点URL
142143
- 确保项目路径包含`agent.py`文件
143144

144-
145145
## 删除云应用
146146

147147
### 通过 CloudAgentEngine 删除
@@ -156,8 +156,9 @@ engine.remove(app_name="my-agent-app")
156156
```
157157

158158
执行时会提示确认:
159-
```
159+
160+
```bash
160161
Confirm delete cloud app my-agent-app? (y/N): y
161162
```
162163

163-
输入`y`确认删除,输入其他任何字符或直接回车则取消删除。
164+
输入`y`确认删除,输入其他任何字符或直接回车则取消删除。

docs/docs/evaluation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ assert dump_path != "", "Dump eval set file failed! Please check runtime logs."
5252
- `tool_uses`:Agent 使用的工具
5353
- `intermediate_responses`:Agent 的中间会话
5454

55-
## 评测
55+
## 开展评测
5656

5757
VeADK 目前支持 [DeepEval](https://deepeval.com/) 评测器和 [ADKEval](https://google.github.io/adk-docs/evaluate/),通过如下方式定义评测器:
5858

@@ -80,7 +80,7 @@ await evaluator.eval(eval_set_file_path=dump_path, metrics=metrics)
8080

8181
## 数据上报
8282

83-
评测结果可以自动上报至火山引擎的 [VMP](https://console.volcengine.com/prometheus) 平台,只需要在定义评估器的时候传入 Prometheus pushgateway 等相关参数即可,可在 `config.yaml` 中进行配置并从环境变量中自动读取:
83+
评测结果可以自动上报至火山引擎的[托管 Prometheus (VMP)](https://www.volcengine.com/product/prometheus)平台,只需要在定义评估器的时候传入 Prometheus pushgateway 等相关参数即可,可在 `config.yaml` 中进行配置并从环境变量中自动读取:
8484

8585
```python
8686
from veadk.evaluation.utils.prometheus import PrometheusPushgatewayConfig
@@ -154,4 +154,4 @@ eval_set_file_path = os.path.join(
154154
os.path.dirname(__file__), "builtin_tools", "evalsetf0aef1.evalset.json"
155155
)
156156
await evaluator.eval(eval_set_file_path=eval_set_file_path, metrics=metrics)
157-
```
157+
```

docs/docs/get-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 快速开始
22

33
## 安装 VeADK
4+
45
参考[安装](./installation.md)文档进行配置,并将`config.yaml`配置文件放在项目根目录。
56

67
## 构建 Agent
@@ -13,11 +14,13 @@ from veadk.tools.demo_tools import get_city_weather
1314

1415
agent = Agent(tools=[get_city_weather])
1516
```
17+
1618
## 执行 Agent
1719

1820
由于某些操作是异步的,因此 Agent 的运行需要借助`asyncio`库在异步环境中进行。
1921

2022
Agent 的运行有两种方式,第一种是使用 Agent 自带的 `run` 方法运行:
23+
2124
```python
2225
import asyncio
2326

@@ -45,4 +48,4 @@ print(response) # The weather in Beijing is Sunny with a temperature of 25°C. T
4548
我们在`Agent`类中提供的`run`方法仅为了本地测试和开发使用,由于该函数位于一个异步与同步函数共存的运行环境,可能会产生不可预知的异常。
4649

4750
因此不建议在生产环境中使用。
48-
:::
51+
:::

docs/docs/installation.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44

55
## 环境
66

7+
### PyPI
8+
9+
您可以直接使用`pip`[PyPI 平台](https://pypi.org/project/veadk-python/)进行安装:
10+
11+
```bash
12+
pip install veadk-python
13+
```
14+
715
### 从源码构建
816

9-
本项目使用`uv`进行构建([安装`uv`](https://docs.astral.sh/uv/getting-started/installation/))
17+
本项目使用`uv`进行构建([安装`uv`](https://docs.astral.sh/uv/getting-started/installation/)
1018

1119
```bash
1220
# clone repo first
@@ -35,21 +43,14 @@ uv sync
3543
uv pip install -e .
3644
```
3745

38-
### PyPI
39-
40-
本项目近期将发布在PyPI上,届时您可以使用`pip`进行安装。
41-
42-
```bash
43-
pip install veadk-python
44-
```
45-
4646
## 配置
4747

4848
VeADK 在仓库中提供了一个示例配置文件`config.yaml.example`,其中标明了一个智能体运行的必需(required)配置和可选(optional)配置。您可以基于该示例文件,在项目根目录下创建实际使用的配置文件`config.yaml`。VeADK 中的配置模块将自动查找并加载该文件内容,并将其中的配置项映射为运行时环境变量,从而帮助您省去环境配置的时间。
4949

5050
完整的配置项可以参考[`config.yaml.example`文件](https://github.com/volcengine/veadk-python/blob/main/config.yaml.example)
5151

5252
### 说明
53+
5354
下面是详细的配置说明:
5455

5556
```yaml
@@ -186,4 +187,4 @@ MODEL_API_BASE_BASE_B=
186187
...
187188
```
188189

189-
VeADK 中提供了一个`getenv`方法来读取相关配置,您无需在各组件中次手动传入某个配置的参数。
190+
VeADK 中提供了一个`getenv`方法来读取相关配置,您无需在各组件中次手动传入某个配置的参数。

docs/docs/introduction.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
## 关于VeADK
44

5-
**VeADK(Volcengine Agent Development Kit)** 是由火山引擎推出的一套面向智能体(Agent)开发的全流程框架,旨在为开发者提供一套面向智能体构建、云端部署、评测与优化的全流程开发框架。
5+
**VeADK(Volcengine Agent Development Kit)** 是由[火山引擎](https://www.volcengine.com/)推出的一套面向智能体(Agent)开发的全流程框架,旨在为开发者提供一套面向智能体构建、云端部署、评测与优化的全流程开发框架。
66

77
VeADK 相较于现有的智能体开发框架,具备与火山引擎产品体系深度融合的优势,帮助开发者更高效地构建企业级 AI 智能体应用。
88

99
## VeADK 核心优势
10+
1011
### 更快速的企业级部署
1112

1213
- 通过云部署项目模板支持 CloudEngine 的一键部署和发布能力
13-
- 支持 veFaaS 与 APIG,实现高可用、高弹性的服务托管
14+
- 支持 [VeFaaS](https://www.volcengine.com/product/vefaas)[火山引擎APIG](https://www.volcengine.com/product/apig),实现高可用、高弹性的服务托管
1415
- 提供简易的 CLI 工具与编程化发布
1516

1617
### 更安全的企业级部署
@@ -20,22 +21,22 @@ VeADK 相较于现有的智能体开发框架,具备与火山引擎产品体
2021

2122
### 更完备的可观测性和评估能力
2223

23-
- 运行时数据无缝衔接 APMPlus、Cozeloop, TLS 等云观测平台,提供可视化监控
24+
- 运行时数据无缝衔接 [APMPlus](https://www.volcengine.com/product/apmplus)[CozeLoop](https://www.coze.cn/loop), [TLS](https://www.volcengine.com/product/tls) 等云观测平台,提供可视化监控
2425
- 运行时数据直接落地为测试数据集文件, 支持离线和在线的评估能力
2526

2627
### 更丰富的内置工具
2728

2829
- 内置头条、抖音搜索工具,实现实时信息获取与内容聚合
29-
- 集成飞书 Lark(协同办公)、LAS(AI 数据湖服务)等工具,增强 Agent 实用性
30+
- 集成飞书 Lark(协同办公)、[LAS(AI 数据湖服务)](https://www.volcengine.com/product/las)等工具,增强 Agent 实用性
3031

3132
### 更灵活的功能扩展
3233

3334
- 提供 Agent 构建所需核心组件的基础实现,支持开发者根据需求灵活组合与扩展
3435

3536
### 更强大的知识管理
3637

37-
- 支持连接火山引擎各类现有数据库,包括关系型数据库、键值数据库等
38-
- 集成 Viking DB 等火山引擎云知识库,实现知识的高效存储、检索与更新
38+
- 支持连接火山引擎各类现有数据库,包括[关系型数据库](https://www.volcengine.com/product/rds-mysql)[缓存数据库](https://www.volcengine.com/product/redis)
39+
- 集成 [Viking DB](https://www.volcengine.com/docs/84313/1254437) 等火山引擎云知识库,实现知识的高效存储、检索与更新
3940

4041
### 更友好的最佳实践
4142

docs/docs/knowledgebase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ knowledgebase = KnowledgeBase(backend=...)
1313
| backend | 说明 |
1414
| --- | --- |
1515
| local | GIGO 模式的内存存储,不具备向量检索功能,仅用于测试 |
16-
| [viking](https://console.volcengine.com/vikingdb) | 火山引擎 Viking DB 服务 |
16+
| [viking](https://www.volcengine.com/docs/84313/1254437) | 火山引擎 Viking DB 服务 |
1717
| opensearch | OpenSearch 数据库 |
1818
| redis | Redis 数据库,但不具备向量搜索功能 |
1919
| mysql | MySQL 数据库,但不具备向量搜索功能 |
@@ -39,7 +39,7 @@ agent = Agent(knowledgebase=knowledgebase)
3939

4040
## 火山知识库
4141

42-
VeADK 中提供了火山引擎支持的知识库 [VikingDB](https://console.volcengine.com/vikingdb),支持用户直接上传本地文档,文档切片和存储维护均在云上自动执行:
42+
VeADK 中提供了火山引擎支持的知识库 [VikingDB](https://www.volcengine.com/docs/84313/1254437),支持用户直接上传本地文档,文档切片和存储维护均在云上自动执行:
4343

4444
```python
4545
from veadk import Agent
@@ -53,4 +53,4 @@ knowledgebase.add(
5353
)
5454

5555
agent = Agent(knowledgebase=knowledgebase)
56-
```
56+
```

docs/docs/memory.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ response = await runner.run(messages=prompt, session_id=session_id)
6767
print(response) # Your name is VeADK.
6868
```
6969

70-
7170
### 短期记忆的优化
7271

7372
持久化的短期记忆可能过长,占满某些模型的上下文。为解决短期记忆过长的问题,VeADK 中提供了记忆优化器来进行短期记忆的优化,通过在短期记忆类中传入`enable_memory_optimization`参数,开启记忆优化器。
@@ -95,6 +94,7 @@ short_term_memory = ShortTermMemory(
9594
- 自定义维度(例如结构化信息抽取)
9695

9796
以下示例展示了 VeADK 中短期记忆在开启记忆优化模式(`enable_memory_optimization=True`)后的使用方式。通过该模式,Agent 能够在存储用户对话上下文时自动剔除冗余或无关的信息,从而提高记忆效率与响应准确性。
97+
9898
```python
9999
import os
100100
from sqlalchemy import create_engine
@@ -138,6 +138,7 @@ print(response)
138138
# clear local database
139139
os.remove(local_database_path)
140140
```
141+
141142
短期记忆优化过程与结果:
142143

143144
![短期记忆优化结果](/images/memory-optimization.png)
@@ -174,6 +175,7 @@ await self.long_term_memory.add_session_to_memory(session) # 添加
174175
| mysql | MySQL 数据库,但不具备向量搜索功能 |
175176

176177
以下示例展示了如何在 VeADK 中使用长期记忆实现跨会话的信息保留与调用。开发者可以通过 `save_session_to_long_term_memory` 方法,将某一会话中的知识性信息存入长期记忆存储后端。在新的会话中,即使上下文为空,Agent 依然能够基于长期记忆准确回忆并回答相关问题。
178+
177179
```python
178180
from veadk import Agent, Runner
179181
from veadk.memory.long_term_memory import LongTermMemory
@@ -202,4 +204,3 @@ student_prompt = "..."
202204
response = await runner.run(messages=student_prompt, session_id=new_session_id)
203205
print(response)
204206
```
205-

0 commit comments

Comments
 (0)