知识管理
批量获取知识
Changed on根据ID列表批量获取知识条目。可选 kb_id:指定时按该知识库校验权限并用于共享知识库的空间解析;可选 agent_id:使用共享智能体时传此参数,后端按智能体所属空间查询(用于刷新后恢复共享知识库下的文件)
get/knowledge/batch
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/batch
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Query parameters
idsstring[] required
知识ID列表
kb_idstring
可选,知识库ID(用于共享知识库时指定范围)
agent_idstring
可选,共享智能体ID(用于按智能体空间批量拉取文件详情)
Response
知识列表
Example response
{
"success": true
}Changes
- info
added the new optional
queryrequest parameteragent_id - info
added the new optional
queryrequest parameterkb_id
- info
- info
the endpoint scheme security
ApiKeyAuthwas added to the API
- info