Pattern

Agentic search (tool-driven iterative retrieval)

Let the model drive retrieval: give it search tools (grep, file listing, file reads, a keyword or vector search endpoint) and let it plan queries, read the results, and search again until it has what it needs, instead of running one fixed retrieve-then-generate pass.

Classification Retrieval run as a loop of search tool calls that the model plans and refines.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.

Search the catalog