rag

Upload Document

上传文件入库:支持 .txt/.md/.html/.pdf/.docx(按扩展名/MIME 选解析器)。

title 缺省用文件名;source 缺省用文件名。单文件大小上限见 document_max_upload_mb。 含图过多时先回 needs_vision_confirm,前端确认后带 confirm_vision=true 重传。

post/documents/upload

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/upload
  • Auth: none declared

Response

Successful Response

document_idstring
chunksinteger
needs_vision_confirmboolean
figuresinteger

Changes

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