Skip to content

Commit e5f93be

Browse files
AI Translate 10-data-types to Simplified-Chinese (#2546)
* [INIT] Start translation to Simplified-Chinese * 🌐 Translate vector.md to Simplified-Chinese --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 83598b8 commit e5f93be

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.translation-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Translation initialization: 2025-07-28T03:47:22.003708
1+
Translation initialization: 2025-07-31T00:57:32.556031

docs/cn/sql-reference/00-sql-reference/10-data-types/vector.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ title: Vector
44

55
import FunctionDescription from '@site/src/components/FunctionDescription';
66

7-
<FunctionDescription description="引入或更新于:v1.2.777"/>
7+
<FunctionDescription description="Introduced or updated: v1.2.777"/>
88

99
import EEFeature from '@site/src/components/EEFeature';
1010

1111
<EEFeature featureName='VECTOR INDEX'/>
1212

13-
VECTOR 数据类型用于存储由 32 位浮点数组成的多维数组,专为机器学习、人工智能(AI)应用和相似性搜索操作而设计。每个向量在创建时都指定了固定的维度(dimension,即长度)。
13+
14+
VECTOR 数据类型用于存储由 32 位浮点数组成的多维数组,专为机器学习、人工智能应用和相似性搜索操作而设计。每个向量在创建时都指定了固定的维度(长度)。
1415

1516
## 语法
1617

@@ -19,12 +20,12 @@ column_name VECTOR(<dimension>)
1920
```
2021

2122
其中:
22-
- `dimension`:向量的维度(dimension,即长度)。必须是正整数,最大值为 4096。
23+
- `dimension`:向量的维度(长度)。必须是正整数,最大值为 4096。
2324
- 元素为 32 位浮点数。
2425

2526
## 向量索引
2627

27-
Databend 支持使用 HNSW(Hierarchical Navigable Small World)算法创建向量索引(Vector Index),以实现快速的近似最近邻搜索,可将查询(Query)性能提升 **23 倍**
28+
Databend 支持使用 HNSW(Hierarchical Navigable Small World)算法创建向量索引,以实现快速的近似最近邻搜索,可将查询性能提升 **23 倍**
2829

2930
### 索引语法
3031

@@ -33,10 +34,9 @@ VECTOR INDEX index_name(column_name) distance='cosine,l1,l2'
3334
```
3435

3536
其中:
36-
- `index_name`:向量索引(Vector Index)的名称。
37-
- `column_name`:要索引的 VECTOR 列的名称。
38-
- `distance`:要支持的距离函数。可以是 `'cosine'``'l1'``'l2'`,或组合形式如 `'cosine,l1,l2'`
39-
37+
- `index_name`:向量索引的名称
38+
- `column_name`:要索引的 VECTOR 列的名称
39+
- `distance`:支持的距离函数。可以是 `'cosine'``'l1'``'l2'`,或组合形式如 `'cosine,l1,l2'`
4040

4141
### 支持的距离函数
4242

@@ -48,7 +48,7 @@ VECTOR INDEX index_name(column_name) distance='cosine,l1,l2'
4848

4949
## 基本用法
5050

51-
### 步骤 1:创建带有向量的表
51+
### 步骤 1:创建带向量的表
5252

5353
```sql
5454
-- 创建带有向量索引的表,以实现高效的相似性搜索
@@ -60,7 +60,7 @@ CREATE OR REPLACE TABLE products (
6060
);
6161
```
6262

63-
**注意**:当数据插入表中时,向量索引(Vector Index)会自动构建
63+
**注意**:当数据插入表中时,向量索引会自动构建
6464

6565
### 步骤 2:插入向量数据
6666

@@ -98,7 +98,7 @@ LIMIT 3;
9898
└─────┴───────────┴───────────────┴──────────────────┘
9999
```
100100

101-
**说明**该查询(Query)找到了与搜索向量 `[1.2, 2.1, 2.8]` 最相似的 3 个产品。余弦距离值越小,表示相似度越高。
101+
**说明**该查询找到了与搜索向量 `[1.2, 2.1, 2.8]` 最相似的 3 个产品。余弦距离值越小,表示相似度越高。
102102

103103
## 卸载和加载向量数据
104104

@@ -138,4 +138,8 @@ FROM (
138138
FROM @mystage/unload/
139139
)
140140
FILE_FORMAT = (TYPE = 'PARQUET');
141-
```
141+
```
142+
143+
## 向量函数
144+
145+
请参阅 [向量函数](/sql/sql-functions/vector-functions/)

0 commit comments

Comments
 (0)