Course Wiki

Wrap-up of Part 1 — LLM Zoomcamp Module 1

--- video_url: 'https://www.youtube.com/watch?v=RPXMz5p5fb8&list=PL3MmuxUbc_hLZFNgSad56pDBKK8KO0XIv' --- # Wrap-up of Part 1

LLM Zoomcamp › Module 1: Agentic RAG › Wrap-up of Part 1

Notes


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

Wrap-up of Part 1

In Part 1 of this module, we:

You now have a working RAG system and a clear mental model for how each piece fits together. From here, the work is making each piece better.

Two directions forward

Part 2 of this module: Agents. Our pipeline runs search once with the exact user query, unchanged. If that search returns garbage, the LLM has no way to recover. An agent puts the LLM in charge instead. It decides what to search for, how many searches to run, and when to stop.

An agent also handles questions in another language. It translates the query before searching, then translates the answer back afterward.

Module 2: Vector Search. Keyword matches are exact. Vector search matches by semantic meaning instead, which helps when the user phrases things differently from the FAQ.

Elasticsearch

Elasticsearch is the industry standard for text search.

It supports:

It’s heavier than sqlitesearch but handles production workloads at scale. If you’re building a real RAG system, Elasticsearch (or OpenSearch) is a common choice for the search backend.

For an Elasticsearch tutorial, see the supplementary materials for Module 1.

Fine-tuning vs RAG

Instead of retrieving documents at query time, you could fine-tune the LLM on your data.

Fine-tuning means taking a model’s weights and adjusting them for your specific use case.

This works, but it has downsides:

RAG is more flexible, cheaper, and works with any LLM. In practice, fine-tuning is rarely needed. I’ve never personally hit a case that required it. When I analyzed around 2,500 job descriptions for my AI engineering field guide, few asked for it. So focus on RAG first, and reach for fine-tuning only when you genuinely need it.

Moving forward

Try these next steps:

Key concepts

Sources


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