知识管理
获取知识文档解析的 Span 树(含历史尝试)
Changed on返回该知识在解析流水线的 trace tree(root → stage → subspan):每段状态、耗时、input/output、错误码、langfuse_trace_id。支持 ?attempt=N 查看历史尝试;不传则返回最新尝试。前端用于渲染时间线 + 多模态/embedding 子节点 + 一键跳转 Langfuse。
get/knowledge/{id}/spans
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/{id}/spans
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Path parameters
idstring required
知识ID
Query parameters
attemptinteger
指定尝试号;省略或非正数=最新
Response
OK
Example response
{
"success": true
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
endpoint added
- info