← journal 00. start here

module 00

Start here

Thirteen modules on retrieval augmented generation. Each one has a lab you can run.

00.1Who this is for

A second year computer science student who wants to understand how retrieval systems work, and who would like the thing they build afterwards to be worth showing to somebody. You do not need machine learning coursework. You do not need linear algebra past the dot product. You do not need calculus at all.

You need to be comfortable in Python at the level of writing a function that loops over a list of dictionaries, and you need to be willing to read your own data.

the only maths in the whole course

Cosine similarity. Take two lists of numbers. Scale each one so its length is 1. Multiply them position by position and add up the results. You get a number from −1 to 1, where higher means more similar. Module 02 has a lab where you watch it run.

00.2What you will have built by the end

A question answering system over a corpus you choose, which:

  • parses real documents, including the ones that fight back
  • searches with keywords and vectors at the same time, then fuses the two rankings
  • reranks the candidates with a cross encoder before anything reaches the language model
  • cites its sources, and verifies its own citations rather than trusting them
  • says it does not know, when it does not know
  • is measured by a test set you built, with a table showing what each change was worth

Module 07 makes the case for that last item in detail. A retrieval system without an evaluation harness is a demo, and everybody has already seen the demo.

00.3How to work through it

Order
Front to back. Module 04 assumes module 02, and module 07 justifies most of what comes before it.
Labs
They compute real numbers from a real corpus in your browser. Change the inputs until something surprises you.
Checks
Short quizzes at the end of most modules. Guess before you read the explanation.
Progress
Tick the box at the foot of each module. It is stored in this browser only.
Pace
Roughly one module per sitting. Part iv is where the real work is.

00.4How current this is

The research behind this was done in July 2026. Retrieval tooling turns over roughly every nine months, so treat package versions and prices as things to check rather than facts. The concepts underneath have been stable for years.

Some figures are flagged like this:

verify before quoting

A number where the sources disagreed, or where the trail led to a secondary source rather than the original. It is probably right. It is not confirmed.