docs-rag-mcp 0.8.0 adds a cross-encoder reranker, lifting correct first results from 12 to 18 of 22
The docs-rag-mcp server, a C# MCP tool that lets AI assistants search local documents, gained an optional reranking step in version 0.8.0. A cross-encoder reads each question alongside candidate passages to reorder the top hybrid search results, since embeddings compare text separately and miss fine distinctions. The developer chose a /rerank HTTP endpoint compatible with several local and hosted servers, avoiding a bundled model that would add native dependencies. Reranking is off by default, and any reranker failure falls back silently to the original hybrid ordering. On a 22-question test set over the MCP C# SDK docs, the correct page ranked first for 18 questions instead of 12, and mean reciprocal rank rose from 0.67 to 0.88.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in