Engineering, made clearer.Find a tool /
Learn · Practise · Understand

Learn RAG

Retrieval places external evidence in the prompt. It does not guarantee a correct answer.

3 sections · 10 explained questions · About 10 minutesAll lessons →

Read each short explanation, work through the example, then answer a pop quiz. Every answer explains the reasoning. Incorrect answers unlock a fresh question on the same idea; the full lesson contains ten questions.

01Understand the basics

Ready to learn

Retrieval-augmented generation (RAG) searches external material and includes selected evidence in a model prompt. It can make relevant information available, but retrieval can miss useful sources and a model can still misread them.

Section 1 question · 4 variations
What must retrieval enforce?

02Choose chunks deliberately

Ready to learn

Chunks are searchable pieces of a document. Overlap repeats some content to preserve context across boundaries, increasing storage and processing. Test chunking against real questions.

Try a different value

Move the slider or use the arrow keys to see what changes.
Chunk 1: [0,512)Chunk 2: [448,960)Stride: 44864 duplicated tokens
Section 2 question · 3 variations
What is the stride for 512-token chunks and 64-token overlap?

03Evaluate evidence and answers

Ready to learn

Measure whether retrieval finds relevant authorised evidence, then whether the answer is supported by it. Keep source text separate from trusted instructions and provide a fallback when evidence is missing.

Section 3 question · 3 variations
What should happen when retrieved evidence does not support an answer?

Put it to work

Apply what you’ve learned using the related tools.