Filtering 151 tools down to 5 with a 350M retrieval model
- Source
- liquid.ai
- Publisher
- Liquid AI
- Author
- Liquid AI
- Date

Context
Liquid AI is showing a way to keep an AI agent's tool list short: run a small search model over all the tools first, and hand the only the best matches. An agent sees the description of every tool it can call, and the company's demo post says that loading too many of them slows responses and can lead to the wrong tool being picked. In the demo, the 350-million-parameter retrieval model LFM2.5-ColBERT-350M narrows 151 tools to five. Liquid AI says it is fast and reliable without task-specific , but it publishes no accuracy figure for the demo, so how often the right tool falls outside the five is not shown.
The filter treats each tool as a short document to search. The demo's published code builds that document from the tool's name, description, parameter names and allowed values, encodes every tool once and caches the result. For each request, it encodes only the request and returns the five highest-scoring tools; it contains no language model of its own. ColBERT scoring keeps a vector for every token rather than one per document, then takes each word of the request, finds its closest match anywhere in a tool's text, and averages those best matches. Liquid AI's retriever release post says this word-by-word matching buys accuracy at the cost of a larger index. The same code can instead run the companion single-vector LFM2.5--350M; a setting picks between the two, and the published files disagree about which is the default, so they do not show which model the live demo runs.
The retrievers were built for this kind of job. Liquid AI aimed them at short-text search such as product catalogs and FAQ pages, and tool descriptions are short texts of the same kind. With documents already encoded, the release post reports a median of 8.2 milliseconds to encode a query and score it with ColBERT on its llama.cpp build, which is meant for CPUs, laptops and edge devices, though it names neither the test hardware nor the size of the collection searched. Because the demo caches its tool encodings, that query step is the only search work it repeats on each request. The release announcement covers the two models as document search tools; the demo applies the same matching to choosing tools.
- Large language model — A model trained on large amounts of data to process and generate language.
- fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
- embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.






