知识库接口文档型
结果查询
接口描述
此接口用于轮询查看文档是否解析完成,用于解决文档API提交RAG解析为异步的情况。
基础信息
| 请求地址 | /doc/document/<document_id>/status |
|---|---|
| 请求域名 | • 办公网域名:http://jiuwen-api.vmic.xyz/v1 • IDC域名:http://jiuwen-api.vivo.lan:8080/v1 |
| 请求方法 | GET |
请求参数
Path Param
| 参数名 | 类型 | 说明 |
|---|---|---|
document_id | string | 文档id,调用文档提交接口返回的document_id |
返回参数
| 结果key | 类型 | 是否不为空 | 说明 |
|---|---|---|---|
| status | 字符串 | 否 | 索引状态 indexing、deleting、completed、error、null |
示例
Request
curl --location --request GET 'http://{HOST}/v1/doc/document/{document_id}/status' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY'Response
{
"status": "completed"
}