Send POST https://infistar.ai/v1/rerank with Authorization: Bearer YOUR_API_KEY and Content-Type: application/json.
FieldRequiredMeaning
modelYesAn available reranking model ID
queryYesThe user’s search text or question
documentsYesCandidate text passages, in their original order
top_nNoNumber of highest-ranked results to return
return_documentsNoInclude document text when true; default false
Use the returned index to map each result to the original candidate. relevance_score expresses relevance for that model; it is not a universal threshold across models. Reranking follows candidate retrieval; it does not store your documents or replace a vector database. See RAG integration.