Menu

Three things commenters asked me to measure in my local RAG server, and what the numbers said
📰

Three things commenters asked me to measure in my local RAG server, and what the numbers said

DEV Community: dotnet·ahmed manai·3 days ago
#LmNZPHQt
#devtodotnet#devto#dev#reranker#questions
Long article (747 words) — no AI summary yet.
Reading 0:00
15s threshold

A week ago I wrote about adding a reranker to docs-rag-mcp , my local RAG server for Claude, Copilot and other MCP clients. The right page came first for 18 of 22 questions instead of 12.

The comments on that post and the one before it asked good questions I couldn't answer yet. Version 0.9.0 measures three of them. Two answers were not what I expected.

1. Is the right page even reaching the reranker?

A reranker can only reorder what the first search gives it. If the right page isn't among the candidates, no reranker will save it. So the evaluation now asks for 20 passages, the number the reranker chooses from by default, and reports how often the right page is among them (recall@20).

On the MCP C# SDK docs (30 pages, 556 chunks, 22 questions):

Search mode Right page first In the top 3 In the top 20 MRR

vector 11 of 22 15 of 22 21 of 22 0.61

hybrid 12 of 22 17 of 22 22 of 22 0.66

hybrid + reranking 19 of 22 20 of 22 22 of 22 0.91

Hybrid search has the right page in the top 20 for every question.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.