皖信智能对话 copy
    皖信智能对话 copy
    • 二进制文件
      POST
    • 知识库召回测试
      POST
    • 文件解析接口
      POST
    • 语料库文件添加
      POST
    • 问答库文件添加
      POST
    • 问答库以及语料库内容删除
      POST
    • 工作流运行
      POST
    • 工作流保存接口
      POST
    • 知识库初始化
      POST

      文件解析接口

      正式环境
      http://121.229.177.64:8088/wanxin_ai/
      正式环境
      http://121.229.177.64:8088/wanxin_ai/
      POST
      /zhixin_agent/files/extract_files
      文件分析
      本接口用于从minio知识库中拉取文件,使用算法解析文件,并把数据以markdown格式保存到数据库里,目前支持:txt md pdf docx xlsx

      请求参数

      Body 参数application/json
      tasks
      array [object {4}] 
      必需
      task_id
      string 
      任务id
      必需
      file_path
      string 
      文件地址
      必需
      bucket
      string 
      桶名称
      必需
      type
      string 
      类型
      必需
      示例
      {
          "tasks": [
              {
                  "task_id": "c26416f6-89e7-51b8-8db6-c1f937ec62b1",
                  "file_path": "knowledgeBase/皖咨AI智慧咨询系统-咨询智能体项目方案V1.7-0508.docx",
                  "bucket": "ai-app",
                  "type": "政策类"
              },
              {
                  "task_id": "c36416f6-89e7-51b8-8db6-c1f937ec62b1",
                  "file_path": "knowledgeBase/皖咨AI智慧咨询系统-咨询智能体项目方案V1.7-0508.docx",
                  "bucket": "ai-app",
                  "type": "课题类"
              }
          ]
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://121.229.177.64:8088/wanxin_ai//zhixin_agent/files/extract_files' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "tasks": [
              {
                  "task_id": "c26416f6-89e7-51b8-8db6-c1f937ec62b1",
                  "file_path": "knowledgeBase/皖咨AI智慧咨询系统-咨询智能体项目方案V1.7-0508.docx",
                  "bucket": "ai-app",
                  "type": "政策类"
              },
              {
                  "task_id": "c36416f6-89e7-51b8-8db6-c1f937ec62b1",
                  "file_path": "knowledgeBase/皖咨AI智慧咨询系统-咨询智能体项目方案V1.7-0508.docx",
                  "bucket": "ai-app",
                  "type": "课题类"
              }
          ]
      }'

      返回响应

      🟢200成功
      application/json
      Body
      results
      array [object {4}] 
      必需
      task_id
      string 
      任务id
      必需
      同接口传入的id
      status
      string 
      必需
      任务状态:200任务开始 201任务处理中 202任务处理完成 500任务异常
      message
      string 
      信息
      必需
      error
      string 
      错误信息
      必需
      示例
      {
          "results": [
              {
                  "task_id": "9",
                  "status": "201",
                  "message": "任务处理中",
                  "error": ""
              }
          ]
      }
      修改于 2025-06-16 03:01:41
      上一页
      知识库召回测试
      下一页
      语料库文件添加
      Built with