Skip to content

Commit 946cc06

Browse files
chore(eino): sync zh docs for ecosystem
1 parent 14cd757 commit 946cc06

File tree

79 files changed

+9697
-6903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+9697
-6903
lines changed

content/en/docs/eino/ecosystem_integration/_index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,51 @@ Description: ""
33
date: "2025-07-21"
44
lastmod: ""
55
tags: []
6-
title: 'Eino: Ecosystem Integration'
6+
title: 'Eino: 组件集成'
77
weight: 5
88
---
99

10-
## Ecosystem Integration
10+
## 组件集成
1111

1212
### ChatModel
1313

14-
- openai: [ChatModel - OpenAI](/en/docs/eino/ecosystem_integration/chat_model/chat_model_openai)
15-
- ark: [ChatModel - Ark](/en/docs/eino/ecosystem_integration/chat_model/chat_model_ark)
16-
- ollama: [ChatModel - Ollama](/en/docs/eino/ecosystem_integration/chat_model/chat_model_ollama)
14+
- openai: [ChatModel - OpenAI](/zh/docs/eino/ecosystem_integration/chat_model/chat_model_openai)
15+
- ark: [ChatModel - ARK](/zh/docs/eino/ecosystem_integration/chat_model/chat_model_ark)
16+
- ollama: [ChatModel - Ollama](/zh/docs/eino/ecosystem_integration/chat_model/chat_model_ollama)
1717

1818
### Document
1919

2020
#### Loader
2121

22-
- file: [Loader - local file](/en/docs/eino/ecosystem_integration/document/loader_local_file)
23-
- s3: [Loader - amazon s3](/en/docs/eino/ecosystem_integration/document/loader_amazon_s3)
24-
- web url: [Loader - web url](/en/docs/eino/ecosystem_integration/document/loader_web_url)
22+
- file: [Loader - local file](/zh/docs/eino/ecosystem_integration/document/loader_local_file)
23+
- s3: [Loader - amazon s3](/zh/docs/eino/ecosystem_integration/document/loader_amazon_s3)
24+
- web url: [Loader - web url](/zh/docs/eino/ecosystem_integration/document/loader_web_url)
2525

2626
#### Parser
2727

28-
- html: [Parser - html](/en/docs/eino/ecosystem_integration/document/parser_html)
29-
- pdf: [Parser - pdf](/en/docs/eino/ecosystem_integration/document/parser_pdf)
28+
- html: [Parser - html](/zh/docs/eino/ecosystem_integration/document/parser_html)
29+
- pdf: [Parser - pdf](/zh/docs/eino/ecosystem_integration/document/parser_pdf)
3030

3131
#### Transformer
3232

33-
- markdown splitter: [Splitter - markdown](/en/docs/eino/ecosystem_integration/document/splitter_markdown)
34-
- recursive splitter: [Splitter - recursive](/en/docs/eino/ecosystem_integration/document/splitter_recursive)
35-
- semantic splitter: [Splitter - semantic](/en/docs/eino/ecosystem_integration/document/splitter_semantic)
33+
- markdown splitter: [Splitter - markdown](/zh/docs/eino/ecosystem_integration/document/splitter_markdown)
34+
- recursive splitter: [Splitter - recursive](/zh/docs/eino/ecosystem_integration/document/splitter_recursive)
35+
- semantic splitter: [Splitter - semantic](/zh/docs/eino/ecosystem_integration/document/splitter_semantic)
3636

3737
### Embedding
3838

39-
- ark: [Embedding - Ark](/en/docs/eino/ecosystem_integration/embedding/embedding_ark)
40-
- openai: [Embedding - OpenAI](/en/docs/eino/ecosystem_integration/embedding/embedding_openai)
39+
- ark: [Embedding - ARK](/zh/docs/eino/ecosystem_integration/embedding/embedding_ark)
40+
- openai: [Embedding - OpenAI](/zh/docs/eino/ecosystem_integration/embedding/embedding_openai)
4141

4242
### Indexer
4343

44-
- volc vikingdb: [Indexer - volc VikingDB](/en/docs/eino/ecosystem_integration/indexer/indexer_volc_vikingdb)
44+
- volc vikingdb: [Indexer - volc VikingDB](/zh/docs/eino/ecosystem_integration/indexer/indexer_volc_vikingdb)
4545

4646
### Retriever
4747

48-
- volc vikingdb: [Retriever - volc VikingDB](/en/docs/eino/ecosystem_integration/retriever/retriever_volc_vikingdb)
48+
- volc vikingdb: [Retriever - volc VikingDB](/zh/docs/eino/ecosystem_integration/retriever/retriever_volc_vikingdb)
4949

5050
### Tools
5151

