evaluate_retrieval
Measure retrieval quality on labeled cases with hit rate, MRR, and recall@k. Quantify search performance and catch regressions before or after changing chunking or embedders.
Instructions
Measure retrieval quality on labeled cases: hit_rate, MRR, and recall@k.
Each case is {query, relevant_sources}. Use this to quantify quality and catch
regressions — e.g. before and after changing chunking or switching embedders.
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": {
"cases": "<cases>"
},
"name": "evaluate_retrieval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | hybrid | |
| cases | Yes | ||
| top_k | No | ||
| collection | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||