Module quiz

Retrieval-augmented generation quiz

56 questions across 6 lessons. Choose an answer, check it, and read why each option is right or wrong.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 56 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

RAG architecture and chunking9 questions

ObjectiveDescribe the two phases of a RAG pipeline and say what happens at each stage.

  1. Question 1 of 56A support team updates its refund policy document today. In a RAG system, how do answers come to reflect the change?

    Choose one answer.

  2. Question 2 of 56Which stages belong to the query phase of a RAG pipeline, as opposed to the ingest phase?

    Choose all that apply.

ObjectiveChoose a chunking strategy (size, overlap, structure-awareness) for a corpus and justify it with trade-offs.

  1. Question 3 of 56Answer quality got worse after a team raised its chunk size from 256 to 1024 tokens. Which two mechanisms could explain it?

    Choose all that apply.

  2. Question 4 of 56A pricing table is split into one chunk per row. A user asks 'What is the refund window on the Gold plan?' and retrieval keeps returning the wrong rows. What is the most likely cause and fix?

    Choose one answer.

  3. Question 5 of 56Merrow's timetable strip reads '...and so it departs at 22:10, calling at all stops.' It never names the train or the terminus, so a search for 'Sleeper departure time' misses it. What change at ingest helps most?

    Choose one answer.

ObjectiveExplain which metadata a chunk needs and why permissions are enforced inside retrieval, not after it.

  1. Question 6 of 56A multi-tenant assistant retrieves the top 10 chunks for a query, then removes chunks the user may not read. Users sometimes get 'no answer' even though a permitted document answers the question. Why, and what is the fix?

    Choose one answer.

  2. Question 7 of 56Users complain the assistant quotes a superseded 2023 policy even though the 2025 version is indexed. Which chunk metadata would let you fix this at retrieval time?

    Choose one answer.

ObjectiveDescribe how to pick a chunk size from evidence on a labelled question set instead of by habit.

  1. Question 8 of 56Your team must pick between chunk sizes 200, 400 and 800 tokens for a new corpus. Which approach is most defensible?

    Choose one answer.

  2. Question 9 of 56In a chunk-size experiment, recall@5 rose from 0.70 to 0.78 when chunks doubled, but each prompt now carries twice as many tokens. What should you do before adopting the larger size?

    Choose one answer.

The core RAG pipeline7 questions

ObjectiveExplain why RAG suits knowledge injection and fine-tuning suits behaviour, and where long context fits.

  1. Question 10 of 56A company wants its assistant to answer from a large library of HR policies that change monthly, and to show which policy each answer came from. Which approach fits best?

    Choose one answer.

  2. Question 11 of 56Which job is the weakest fit for fine-tuning?

    Choose one answer.

ObjectiveExplain each stage of the pipeline (parse, chunk, embed, index, retrieve, rerank, generate) and its main trade-off.

  1. Question 12 of 56A team swaps its embedding model for a newer one, re-embeds only the new documents, and leaves the old vectors in place. What happens?

    Choose one answer.

  2. Question 13 of 56Users search for the error code 'E-4021'. Dense retrieval returns pages about general error handling. Which change addresses the cause?

    Choose one answer.

  3. Question 14 of 56Why do most systems retrieve about 50 candidates cheaply and then rerank to a handful, instead of cross-encoding the whole corpus?

    Choose one answer.

ObjectiveList the stages where a confident wrong answer can originate and describe the test that separates retrieval from generation.

  1. Question 15 of 56A confident wrong answer is reported, and the right passage exists in the corpus. Which data, logged on every request, lets you check afterwards whether retrieval or generation failed?

    Choose one answer.

  2. Question 16 of 56An assistant announces a connection that was removed from the current timetable. The removed connection is in the vector store and was retrieved. Which stage should have caught it?

    Choose one answer.

Better retrieval10 questions

ObjectiveWalk a bad RAG answer back to the failing stage using the debugging playbook.

  1. Question 17 of 56The correct passage is indexed, but a debug log shows it is not among the retrieved top-k for the failing query. Which stage do you investigate?

    Choose one answer.

  2. Question 18 of 56Following the debugging playbook, the correct passage is in the final prompt, yet the answer contradicts it. Where does the fix belong?

    Choose one answer.

ObjectiveExplain hybrid search with Reciprocal Rank Fusion and cross-encoder reranking, including what each costs.

  1. Question 19 of 56Merrow's search finds the right page at rank 12 of the first-stage results, but only the top 5 go to the prompt, so it is left out. What is the most direct fix?

    Choose one answer.

  2. Question 20 of 56With RRF at k = 60, document A is rank 1 in the dense list and absent from the BM25 list. Document B is rank 2 in both lists. Which scores higher in the fused list?

    Choose one answer.

  3. Question 21 of 56A team adds a cross-encoder reranker over the top 50 results, yet exact-ID queries still fail. Logs show the right chunk is never among those 50. Why did reranking not help?

    Choose one answer.

