You need to enable JavaScript to run this app.
文档中心
向量数据库VikingDB

向量数据库VikingDB

复制全文
下载 pdf
实验版本(新)
list
复制全文
下载 pdf
list

api/knowledge/pipeline/list:查看一个知识库下的所有实验版本列表

前提条件

完成“签名鉴权方式”页面的注册账号、实名认证、AK/SK 密钥获取和签名获取后,可调用 API 接口实现查看一个知识库下所有实验版本信息的功能

请求接口
URIapi/knowledge/pipeline/list统一资源标识符
请求方法POST客户端对知识库服务端请求的操作类型
请求头Content-Type: application/json请求消息类型
Authorization: HMAC-SHA256 ***鉴权
请求参数
参数类型必选默认值备注
collection_namestring否*知识库名称
projectstring否default项目名
resource_idstring二选一*知识库唯一 ID;与 collection_name 至少传一个,都不传返回参数错误,同时传入时优先使用 resource_id。
响应消息
参数参数说明
code状态码
message返回信息
dataobject,包含 collection_name: string 和 pipeline_list: list<object>。pipeline_list 每项包含 pipeline_name、data_type、index_list、preprocessing_list、table_config_list、auto_sync_doc、create_time、update_time、creator、resource_usage 等字段,结构与 pipeline/info 的 pipeline_info 一致。

状态码说明

状态码http状态码返回信息状态码说明
0200success成功
1000001403unauthorized鉴权失败
1000002403no permission权限不足

1000003

400

invalid request: %s

非法参数

  • 缺失必选参数
  • collection_name 命名不符合规范
  • 字段类型与相关字段属性不满足约束条件
完整示例

请求消息

curl -i -X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: HMAC-SHA256 ***' \
https://api-knowledgebase.mlp.cn-beijing.volces.com/api/knowledge/pipeline/list \
-d '{
"collection_name": "test_collection_name",
"project": "default"
}'

响应消息

执行成功返回:

HTTP/1.1 200 OK
Content-Length: 1024
Content-Type: application/json

{
  "code": 0,
  "message": "success",
  "request_id": "021695029537650fd001de666660000000000000000000230da93",
  "data": {
    "collection_name": "test_collection_name",
    "pipeline_list": [
      {
        "pipeline_name": "default",
        "data_type": "unstructured_data",
        "index": {
          "vector_index": {
            "dimension": 1536,
            "metric": "cosine"
          }
        },
        "preprocessing": {
          "chunk_strategy": {
            "chunk_type": "fixed_size",
            "chunk_size": 800,
            "chunk_overlap": 400
          }
        },
        "auto_sync_doc": true,
        "create_time": "2024-11-01T10:30:00Z",
        "update_time": "2024-11-01T10:31:00Z"
      },
      {
        "pipeline_name": "custom_pipeline_01",
        "data_type": "unstructured_data",
        "index": {
          "vector_index": {
            "dimension": 1536,
            "metric": "cosine"
          }
        },
        "preprocessing": {
          "chunk_strategy": {
            "chunk_type": "fixed_size",
            "chunk_size": 1000,
            "chunk_overlap": 200
          }
        },
        "auto_sync_doc": false,
        "create_time": "2024-12-01T15:20:00Z",
        "update_time": "2024-12-01T15:21:00Z"
      }
    ]
  }
}

执行失败返回:

HTTP/1.1 400 Bad Request
Content-Length: 95
Content-Type: application/json

{
"code": 1000003,
"message": "invalid request: collection not found",
"request_id": "021695029757920fd001de6666600000000000000000002569b8f"
}
最近更新时间:2026.09.08 20:33:13
这个页面对您有帮助吗?
有用
有用
无用
无用