用途
用于对候选文本结果做相关性重排。请求
- Method:
POST - URL:
https://api.hubto.ai/v1/rerank - Auth:
Authorization: Bearer YOUR_API_KEY - Content-Type:
application/json
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Rerank 文本重排接口。
POSThttps://api.hubto.ai/v1/rerankAuthorization: Bearer YOUR_API_KEYapplication/json{
"model": "rerank-v1",
"query": "统一大模型网关",
"documents": [
"HubTo 提供统一 API 入口。",
"今天上海天气晴。"
]
}
curl https://api.hubto.ai/v1/rerank \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "rerank-v1",
"query": "统一大模型网关",
"documents": [
"HubTo 提供统一 API 入口。",
"今天上海天气晴。"
]
}'