Analyze reranker lift
analyze_reranker_liftMeasures per-query Spearman and Kendall rank correlation between bi-encoder and cross-encoder results to show whether a reranker actively reorders or mostly confirms order.
Instructions
Per-query Spearman + Kendall correlation between bi-encoder and cross-encoder ranks, aggregated across queries in the window. Low correlation = the reranker is actively reordering (doing real work); high correlation = the reranker mostly confirms the bi-encoder order. Optional model / retrieval_index filters. Surfaces reranker_idle (WARNING) when the reranker rarely changes ordering. Reads from mcpg_rag.rerank_events; returns a report with zero counts when the table doesn't exist or the window is empty.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_reranker_lift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| model | No | ||
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. | |
| retrieval_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| findings | Yes | ||
| query_count | Yes | ||
| window_days | Yes | ||
| mean_kendall | Yes | ||
| p25_spearman | Yes | ||
| p75_spearman | Yes | ||
| mean_spearman | Yes | ||
| interpretation | Yes | ||
| retrieval_index | Yes |