AI MOOC
✦ Grow togetherInvite 3 friends, earn 1 month of membership · Up to 12 monthsInvite friends →

Free learning library / Datawhale

All-in-RAG: A Practical Guide to Retrieval-Augmented Generation

Learn to build RAG systems across data preparation, indexing, retrieval, generation and evaluation.

Online tutorial · RAG building and evaluation · Chinese original; some project chapters are available in English

Who it is for

For developers with Python and basic LLM knowledge who want to build knowledge-based question answering.

What you can learn

Explore the roles of retrieval and generation, then study text chunking, vector indexing, hybrid retrieval and system evaluation, with practical chapters.

Try it first

Choose public documents and prepare five evidence-based questions plus one unanswerable question. Record retrieved passages and check relevance and answer support separately.

Free access and conditions

The opening chapter is free to read in Chinese and English without signing in; English coverage is partial. The source is optimistic about retrieval accuracy and privacy: RAG cannot guarantee correct answers, and a local knowledge base alone does not eliminate risks from external model calls or other components. Examples may require accounts, model services or paid compute.

Source and rights

The project identifies CC BY-NC-SA 4.0. This page links to the source and provides original guidance without mirroring the tutorial; check code and third-party material separately.

Source: Datawhale

Related learning resources

Continue learning: Free courses on AI MOOC

Read now