Recommend rerank strategy
recommend_rerank_strategyEvaluates reranker idle time, top-k stability, score clustering, and NDCG changes to produce a concise recommendation and full list of findings for improving RAG reranker strategy.
Instructions
Roll-up advisor over the four analytics for one window. Returns a single headline summary + the full list of findings. Built from whichever combination of reranker_idle / topk_stable / score_clustering / rerank_hurts_ndcg / rerank_lifts_ndcg fires. Also feeds the RAG Reranker Pipeline category in audit_database. Reads from mcpg_rag.rerank_events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| retrieval_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| findings | Yes | ||
| window_days | Yes | ||
| retrieval_index | Yes |