AlgoViz

Retrieval-Augmented Generation (RAG)

medium 12 min

A retrieval-augmented system maintains a searchable collection and consults it for each question.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

Find the card. Fetch the page. Cite the line.

A librarian finds a catalog card, fetches the matching edition and points to the line that answers the reader.

Retrieval-Augmented Generation (RAG) in one picture

Cheat sheet

Find the card
Retrieve candidates
Fetch the page
Put selected evidence in context
Cite the line
Link the answer claim to its source