Skip to content
AI Exercises
–points–day streak

What is RAG (retrieval-augmented generation)?

RAG means the AI first looks up relevant information, for example in your documents, and then writes its answer using what it found.

In real life

Like an open-book exam: instead of answering from memory, you find the right page first, then write your answer.

Try it yourself

Ask about Northwind Bikes, a made-up company

Company documents

  • Staff handbook, section 4: Holidays

    Full-time staff get 25 days of paid holiday a year, plus public holidays. Up to 5 unused days carry over to the next year.

  • Expenses policy, section 2: Travel

    After 9pm, a taxi home is covered up to £40. Keep the receipt and submit it within 30 days.

  • IT guide, section 1: Passwords

    Use a password manager and turn on two-step login for every work account.

AI reply

Choose a question, then press “Ask the AI”.

Try the same question with lookup off, then on. Without it, the AI fills the gap with a confident guess. With it, the answer comes from the company's own document, and you can check the source.

Where you will use this

  • Track 1, lesson 4: Files, images and long documentsComing soon
  • Track 1, lesson 5: ProjectsComing soon

Quick check: RAG

Question 1 of 3

What does RAG add to a normal AI answer?

What does RAG add to a normal AI answer?