52-
- googlesearch: [Tool - Googlesearch](/en/docs/eino/ecosystem_integration/tool/tool_googlesearch)
53-
- duckduckgo search: [Tool - DuckDuckGoSearch](/en/docs/eino/ecosystem_integration/tool/tool_duckduckgo_search)
52+
- googlesearch: [Tool - Googlesearch](/zh/docs/eino/ecosystem_integration/tool/tool_googlesearch)
53+
- duckduckgo search: [Tool - DuckDuckGoSearch](/zh/docs/eino/ecosystem_integration/tool/tool_duckduckgo_search)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
Description: ""
3+
date: "2025-12-11"
4+
lastmod: ""
5+
tags: []
6+
title: Callback - CozeLoop
7+
weight: 0
8+
---
9+
10+
# **CozeLoop 回调**
11+
12+
这是一个为 [CozeLoop](https://github.com/cloudwego/eino) 实现的 Trace 回调。该工具实现了 `Handler` 接口,可以与 Eino 的应用无缝集成以提供增强的可观测能力。
13+
14+
## **特性**
15+
16+
- 实现了 `github.com/cloudwego/eino/internel/callbacks.Handler` 接口
17+
- 易于与 Eino 应用集成
18+
19+
## **安装**
20+
21+
```bash
22+
go get github.com/cloudwego/eino-ext/callbacks/cozeloop
23+
```
24+
25+
## **快速开始**
26+
27+
```go
28+
package main
29+
import (
30+
"context"
31+
"log"
32+
33+
ccb "github.com/cloudwego/eino-ext/callbacks/cozeloop"
34+
"github.com/cloudwego/eino/callbacks"
35+
"github.com/coze-dev/cozeloop-go"
36+
)
37+
38+
func main() {
39+
// 设置相关环境变量
40+
// COZELOOP_WORKSPACE_ID=your workspace id
41+
// COZELOOP_API_TOKEN=your token
42+
client, err := cozeloop.NewClient()
43+
if err != nil {
44+
panic(err)
45+
}
46+
defer client.Close(ctx)
47+
// 在服务 init 时 once 调用
48+
handler := ccb.NewLoopHandler(client)
49+
callbacks.AppendGlobalHandlers(handler)
50+
}
51+
```
52+
53+
## **更多详情**
54+
55+
- [CozeLoop 文档](https://github.com/coze-dev/cozeloop-go)

content/en/docs/eino/ecosystem_integration/callbacks/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ title: Callbacks
77
weight: 0
88
---
99

10+

content/en/docs/eino/ecosystem_integration/callbacks/callback_apmplus.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ title: Callback - APMPlus
77
weight: 0
88
---
99

10-
Eino provides APMPlus tracing and metrics wrappers based on [graph callbacks](/en/docs/eino/core_modules/chain_and_graph_orchestration/callback_manual). See APMPlus [docs](https://www.volcengine.com/docs/6431/69092) and [console](https://console.volcengine.com/apmplus-server). Example:
10+
Eino 基于 [graph callback](/zh/docs/eino/core_modules/chain_and_graph_orchestration/callback_manual) 能力封装了 APMPlus 的 trace 和 metrics 能力(参见 [文档](https://www.volcengine.com/docs/6431/69092) [控制台](https://console.volcengine.com/apmplus-server)),使用示例如下:
1111

1212
```go
1313
package main
1414

1515
import (
1616
"context"
1717
"log"
18-
18+
1919
"github.com/cloudwego/eino-ext/callbacks/apmplus"
2020
"github.com/cloudwego/eino/callbacks"
2121
)
2222

2323
func main() {
2424
ctx := context.Background()
25-
// create apmplus handler
25+
// 创建apmplus handler
2626
cbh, showdown, err := apmplus.NewApmplusHandler(&apmplus.Config{
27-
Host: "apmplus-cn-beijing.volces.com:4317",
27+
Host: "apmplus-cn-beijing.volces.com:4317",
2828
AppKey: "xxx",
2929
ServiceName: "eino-app",
3030
Release: "release/v0.0.1",
@@ -33,19 +33,19 @@ func main() {
3333
log.Fatal(err)
3434
}
3535

36-
// set apmplus as global callback
36+
// 设置apmplus为全局callback
3737
callbacks.AppendGlobalHandlers(cbh)
3838

3939
g := NewGraph[string,string]()
4040
/*
4141
* compose and run graph
4242
*/
4343

44-
// wait until all traces and metrics are flushed before exit
44+
// 等待所有trace和metrics上报完成后退出
4545
showdown(ctx)
4646
}
4747
```
4848

49-
You can view traces and metrics in [APMPlus](https://console.volcengine.com/apmplus-server):
49+
可以在 [APMPlus](https://console.volcengine.com/apmplus-server) 中查看 trace 和 metrics:
5050

5151
<a href="/img/eino/callback_apmplus.gif" target="_blank"><img src="/img/eino/callback_apmplus.gif" width="100%" /></a>

content/en/docs/eino/ecosystem_integration/callbacks/callback_cozeloop.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

content/en/docs/eino/ecosystem_integration/callbacks/callback_langfuse.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Callback - Langfuse
77
weight: 0
88
---
99

10-
Eino provides Langfuse tracing wrappers based on [graph callbacks](/en/docs/eino/core_modules/chain_and_graph_orchestration/callback_manual) (see https://langfuse.com/docs/get-started). Example:
10+
Eino 基于 [graph callback](/zh/docs/eino/core_modules/chain_and_graph_orchestration/callback_manual) 能力封装了 langfuse 的 trace 能力(参见 [https://langfuse.com/docs/get-started](https://langfuse.com/docs/get-started)),使用示例如下:
1111

1212
```go
1313
package main
@@ -23,18 +23,18 @@ func main() {
2323
PublicKey: "pk-xxx",
2424
SecretKey: "sk-xxx",
2525
})
26-
27-
callbacks.AppendGlobalHandlers(cbh) // set langfuse as global callback
28-
26+
27+
callbacks.AppendGlobalHandlers(cbh) // 设置langfuse为全局callback
28+
2929
g := NewGraph[string,string]()
3030
/*
3131
* compose and run graph
3232
*/
33-
34-
flusher() // wait until all traces are flushed before exit
33+
34+
flusher() // 等待所有trace上报完成后退出
3535
}
3636
```
3737

38-
You can view traces in the Langfuse project:
38+
可以在 Langfuse project 中查看 trace:
3939

4040
<a href="/img/eino/eino_callback_langfuse_usage.gif" target="_blank"><img src="/img/eino/eino_callback_langfuse_usage.gif" width="100%" /></a>

0 commit comments

Comments
 (0)