The sample library — retrieval (RAG).
Don't make the soloist remember every tune. Pull the right recordings — short snippets from your library — onto the stand first, then let it play from what's in front of it.
Ask a model to answer from memory and it can invent things — fluent, confident, and wrong (Lesson 6). The fix is almost too simple: stop asking it to remember, and hand it the real material to read from instead. Done at scale, that move has a name — retrieval-augmented generation, or RAG.
RAG is two steps, run by two different systems. A search step takes your question and pulls the few most relevant records from a library of your material. Those records drop into the model's context window (Lesson 2), and the model answers from them — reading what it was just handed rather than recalling from memory.
Here is the part people get backwards: the model never does the digging. Picture a record-digger and a soloist. The record-digger flips through the shelves, finds the takes that fit — this feel, this sound — and sets them on the stand. The soloist just plays what's in front of it; it never reaches into the archive itself. RAG splits the same way: the search step is the digger, the model is the soloist.
The clever part is that fetch. You can't tip the whole library into the window (Lesson 2's budget), so retrieval finds records by meaning, not matching words — a search for “modal opener” also surfaces a “dorian vamp”, because they mean the same kind of thing.
This is what lets a model answer from material it was never trained on — your own library, today's session, this exact set — and cite a record you can point to. It also means staying current is a matter of updating the library, not retraining the model.
Pick what you're after and watch the digger pull the records that fit — then the soloist reads only those, and answers, citing each one. Tap a record to hear it.
Search first, then answer.
A RAG call is two steps: fetch the most relevant records, then answer from those — never from memory alone.
Play from the record, don't recall from memory.
RAG turns a question into a search: fetch the few most relevant records, load them into the context, and answer from those. The model stops recalling and starts reading — so it can speak to your material, stay current, and ground every choice in a source you can cue up.
The whole trick is the fetch — find the right few records by meaning, fit them on the stand, and let the model play from the library rather than from memory.