BeeBridge AIBeeBridge AI
API Reference
AI Model APIRerank
⚠️Compliance notice: Use this project only for lawfully authorized API gateway, internal management, and private deployment scenarios. Follow upstream terms of service, platform rules, regulatory requirements, and content safety requirements.

Document Reranking

Rerank document list by relevance based on query

POST
/v1/rerank
AuthorizationBearer <token>

Authenticate with a Bearer token. Format: Authorization: Bearer sk-xxxxxx

In: header

modelstring
querystring

Search text

documents

Documents to rerank

top_n?integer

Return the top N results

return_documents?boolean
Defaultfalse

Response Body

application/json

curl -X POST "https://api.beeaicloud.com/v1/rerank" \  -H "Content-Type: application/json" \  -d '{    "model": "rerank-english-v2.0",    "query": "string",    "documents": [      "string"    ]  }'
{
  "id": "string",
  "results": [
    {
      "index": 0,
      "relevance_score": 0,
      "document": {}
    }
  ],
  "meta": {}
}

How is this guide?

Document Reranking | BeeBridge AI