Skip to content

Glossary: RAG Beyond the Basics

Tool use

Also written: tool_use, tool_result, tool_choice, search_docs

A feature where the model asks your code to run a function, here `search_docs`, and you send back a `tool_result` with the same `tool_use_id`. `tool_choice` controls whether it may or must call the tool.

Where the book teaches it

Related terms

Agentic RAG (iterative retrieval)