rag

Create Document

入库文档:同步建 Document 并返回计划块数;切片/嵌入在后台异步完成(稍后可检索)。

post/documents

Request

  • Base URL: https://api.agent4.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.agent4.io/documents
  • Auth: none declared

Request body

titlestring required
contentstring required
content_typestring
sourcestring nullable

Response

Successful Response

document_idstring
chunksinteger
needs_vision_confirmboolean
figuresinteger

Changes

No recorded changes to this operation across all 1 revision of this API.