Skip to main content
Use your API key to rank search results against a query. Reranking scores the documents you provide; it does not search the web or store your index.

Rank documents

cURL
Read results for the ranked matches. Each includes the original index and a relevance_score; return_documents: true also includes the text. Use embeddings to retrieve candidates, then rerank before sending them to your chat model.