Sort By Relevance
sort_by_relevanceRerank a list of documents by relevance to a query using Jina Reranker API.
How it works ↓Pricing
Per call
$0.01
Model
flat
Pay only for what you use. No subscriptions.
Inputs
documents *
arraytop_n
numberquery *
stringInput Parameters
Cost per run
Execution cost$0.01
About Sort By Relevance
Rerank a list of documents by relevance to a query using Jina Reranker API. Use this when you have multiple documents and want to sort them by how well they match a specific query or topic. Perfect for document retrieval, content filtering, or finding the most relevant information from a collection.
Frequently Asked Questions
Rerank a list of documents by relevance to a query using Jina Reranker API. Use this when you have multiple documents and want to sort them by how well they match a specific query or topic. Perfect for document retrieval, content filtering, or finding the most relevant information from a collection.
Sort By Relevance costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.
Connect the Jina AI MCP endpoint to your client — Claude Code: claude mcp add --transport http jina "https://jina.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see sort_by_relevance as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath jina/sort_by_relevance.)
Yes — that's exactly what xpay is for. You don't need a Jina AI account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Sort By Relevance immediately. Billing flows through your xpay balance.
Sort By Relevance accepts 3 input parameters: documents, top_n, query. See the input schema and runnable form on this page for details and to test live.

