知识库
混合搜索
Changed on底层召回:向量+关键词混合检索,默认不 rerank(可用 rerank 字段开启);一般检索请用 /knowledge-search。推荐 POST,GET 带 JSON 体仅兼容旧客户端。
get/knowledge-bases/{id}/hybrid-search
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-bases/{id}/hybrid-search
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Path parameters
idstring required
知识库ID
Query parameters
resource_urls'handle' | 'public'
文件引用形式,public 返回可加载直链
Request body
Response
搜索结果
Example response
{
"success": true
}Changes
- info
added the non-success response with the status
- info
- info
added the new optional
queryrequest parameterresource_urls
- info