Course Wiki

Agents — LLM Zoomcamp Module 1

--- video_url: 'https://www.youtube.com/watch?v=6uG4_Ivv60E&list=PL3MmuxUbc_hLZFNgSad56pDBKK8KO0XIv' --- # Agents

LLM Zoomcamp › Module 1: Agentic RAG › Agents

Notes


video_url: “https://www.youtube.com/watch?v=6uG4_Ivv60E&list=PL3MmuxUbc_hLZFNgSad56pDBKK8KO0XIv”

Agents

In Part 1 of this module we built RAG pipelines.

Every pipeline we wrote followed the same flow:

This returns good answers when the user’s query matches the documents. The search finds the right entry, the LLM reads it, and you get a helpful reply.

Often, though, the search returns nothing useful.

We use lexical search here, so the search looks for an exact match. One typo and it misses the entry it needed. In our pipeline there’s no recovery. The search runs once, and if it returns garbage the LLM gets garbage. Our pipeline always does the same thing, no matter what.

Instead of routing the user question straight to search, we can hand control to the LLM and let it drive.

The LLM is in charge now, and it can:

A fixed flow can’t do any of this. Once we put the LLM in control, our system becomes agentic, so it’s flexible rather than rigid.

An agent uses an LLM to decide which actions to take and in which order. Instead of a fixed flow, the LLM chooses what to do at each step.

In Part 2 of this module, we’ll cover:

We build on top of the RAG pipeline from Part 1, which used keyword search with minsearch. If you skipped Part 1, the next lesson does a quick revision and walks you through downloading the helpers.

Key concepts

Sources


DataTalks.Club. Hosted on GitHub Pages. Built with Rustkyll. We use cookies.