创建 Pipeline
This creates an pipeline of the Ingestion, Search, and Deletion types.
该 API 的 Base URL 格式如下:
https://controller.api.${CLOUD_REGION}.zilliz.com.cn
- 你需要将
${CLOUD_REGION}
替换为您的集群所在区域。 - 获取云区域 ID 请参考 Zilliz Cloud 控制台 或使用查看云区域接口。
export CLOUD_REGION="ali-cn-hangzhou"
export BASE_URL="https://controller.api.${CLOUD_REGION}.zilliz.com.cn"
认证令牌,应为具备适当权限的 API 密钥。
Pipeline 名称。Pipeline 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线。
Pipeline 描述。
需要添加的 Function 名称。Ingestion pipeline 中必须添加且只可添加 1 个 INDEX 类型的 Function 和 0-50 个 PRESERVE 类型的 Function。
A function to add. You have the following options.
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线。
Function 类型。文本 Ingestion pipeline 的该参数值仅可以是 INDEX_TEXT
或 PRESERVE
。
文档语言。
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线
Function 类型。文档 Ingestion pipeline 的该参数值仅可以是 INDEX_DOC
或 PRESERVE
。
文档语言。
用于分割文本的 Splitter。Ingestion Pipeline 会根据定义的字符按顺序将文本分割成小片段。默认使用["\n\n", "\n", " ", ""]
作为分隔符。
Splitter。
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线
Function 类型。图像 Ingestion pipeline 的该参数值仅可以是 INDEX_IMAGE
或 PRESERVE
。
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线
Function 类型。用于保留元数据的 Ingestion pipeline 的该参数值仅可以是 PRESERVE
。
输入字段名称。Zilliz Cloud 将在创建 Collection 时使用该名称作为 Collection 字段名称。
输出字段名称。该字段值应该与输入字段的值保持一致。
目标 Collection 中创建的字段数据类型。
Pipeline 所属的目标集群的 ID。
Pipeline 所属的目标 Collection 名称。Zilliz Cloud 会自动检查指定名称的 Collection 是否已经存在。如果该 Collection 已存在,Zilliz Cloud 将为该 Collection 创建 Pipeline。如果不存在,Zilliz CLoud 将自动新创建一个该命名的新 Collection。
目标集群所属的项目 ID。
Pipeline 名称。Pipeline 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线。
Pipeline 描述。
需要添加的 Function 名称。Search pipeline 中只可添加 1 个 Function。
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线。
Function 类型。文本 Search pipeline 的该参数值仅可以是 SEARCH_TEXT
。
Pipeline 所属的集群 ID。
Pipeline 所属的 Collection 名称。
向量搜索时使用的 Embedding 模型。该模型应该与 Pipeline 配套的 Collection 中使用的 Embedding 模型保持一致。更多 Embedding 模型相关信息,请参见Zilliz Cloud Pipelines 使用哪些 Embedding 模型?
向量搜索时使用的 Reranking 模型。使用 Reranker 可以对输出结果进行重新排序,提高搜索结果质量。目前,仅支持 zilliz/bge-reranker-base
作为 Reranker 模型。更多信息,请参考Reranker。
A function to add.
Function 名称。Function 名称应该在 3-64 个字符内,且只可包含数字、字母和下划线。
Function 类型。文档 Search pipeline 的该参数值仅可以是 SEARCH_DOC_CHUNK
。
Pipeline 所属的集群 ID。
Pipeline 所属的 Collection 名称。
向量搜索时使用的 Embedding 模型。该模型应该与 Pipeline 配套的 Collection 中使用的 Embedding 模型保持一致。更多 Embedding 模型相关信息,请参见Zilliz Cloud Pipelines 使用哪些 Embedding 模型?