ObjectiveChoose a query transformation for a given retrieval failure and state its cost.

  1. Question 22 of 56A user chats with the assistant and then asks 'what about the second one?'. Retrieval on that raw text returns junk. Which transformation fits, and what does it cost?

    Choose one answer.

  2. Question 23 of 56A team applies multi-query expansion to every request. Latency rises and precise lookups such as exact policy numbers get worse. What is the most sensible change?

    Choose one answer.

ObjectiveExplain why metadata and permission filters are applied before or during vector search, and the trade-off of post-filtering.

  1. Question 24 of 56Which design enforces tenant isolation most reliably in a multi-tenant RAG service?

    Choose one answer.

ObjectiveUse chunk-level techniques (parent-child, sentence window, contextual chunks, MMR) and context assembly to improve what reaches the prompt.

  1. Question 25 of 56The top 5 chunks for a query are near-duplicate copies of the same paragraph, taken from five near-duplicate pages. Which technique addresses this directly?

    Choose one answer.

  2. Question 26 of 56You assemble ten retrieved chunks into one long prompt. Where should the most important chunk go?

    Choose one answer.

All RAG types9 questions

ObjectiveState the decision rule (simple baseline, measure, add complexity only for a named failure) and walk the decision tree.

  1. Question 27 of 56A new RAG assistant gives mediocre answers. What does the decision rule recommend as the first move?

    Choose one answer.

  2. Question 28 of 56On a labelled set, most failures are queries containing exact part numbers that dense retrieval misses, while paraphrased questions work. Following the decision tree, what do you do?

    Choose one answer.

ObjectiveDescribe when naive, advanced, modular and agentic RAG each earn their place and what each costs.

  1. Question 29 of 56A company's assistant answers 30 predictable questions about opening hours and delivery from one document set. Which design is most appropriate?

    Choose one answer.

  2. Question 30 of 56What distinguishes modular RAG from advanced RAG?

    Choose one answer.

ObjectiveMatch HyDE, parent-child, GraphRAG, Self-RAG, Corrective RAG and Adaptive RAG to the failure each one fixes and its main risk.

  1. Question 31 of 56A team adopts HyDE and finds it sometimes steers search toward a plausible but wrong topic. What is the mechanism?

    Choose one answer.

  2. Question 32 of 56An engineer proposes adding Self-RAG by adding a 'critique yourself' step to the system prompt. What is wrong with that plan?

    Choose one answer.

  3. Question 33 of 56Retrieval often returns pages that are irrelevant or nothing at all, and the system answers anyway. Which variant addresses this directly, and what is its cost?

    Choose one answer.

ObjectivePick a RAG variant for a described scenario and defend the choice with its cost and failure mode.

  1. Question 34 of 56A product manager asks: 'Summarise the main themes across 10,000 support tickets.' Why does plain top-k similarity RAG struggle, and what fits better?

    Choose one answer.

  2. Question 35 of 56Three queries arrive at once: (1) the platform for ticket TK-4471, (2) what changed across the whole line this week, (3) when the 21:40 leaves. Which assignment is most sensible?

    Choose one answer.

RAG evaluation and hallucination9 questions

ObjectiveExplain why RAG reduces but does not eliminate hallucination, including three ways a model can fail with the right context in the prompt.

  1. Question 36 of 56The correct passage is in the prompt, yet the answer is wrong. Which of these can explain it?

    Choose all that apply.

  2. Question 37 of 56A stakeholder says: 'We added RAG, so the assistant can no longer hallucinate.' What is the best response?

    Choose one answer.

ObjectiveChoose among grounding instructions, citations, reranking, retrieval gates and verification passes, and state the limit of each.

  1. Question 38 of 56A team copies a similarity-score threshold of 0.75 from a previous project to decide when to refuse. After switching to a new embedding model, the bot refuses many answerable questions. What went wrong?

    Choose one answer.

  2. Question 39 of 56The assistant now cites a chunk for every claim, yet a reviewer finds some cited chunks do not say what is claimed. Which additional check addresses this?

    Choose one answer.

  3. Question 40 of 56You can add only one safeguard this sprint, and the main complaint is that the bot confidently answers questions the knowledge base does not cover. Which fits best?

    Choose one answer.

ObjectiveClassify a failure as a retrieval failure or a generation failure from a trace of retrieved chunks, scores and the final prompt.

  1. Question 41 of 56A trace shows the retrieved chunk says 'Platform 4', that chunk is in the final prompt, and the answer says 'Platform 7'. How do you classify the failure?

    Choose one answer.

  2. Question 42 of 56A trace shows that none of the retrieved chunks relate to the question, yet the assistant answered fluently. Which description is most accurate?

    Choose one answer.

ObjectiveDescribe how to measure RAG quality with separate retrieval and generation metrics on a golden set, and how much to trust a small improvement.

  1. Question 43 of 56Your end-to-end answer score dropped 5 points after a change to chunking and the prompt together. Why is that hard to act on, and what should you have measured?

    Choose one answer.

  2. Question 44 of 56On a golden set of 30 questions, a prompt change moves the score from 20 correct to 21 correct. How should you treat this result?

    Choose one answer.

