mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

Hybrid Search and Reranker for better tool search

Open qdrddr opened this issue 1 year ago • 6 comments

A hybrid search of sparse BM25 and dense embedding model (openai text-embedding-3) typically can improve the quality of the semantic search.

Reranker models can also improve the final result.

qdrddr avatar Jul 21 '25 13:07 qdrddr

Reranker with graphs https://github.com/Bavalpreet/MediumBlogs/blob/main/Knowledgegraph%20Reranking/Knowledge_graph_re_ranking.ipynb

qdrddr avatar Jul 29 '25 01:07 qdrddr

i'd like to see a PR from this feature 🚀

gabornyergesX avatar Jul 29 '25 06:07 gabornyergesX

Suggested Embedding model: Codestral-Embed from mistral and Mxbai-rerank-v2 to improve performance for, code, MCP, and tool retrieval.

qdrddr avatar Jul 29 '25 20:07 qdrddr

Suggested Embedded (In-Progress) VectorDBs:

https://github.com/tursodatabase/turso https://github.com/chroma-core/chroma https://github.com/lancedb/lancedb

qdrddr avatar Jul 30 '25 13:07 qdrddr

Would appreciate if you vote for this improvement idea to standardize MCP Specification with Delegated Advanced Tool Search in my comment feature here.

qdrddr avatar Jul 31 '25 21:07 qdrddr

Closing as not planned. Thank you @qdrddr for the proposal and everyone who added to the thread.

mcpproxy keeps tool search on BM25 for now. Embeddings that are good enough to beat it need a local model of real size: more disk space, a slower first start and indexing time on every tool change, on a desktop app that should stay small and start fast. The alternative, calling a hosted embedding API, sends tool descriptions off the machine, which we do not want as a default.

What we do instead is improve the lexical side (compact signatures, describe_tool, better tokenisation) and expose why a query missed. If a specific query fails to find a tool it should, please open an issue with the query and the tool name — those are fixable one by one.

Dumbris avatar Nov 24 '26 19:11 Dumbris