协议接口
Rerank
用于检索结果重排、知识库召回排序和搜索增强。
方法
POST接口
/v1/rerankBase URL
https://api-zeno.com/v1鉴权
Authorization: Bearer $API_ZENO_KEY说明
- 请求包含 query 和 documents。
- 模型、价格和渠道需在后台配置。
示例
bash
curl https://api-zeno.com/v1/rerank \
-H "Authorization: Bearer $API_ZENO_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bge-reranker-large",
"query": "gateway billing trace",
"documents": [
"API logs include request_id and channel_id.",
"Frontend theme settings are stored locally."
]
}'