Skip to main content
POST
/
v1
/
rerank
创建重排序
curl --request POST \
  --url https://aiapi.xiaoliu.fun/v1/rerank \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "query": "<string>",
  "documents": [
    "<string>"
  ],
  "top_n": 123
}
'
{
  "results": [
    {
      "index": 123,
      "relevance_score": 123
    }
  ],
  "usage": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
query
string
required
documents
string[]
required
top_n
integer

Response

200 - application/json

成功响应

results
object[]
usage
object