BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Contents

Document reranking

Document reranking

Send query and documents to receive ranked index and relevance_score values. Billing unit: search, at the model page price multiplied by usage.search_units rather than document count. Streaming (stream) is not supported.

POST/v1/rerank
curl https://api.bazaarlink.ai/v1/rerank \
  -H "$BAZAARLINK_AUTH_HEADER" \
  -H "Content-Type: application/json" \
  -d '{"model":"your-rerank-model-id","query":"capital of France","documents":["Paris is the capital of France.","Berlin is in Germany."],"top_n":1}'

Full parameter reference: Document reranking

Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Document reranking | BazaarLink