Skip to content

Tool Retrieval

Overview

Tool Retrieval is a component of agent systems that automatically determines which tools (functions, APIs, plugins) are most relevant for fulfilling the current user request. It is used when the catalog of tools is too large to pass all of them into the model's context.

Architecture

flowchart LR
    A[User Request] --> B[Query Embedding]
    B --> C[Catalog Search]
    C --> D[Candidate Ranking]
    D --> E[Top-K Selection]
    E --> F[Pass to LLM Context]
    F --> G[Invoke Tool]

Methods

Method Description Advantages
Vector Search Comparison of query embeddings and tool descriptions Scalability
Classification Model predicts the category of the tool Accuracy on typical requests
Hybrid Combination of vector search and rules Robustness to query diversity
Ranking Learning Specialized model ranks tools High accuracy

See Also

← All Terms