Local CPU vector mesh beats BM25 routing 100k tools: 70.7% top-1 at 9.6ms

Key_Coconut_9269 · reddit · 2026-10-27

Why dump 4,000+ tokens of tool schemas into every LLM turn just for an L7 routing lookup? The author decoupled tool discovery from the LLM using a local CPU vector mesh (all-MiniLM-L6-v2 + chromadb HNSW) plus a split execution daemon. Key trick: embed tool name, description, schema keys, and tags as one profile vector instead of the name alone. Cold-cache benchmark on 100,000 synthetic tool endpoints: naive keyword scan 38.1% top-1 at 46ms; BM25 40.4% at 194ms; local vector mesh 70.7% at 9.56ms (p95 11.4ms); in-memory fast path at 0.082ms.

Original post →

More from coding & agent

coding & agent channel →