智信-agent
  1. 知识库管理
智信-agent
  • 文件分析
    • 文件解析接口
      POST
    • 文本分段测试接口
      POST
    • 二进制文件
      POST
    • 二进制文件【json】
      POST
  • 知识库管理
    • 知识库初始化
      POST
    • 知识库召回测试
      POST
    • 知识库查询
      POST
    • 知识库文件添加
      POST
  • 工作流
    • AI生成prompt
      POST
    • 工作流运行
      POST
    • 单节点运行
      POST
    • 工作流保存接口
      POST
    • 代码生成
      POST
    • 获取工作流
      GET
  • MCP管理
    • 建立MCP服务器
      POST
    • MCP服务器工具的添加
      POST
    • MCP服务器工具的删除
      POST
    • MCP服务器工具的修改
      POST
    • 修改服务器名称和描述
      POST
    • 关闭MCP服务器
      POST
    • 查看所有的工具
      POST
    • 查询当前活跃的mcp服务器信息
      GET
    • 使用指定工具
      POST
  • 数据库开发
    • 数据库内部接口
      • 接口整合
      • 自然语言及SQL执行
      • schma查询
      • 单表的字段描述查询
      • all
    • 数据库工作流运行
      • 数据库工作流保存
      • 数据库单节点运行
  • 未命名接口
    GET
  • mineru
    POST
  1. 知识库管理

知识库文件添加

开发中
开发环境
http://172.29.50.10:2333
开发环境
http://172.29.50.10:2333
POST
/zhixin_agent/knowledge_database/append

请求参数

Body 参数application/json

示例
{
    "data_source": {
        "type": "notion_import",
        "info_list": {
            "data_source_type": "notion_import",
            "file_info_list": {
                "file_ids": [
                    "c969a6f5-89e6-41b6-8dbc-cff137ec53b5",
                    "c969a6f5-89e6-41b6-8dbc-cff137ec54b5"
                ]
            }
        }
    },
    "user_id": "20250526hongxmguochuang",
    "dataset_id": "35d60886-3e07-4a65-b3dc-859f22a198ab",
    "doc_form": "text_model",
    "doc_language": "Chinese"
}

请求示例代码

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://172.29.50.10:2333/zhixin_agent/knowledge_database/append' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data_source": {
        "type": "notion_import",
        "info_list": {
            "data_source_type": "notion_import",
            "file_info_list": {
                "file_ids": [
                    "c969a6f5-89e6-41b6-8dbc-cff137ec53b5",
                    "c969a6f5-89e6-41b6-8dbc-cff137ec54b5"
                ]
            }
        }
    },
    "user_id": "20250526hongxmguochuang",
    "dataset_id": "35d60886-3e07-4a65-b3dc-859f22a198ab",
    "doc_form": "text_model",
    "doc_language": "Chinese"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "documents": [
        {
            "id": "string",
            "position": 0,
            "data_source_type": "string",
            "data_source_info": null,
            "data_source_detail_dict": null,
            "dataset_process_rule_id": "string",
            "name": "string",
            "created_from": "string",
            "created_by": "string",
            "created_at": 0,
            "tokens": 0,
            "indexing_status": "string",
            "error": null,
            "enabled": true,
            "disabled_at": null,
            "disabled_by": null,
            "archived": true,
            "display_status": null,
            "word_count": 0,
            "hit_count": 0,
            "doc_form": "string",
            "doc_metadata": null,
            "file_id": "string"
        }
    ],
    "batch": "string",
    "status": 0
}
修改于 2025-07-03 07:31:17
上一页
知识库查询
下一页
AI生成prompt
Built with