知识管理

从文件创建知识

Changed on

上传文件并创建知识条目

post/knowledge-bases/{id}/knowledge/file

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/knowledge-bases/{id}/knowledge/file
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识库ID

Request body multipart/form-data

filestring binary required

上传的文件

fileNamestring

自定义文件名

metadatastring

元数据JSON

enable_multimodelboolean

启用多模态处理

tag_idsstring

分类ID列表,逗号分隔

process_configstring

处理配置JSON(KnowledgeProcessOverrides)

Response

创建的知识

successboolean

Example response

{
  "success": true
}

Changes