KnowledgeBase
查询知识库。Query knowledge base.
查询知识库,供 AI 模型检索相关文档使用。 Documentation: https://docs.cnb.cool/zh/ai/knowledge-base.html Query the knowledge base for AI model document retrieval. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r
get/{repo}/-/knowledge/base/query
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/knowledge/base/query
- Auth: API key in header Authorization
Path parameters
repostring required
仓库。Repo.
Query parameters
querystring required
查询语句。Query text.
top_kinteger
返回结果数量,默认 5。Number of results to return, default 5.
score_thresholdnumber
分数阈值,默认 0。Score threshold, default 0.
metadata_filtering_conditionsstring
元数据过滤条件,JSON 字符串
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.