Sort By Relevance
sort_by_relevanceRerank 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.
When to Use
Use this tool when you need to 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.. This is part of the Jina AI provider on xpay✦.
MCP Connection
Connect to xpay✦ to access this tool (and 19+ others):
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}
For Claude Code:
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
How to Execute
Use the xpay✦ meta-tools to run this tool:
xpay_details— Get full input schema:xpay_details("jina/sort_by_relevance")xpay_run— Execute:xpay_run("jina/sort_by_relevance", { ...inputs })
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
documents | array | Yes | Array of document texts to rerank by relevance |
top_n | number | No | Maximum number of top results to return |
query | string | Yes | The query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions') |
Pricing
- Cost: $0.01/call
- Balance check: Use
xpay_balanceto check remaining credits - Get your API key at xpay.tools — $5 free credits included
Related Skills
- Jina AI (all tools) — 20 tools
- Show Api Key — $0.01/call
- Primer — $0.01/call
- Guess Datetime Url — $0.01/call
- Capture Screenshot Url — $0.01/call
- Read Url — $0.01/call
Links
- Tool page: https://xpay.tools/jina/sort-by-relevance/
- Provider: https://xpay.tools/jina/
- All tools: https://xpay.tools/explore
How to Execute
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
documents | array | Yes | Array of document texts to rerank by relevance |
top_n | number | No | Maximum number of top results to return |
query | string | Yes | The query or topic to rank documents against (e.g., 'machine learning algorithms', 'climate change solutions') |
Install Skill
Pricing
Cost
$0.01/call
Model
Flat rate
Provider
Jina AI

