AI

Learn Retrieval-augmented generation (RAG): what to know and where to start

Retrieval-augmented generation, or RAG, gives a language model relevant passages from your own documents so its answers are grounded in them. Developers use it to build assistants that answer from company or course content.

Outcomes

What you will be able to do with Retrieval-augmented generation (RAG)

  • Explain why retrieval reduces made-up answers
  • Split documents and create embeddings
  • Store and search vectors
  • Show sources with each answer
  • Measure answer quality with a question set

Learning path

How to learn Retrieval-augmented generation (RAG), in order

  1. Beginner

    Understand retrieval and generation

    Learn how a question is matched to relevant text and passed to a model with an instruction to answer from it. You are ready when you can explain why this reduces made-up answers.

  2. Intermediate

    Build a working pipeline

    Practise splitting documents, creating embeddings, storing them in a vector database and retrieving by similarity. You are ready when your app answers from your documents and shows sources.

  3. Advanced

    Improve quality

    Learn hybrid search, reranking, chunking choices and testing with a question set. You are ready when you can measure answer quality and improve it with evidence.

Roadmaps

Roadmaps that build Retrieval-augmented generation (RAG)

Step-by-step routes where Retrieval-augmented generation (RAG) is one of the skills you pick up.

Best-of lists

Ranked lists with Retrieval-augmented generation (RAG) courses

Our category rankings that include a course teaching Retrieval-augmented generation (RAG).

Keep going

Where to go next

The first is the natural next step from this page. The rest follow what you have been reading.