RyRank — rerank documents by a query
rerankPrioritize a list of documents by relevance to a query, returning scored results for RAG retrieval. Drop-in Cohere-compatible response for existing pipelines.
Instructions
Rerank a list of documents/passages by relevance to a query. Cohere-compatible response (results: [{index, relevance_score}]), so it drops into an existing rerank call. One pass, no GPU, no model download, NO ACCOUNT - $0.001 USDC per call over x402 (about half of Cohere Rerank) or a free tier. Documents are supplied per call and discarded - this is NOT a persistent index (for a standing tool/service catalog use snap_router). Best when the candidates already share vocabulary with the query (typical RAG retrieval output); it favours shared wording over deep pairwise scoring. Up to 1000 docs per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | the query to rank against | |
| top_n | No | return only the top N (default: all) | |
| documents | Yes | 2-1000 documents (strings) | |
| return_documents | No | include the document text in each result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| results | Yes |