知识管理

从URL创建知识

Changed on

从指定URL抓取内容并创建知识条目。当提供 file_name/file_type 或 URL 路径含已知文件扩展名时,自动切换为文件下载模式

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

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/url
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识库ID

Request body

channelstring
enable_multimodelboolean
file_namestring
file_typestring
tag_idsstring[]
titlestring

Title of the document; defaults to the fetched one.

urlstring required

Page or file URL to import.

Response

创建的知识

successboolean

Example response

{
  "success": true
}

Changes