Skip to content

Commit a795457

Browse files
AI Translate 01-dee to Simplified-Chinese (from #2897) (#2901)
* [INIT] Start translation to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * 🌐 Translate 10-enterprise-features.md to Simplified-Chinese * chore: finalize translation for PR #2897 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 40a1f24 commit a795457

35 files changed

Lines changed: 993 additions & 2498 deletions

.translation-init

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/cn/guides/00-products/01-dee/10-enterprise-features.md

Lines changed: 55 additions & 55 deletions
Large diffs are not rendered by default.

docs/cn/guides/51-ai-functions/01-external-functions.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
title: 使用外部函数自定义 AI/ML
2+
title: 使用外部函数(External Functions)实现自定义 AI/ML
33
---
44

5-
# 使用外部函数自定义 AI/ML
5+
# 使用外部函数(External Functions)实现自定义 AI/ML
66

7-
通过将 Databend 与您自己的基础设施连接,构建强大的 AI/ML 能力。外部函数(External Function)让您能够部署自定义模型、利用 GPU 加速,并与任何 ML 框架集成,同时确保数据安全。
7+
通过将 Databend 与您自己的基础设施连接,构建强大的 AI/ML 能力。外部函数(External Functions)允许您部署自定义模型、利用 GPU 加速,并与任何 ML 框架集成,同时确保数据安全。
88

99
## 核心能力
1010

11-
| 功能 | 优势 |
11+
| 特性 | 优势 |
1212
|---------|----------|
13-
| **自定义模型** | 使用任何开源或专有的 AI/ML 模型 |
14-
| **GPU 加速** | 部署在配备 GPU 的机器上以加快推理速度 |
15-
| **数据隐私** | 将数据保留在您的基础设施内 |
16-
| **可扩展性** | 独立扩展和资源优化 |
17-
| **灵活性** | 支持任何编程语言和 ML 框架 |
13+
| **自定义模型** | 使用任何开源或专有 AI/ML 模型 |
14+
| **GPU 加速** | 部署在配备 GPU 的机器上,实现更快推理 |
15+
| **数据隐私** | 数据始终保留在您的基础设施内 |
16+
| **可扩展性** | 独立扩展与资源优化 |
17+
| **灵活性** | 支持任意编程语言与 ML 框架 |
1818

1919
## 工作原理
2020

21-
1. **创建 AI 服务器**:使用 Python 和 [databend-udf](https://pypi.org/project/databend-udf) 构建您的 AI/ML 服务器
22-
2. **注册函数**使用 `CREATE FUNCTION` 将您的服务器连接到 Databend
23-
3. **在 SQL 中使用**:直接在 SQL 查询中调用您的自定义 AI 函数
21+
1. **创建 AI 服务器**:使用 Python 和 [databend-udf](https://pypi.org/project/databend-udf) 构建 AI/ML 服务器
22+
2. **注册函数**通过 `CREATE FUNCTION` 将服务器接入 Databend
23+
3. **在 SQL 中使用**:直接在 SQL 查询中调用自定义 AI 函数
2424

2525
## 示例:文本嵌入函数
2626

@@ -39,17 +39,17 @@ model = SentenceTransformer('all-mpnet-base-v2') # 768 维向量
3939
def ai_embed_768(inputs: list[str], headers) -> list[list[float]]:
4040
"""为输入文本生成 768 维嵌入"""
4141
try:
42-
# 单批次处理输入
42+
# 在单个批次中处理输入
4343
embeddings = model.encode(inputs)
4444
# 转换为列表格式
4545
return [embedding.tolist() for embedding in embeddings]
4646
except Exception as e:
4747
print(f"Error generating embeddings: {e}")
48-
# 如果出错,则返回空列表
48+
# 发生错误时返回空列表
4949
return [[] for _ in inputs]
5050

5151
if __name__ == '__main__':
52-
print("正在端口 8815 上启动嵌入 UDF 服务器...")
52+
print("Starting embedding UDF server on port 8815...")
5353
server = UDFServer("0.0.0.0:8815")
5454
server.add_function(ai_embed_768)
5555
server.serve()
@@ -78,5 +78,5 @@ LIMIT 5;
7878

7979
## 了解更多
8080

81-
- **[外部函数指南](/guides/ai-functions/external-functions)** - 完整的设置和部署说明
82-
- **[Databend Cloud](https://databend.cn)** - 使用免费账户试用外部函数
81+
- **[外部函数指南](/guides/ai-functions/external-functions)** - 完整的设置与部署说明
82+
- **[Databend Cloud](https://databend.cn)** - 免费账户体验外部函数

docs/cn/guides/54-query/00-basics/_category_.json

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

docs/cn/guides/54-query/00-basics/aggregating-data.md

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

docs/cn/guides/54-query/00-basics/filtering-selection.md

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

docs/cn/guides/54-query/00-basics/groupby/_category_.json

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

docs/cn/guides/54-query/00-basics/groupby/group-by-cube.md

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

0 commit comments

Comments
 (0)