AI interviews · Building with LLMs, retrieval, tuning, agents and other inputs

Retrieval-augmented generation, from chunk to cited answer

Retrieval is the LLM system companies ship most, so interviews probe it from every side. This lesson covers when to use it at all, how documents become searchable chunks, how vector indexes and hybrid search work, how permissions and freshness stay correct, and how to tell a retrieval failure from a generation failure.

18 min read Full lesson in the app Patterns: retrieve-small-return-big, hybrid-then-rerank, filter-before-the-model, retrieval-or-generation-miss

What you'll be able to do

Before this: prompts-and-context

Log in to read the rest of this lesson

Retrieval is the LLM system companies ship most, so interviews probe it from every side. This lesson covers when to use it at all, how documents become searchable chunks, how vector indexes and hybrid search work, how permissions and freshness stay correct, and how to tell a retrieval failure from a generation failure. This walkthrough runs about 18 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in AI interviews.