RAG evaluation in depth12 questions

ObjectiveDesign an evaluation that scores retrieval and generation separately, then end to end.

  1. Question 45 of 56Why does a single 'answer quality' score make a poor RAG evaluation?

    Choose one answer.

  2. Question 46 of 56Marta asks for one number to say the Records Car is fine. After a change, end-to-end accuracy is unchanged at 80%, but recall@5 fell and faithfulness rose. What is the most useful reading?

    Choose one answer.

ObjectiveCompute recall@k, precision@k and MRR from ranked results by hand.

  1. Question 47 of 56Three queries return the first relevant chunk at ranks 4, 2 and none (top 5). What are recall@5 and MRR?

    Choose one answer.

  2. Question 48 of 56Compute MRR for four queries whose first relevant chunk is at ranks 4, 1, 2 and none.

    Choose one answer.

  3. Question 49 of 56For one query the top 5 results are ranked 1 to 5, and the relevant ones are at ranks 2 and 4. What is precision@5?

    Choose one answer.

ObjectiveTurn misses into a failure taxonomy that says which stage is responsible.

  1. Question 50 of 56In a failure analysis, gold chunks were retrieved, the answer is faithful to them, yet the answer is wrong. What does the taxonomy say?

    Choose one answer.

  2. Question 51 of 56A query's gold chunk was not retrieved, the answer is not faithful to the retrieved context, but the answer happens to be correct. Why is this still a concern?

    Choose one answer.

ObjectiveBuild a golden set that includes unanswerable questions, and use an LLM judge while knowing its pitfalls.

  1. Question 52 of 56Which golden-set design is strongest for testing a corpus-backed assistant?

    Choose one answer.

  2. Question 53 of 56A team uses the same model family to generate answers and to judge them, and the judge always prefers the longest answer. Which two pitfalls does this suggest?

    Choose all that apply.

  3. Question 56 of 56Which statement about frozen and fresh evaluation sets is correct?

    Choose one answer.

ObjectiveRun controlled experiments: one change at a time, on the same set, tracking quality, latency and cost together.

  1. Question 54 of 56A team tests a new embedder, a new chunk size and a new prompt in a single release. On a 40-question set, recall@5 rises 2.5 points (one question) while latency doubles. What is the main experiment-design problem?

    Choose one answer.

  2. Question 55 of 56A reranker lifts recall@5 from 0.80 to 0.83 on a large golden set but adds a noticeable delay to every query. What is the right way to decide whether to ship it?

    Choose one answer.

Boss challenge: Find the failing stage

A longer check of the whole module. It is optional, and nothing else on the site depends on it.

  • 11 questions, taken from the lesson quizzes above.
  • Pass mark: 8 correct of 11.
  • You can try it as many times as you like.
  • A correct answer is kept, so a pass can build up across several tries.
  • If you miss some, you get links to the lesson sections to read again.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 11 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

  1. Question 1 of 11A support team updates its refund policy document today. In a RAG system, how do answers come to reflect the change?

    Choose one answer.

  2. Question 2 of 11Which stages belong to the query phase of a RAG pipeline, as opposed to the ingest phase?

    Choose all that apply.

  3. Question 3 of 11Answer quality got worse after a team raised its chunk size from 256 to 1024 tokens. Which two mechanisms could explain it?

    Choose all that apply.

  4. Question 4 of 11A company wants its assistant to answer from a large library of HR policies that change monthly, and to show which policy each answer came from. Which approach fits best?

    Choose one answer.

  5. Question 5 of 11A confident wrong answer is reported, and the right passage exists in the corpus. Which data, logged on every request, lets you check afterwards whether retrieval or generation failed?

    Choose one answer.

  6. Question 6 of 11With RRF at k = 60, document A is rank 1 in the dense list and absent from the BM25 list. Document B is rank 2 in both lists. Which scores higher in the fused list?

    Choose one answer.

  7. Question 7 of 11A user chats with the assistant and then asks 'what about the second one?'. Retrieval on that raw text returns junk. Which transformation fits, and what does it cost?

    Choose one answer.

  8. Question 8 of 11On a labelled set, most failures are queries containing exact part numbers that dense retrieval misses, while paraphrased questions work. Following the decision tree, what do you do?

    Choose one answer.

  9. Question 9 of 11Retrieval often returns pages that are irrelevant or nothing at all, and the system answers anyway. Which variant addresses this directly, and what is its cost?

    Choose one answer.

  10. Question 10 of 11The correct passage is in the prompt, yet the answer is wrong. Which of these can explain it?

    Choose all that apply.

  11. Question 11 of 11Three queries return the first relevant chunk at ranks 4, 2 and none (top 5). What are recall@5 and MRR?

    Choose one answer.