Free module
Retrieval-augmented generation
Learn retrieval-augmented generation hands on: embeddings, chunking, vector search, hit rate, answering with sources and when not to use it.
The lessons
Each lesson is free to read in full. Create a free account to run its commands in a live lab and to sit its quizzes and tasks.
1 · Container lab
What embeddings are and cosine similarity
I can say what an embedding is and compare two with cosine similarity.
Read the lesson2 · Container lab
How to chunk a document for retrieval
I can split a document so that each piece can be found.
Read the lesson3 · Container lab
How a vector store finds the nearest chunks
I can store vectors and find the nearest ones.
Read the lesson4 · Container lab
How to measure retrieval with hit rate
I can find the chunks that answer a question and say how well I did.
Read the lesson5 · Container lab
How to answer from retrieved sources
I can build a prompt from what was found and answer only from it.
Read the lesson6 · Container lab
When not to use retrieval-augmented generation
I can say when retrieval is the wrong tool.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.