Inspect Hybrid Retrieval & RRF
inspect_retrievalDiagnose RAG retrieval misses and low rankings by comparing vector and keyword/FTS scores and inspecting RRF fusion, tenant pre-filtering, and timings.
Instructions
只读排查 PostgreSQL/PgVector 企业级 RAG 检索链路:对比单路向量检索分数与关键词/FTS 分数、展示 RRF 融合排名及多租户 Pre-filtering 结果和耗时,定位漏召回或排序偏低问题。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "inspect_retrieval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 待排查的用户检索问题原文或关键词 | |
| rrf_k | No | RRF 平滑常数 k,默认 20 | |
| top_k | No | 返回 RRF 融合后的候选分块数量,上限 20 | |
| tenant_id | No | 多租户 Pre-filtering 租户标识,默认 default | default |
| doc_status | No | 文档版本状态过滤,默认 active | active |
| collection_name | No | 可选:限定知识库集合名称(如 kblegal / kbgroupfinance) |