协议接口

Rerank

用于检索结果重排、知识库召回排序和搜索增强。

方法

POST

接口

/v1/rerank

Base 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."
    ]
  }'