Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Retrieval and Knowledge Systems

Free · sign in to start and track progress

1 · Building the index

  • 1Embeddings in practice
  • 2Chunking structured documents
  • 3Vector indexes and databases
  • 4Measuring retrieval

2 · Retrieval that reasons

  • 5Hybrid search and reranking
  • 6Agentic retrieval

    Exercise answers

    • Answer: Compare single-shot, grep-only and full agentic retrieval
    • Answer: Build scoped matter tools with the Agent SDK (stretch)
  • 7Knowledge graphs and GraphRAG
  • 8Long context versus RAG
CapstoneA measured retrieval service for cases and reference documentsReference implementation

Module 2 · Retrieval that reasons · Lesson 6

Agentic retrieval

How to let an agent run its own searches with search, grep and read tools, follow cross-references across a case's documents, and stay within a token and latency budget.

75 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvGet an OpenRouter keyLocal models with Ollama

By the end of this lesson you can

  • Explain why single-shot retrieval fails on multi-hop questions, and how interleaving retrieval with reasoning fixes it
  • Design a small set of retrieval tools (list, search, grep, read) with scoped access, compact results and stable citations
  • Decide when grep and file tools beat an index, using corpus size, vocabulary and the evidence on agentic search
  • Evaluate an agentic retriever on evidence recall, answer quality, tool calls, tokens and latency

On this page

  • From one search to a loop
  • Designing the tools
  • Grep as retrieval
  • Patterns for multi-hop questions
  • Cost, latency and budgets
  • Evaluating an agentic retriever
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01From one search to a loop
  2. 02Designing the tools
  3. 03Grep as retrieval
  4. 04Patterns for multi-hop questions
  5. 05Cost, latency and budgets
  6. 06Evaluating an agentic retriever
  7. 07Connections
  8. 08Summary

Sources & further reading

  • ReAct: Synergizing Reasoning and Acting in Language ModelsPaper · Yao et al. · 2023The reason-act-observe loop that underlies every agentic retriever. Read section 3 and the HotpotQA trajectories to see search decisions made mid-reasoning.
  • Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step QuestionsPaper · Trivedi, Balasubramanian, Khot, Sabharwal · 2023IRCoT. Each reasoning step chooses the next retrieval query. The clearest evidence that multi-hop questions need retrieval that depends on what was just read.
  • Is Grep All You Need? How Agent Harnesses Reshape Agentic SearchPaper · Sen, Kasturi, Lumer, Gulati, Subbiah · 2026Compares grep and vector retrieval inside Claude Code, Codex, Gemini CLI and a custom harness. Grep generally scored higher, but the harness and how tool output is presented mattered a great deal. Read the experiment design before generalising.
  • Agentic Retrieval-Augmented Generation: A Survey on Agentic RAGPaper · Singh, Ehtesham, Kumar, Khoei, Vasilakos · 2025A map of agentic RAG patterns (routing, planning, reflection, multi-agent). Use it as a taxonomy; skim the architecture figures.
  • Building agents with the Claude Agent SDKLab research · Thariq Shihipar · Anthropic · 2025Anthropic's guidance to start with agentic search over files and add semantic search only when you need speed or more variation. Read the section on agentic search and the file system.
  • How we built our multi-agent research systemLab research · Hadfield et al. · Anthropic · 2025Search strategy (start broad, then narrow), parallel subagents and the token cost of agentic search. Read the sections on prompting search strategy and on evaluation.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks