RAG (Retrieval-Augmented Generation) Practice Test
Practise the building blocks of retrieval-augmented generation: chunking, embeddings, vector search, hybrid search, reranking and evaluation.
AI Skills
Before you start
- Questions
- 15
- Time
- 18 minutes
- Format
- Single section
- The timer starts when you press Start. When it reaches zero, your answers are submitted automatically.
- Use the numbered navigator to move between questions, and flag any you want to come back to.
- For typed answers, keep within the word limit. Answers over the limit are marked wrong, as in the real test.
- You can submit early. Your score, the correct answers and explanations appear straight away.
RAG (Retrieval-Augmented Generation) Practice Test: all 15 questions with answers
Prefer to work through the test on paper? Answer the questions, then open “Show answer” to check.
Choose the correct answer, A, B, C or D.
Q1.What does retrieval-augmented generation (RAG) do?
- A.Retrains the model every day
- B.Generates random documents
- C.Compresses the model weights
- D.Retrieves relevant documents and adds them to the prompt so the model answers from them
Show answer
Answer: D. Retrieves relevant documents and adds them to the prompt so the model answers from them
RAG combines search with generation so answers are grounded in your own data.
Q2.What is the main benefit of RAG over relying on the model alone?
- A.Answers can use private or up-to-date information without retraining the model
- B.It removes the need for any data
- C.It makes the model smaller
- D.It guarantees zero errors
Show answer
Answer: A. Answers can use private or up-to-date information without retraining the model
You update the document store, not the model, when knowledge changes.
Q3.What is chunking?
- A.Deleting old documents
- B.Splitting documents into smaller pieces for indexing and retrieval
- C.Combining many models
- D.Encrypting data
Show answer
Answer: B. Splitting documents into smaller pieces for indexing and retrieval
Retrieval works on chunks, so chunk size and boundaries strongly affect answer quality.
Q4.What is a common risk of making chunks very small?
- A.They use too much storage
- B.They cannot be embedded
- C.They lose the surrounding context needed to answer the question
- D.They make search impossible
Show answer
Answer: C. They lose the surrounding context needed to answer the question
Tiny chunks often split a fact from the context that explains it. Very large chunks have the opposite problem: less precise matches.
Q5.Why do many pipelines add overlap between chunks?
- A.To double the cost
- B.To remove duplicates
- C.Overlap is never useful
- D.To keep information that spans a chunk boundary together in at least one chunk
Show answer
Answer: D. To keep information that spans a chunk boundary together in at least one chunk
A small overlap stops sentences or ideas from being cut in half at chunk edges.
Q6.What does a vector database mainly store and search?
- A.Embeddings, so similar items can be found quickly
- B.Only images
- C.User passwords
- D.Spreadsheet formulas
Show answer
Answer: A. Embeddings, so similar items can be found quickly
Vector databases index embeddings for fast nearest-neighbour similarity search.
Q7.What is the usual order of a basic RAG query?
- A.Generate the answer, then search
- B.Embed the question, retrieve similar chunks, add them to the prompt, then generate
- C.Fine-tune, then search
- D.Search the web, then delete results
Show answer
Answer: B. Embed the question, retrieve similar chunks, add them to the prompt, then generate
Retrieval happens before generation so the model can use the retrieved context.
Q8.Which embedding model should be used for queries?
- A.A different one from the documents, to add variety
- B.No model; use raw text
- C.The same embedding model used to embed the documents
- D.Any image model
Show answer
Answer: C. The same embedding model used to embed the documents
Vectors from different embedding models live in different spaces and cannot be compared meaningfully.
Q9.What is hybrid search?
- A.Searching two databases at random
- B.Searching only by date
- C.Using two LLMs
- D.Combining keyword search (such as BM25) with semantic vector search
Show answer
Answer: D. Combining keyword search (such as BM25) with semantic vector search
Keyword search catches exact terms like product codes; vector search catches meaning. Together they improve recall.
Q10.What does a reranker do?
- A.Retrains the embedding model
- B.Deletes irrelevant documents permanently
- C.Translates the query
- D.Re-scores the retrieved candidates with a more precise model so the best ones come first
Show answer
Answer: D. Re-scores the retrieved candidates with a more precise model so the best ones come first
Rerankers (often cross-encoders) are slower but more accurate, so they are applied to a short candidate list.
Q11.Why ask a RAG system to cite its sources?
- A.Users can check each claim against the original document
- B.Citations make the answer longer
- C.It lowers the token cost
- D.It is required by law everywhere
Show answer
Answer: A. Users can check each claim against the original document
Citations build trust and make wrong answers easier to spot.
Q12.A RAG bot gives wrong answers. Logs show the retrieved chunks are irrelevant. What should you fix first?
- A.The model's temperature
- B.Retrieval: chunking, embeddings, filters or search settings
- C.The colour of the chat UI
- D.Nothing; this is normal
Show answer
Answer: B. Retrieval: chunking, embeddings, filters or search settings
If the right context is never retrieved, no prompt can make the model answer correctly.
Q13.What is metadata filtering in retrieval?
- A.Removing all metadata
- B.Sorting results alphabetically
- C.Restricting search by attributes such as date, department or document type
- D.Encrypting metadata
Show answer
Answer: C. Restricting search by attributes such as date, department or document type
Filters narrow the search space, for example to only this year's HR policies.
Q14.What does recall@k measure for retrieval?
- A.How many tokens the answer uses
- B.How fast the model responds
- C.The number of documents stored
- D.How often a relevant chunk appears in the top k results
Show answer
Answer: D. How often a relevant chunk appears in the top k results
Recall@k checks whether retrieval surfaces the right evidence before generation even starts.
Q15.When is fine-tuning a better choice than RAG?
- A.When you mainly need to change style, format or behaviour rather than add changing facts
- B.When knowledge changes every day
- C.When you need citations
- D.Never
Show answer
Answer: A. When you mainly need to change style, format or behaviour rather than add changing facts
RAG is best for knowledge that changes; fine-tuning is best for consistent behaviour or format.