CourseAgentic AI Engineer: The Complete Course · Module 9: Retrieval for Agents · part 51 of 97
Part 51 · Module 9: Retrieval for Agents

Lesson 2: Grep, SQL, files and past runs as tools

31 min read·13 Oct 2026
Module 9 · Lesson 2 · About 55 minutes · Needs: the shared data's compact tools (make_tools, run_tool; Module 3 builds their final form) and Module 5 (Lesson 1, the loop)

The situation

It is Wednesday 27 May 2026, week 7. Request R-1006 is back in the test queue: Aisha Rahman writes again about her RoboSweep robot vacuum, order 5521. "Sending again in case you missed it."

Dev has a plan: "Put everything in one vector store. Help centre, orders, past runs. One search tool." Priya is not sure. "The agent needs to know it already started this return on R-1001, what it told her, and what the policy says. That is an id, a database row and a sentence. Is similarity search the way to find them?"

This lesson gives the agent other ways to look things up, and a way to show where each fact came from.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.