Tool Search is an open-source, LLM-agnostic implementation of the 'Tool Search' architectural pattern, designed to enhance how LLMs interact with large tool catalogs. Instead of loading all tool definitions upfront, which can lead to context collapse, high costs, and reduced accuracy, this system defers tool loading. It initially provides the LLM with a lightweight catalog summary, then dynamically fetches and presents only the most relevant tool definitions when needed. This approach drastically cuts context window token usage by up to 82%, boosts routing accuracy to 96% (top-1), and accelerates Time To First Token (TTFT) by over 2x, making LLMs more efficient and cost-effective in complex environments.
主要功能
0196% routing accuracy for tool selection
02Up to 82% context window reduction for LLMs
03BM25-based tool search with zero dependencies
04Experimental visual routing using vision models (v0.2)
050 GitHub stars
06Dynamic 'defer_loading' pattern for tool schemas
使用案例
01Improving routing accuracy and efficiency for LLM agents with large tool catalogs (50+ tools).
02Reducing API costs for LLM interactions by minimizing context token usage.
03Accelerating Time To First Token (TTFT) for local and self-hosted LLMs when selecting tools.