知识库接口问答型
查询索引状态
接口描述
此接口用于查询知识库中问答对的索引状态,以确认数据是否可被 Bot 正常检索。
基础信息
| 请求地址 | /qa/document/{data_id}/status |
|---|---|
| 请求域名 | • 办公网域名:http://jiuwen-api.vmic.xyz/v1 • IDC域名:http://jiuwen-api.vivo.lan:8080/v1 |
| 请求方法 | GET |
请求参数
Path Params
| 参数名 | 类型 | 说明 |
|---|---|---|
data_id | string | 数据 ID |
返回参数
| 结果key | 类型 | 是否不为空 | 说明 |
|---|---|---|---|
| status | 字符串 | 否 | 索引状态 indexing、deleting、completed、error、null |
示例
Request
curl --location --request GET '${props?.api_base_url}/qa/document/{data_id}/status' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data-raw ''Response
{
"status": "completed"
}