分块管理

获取知识分块列表

获取指定知识下的所有分块列表,支持分页。chunk_type 可重复,缺省 text 取值 text, parent_text, image_ocr, image_caption, image_vector, summary, entity, relationship, faq, web_search, table_summary, table_column, wiki_page

get/chunks/{knowledge_id}

Request

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

Path parameters

knowledge_idstring required

知识ID

Query parameters

pageinteger

页码

page_sizeinteger

每页数量

chunk_typestring[]

分块类型,可重复,缺省 text

Response

分块列表

pageinteger
page_sizeinteger
successboolean
totalinteger

Example response

{
  "success": true
}

Changes