Sample questions
Question 1Easy
In a RAG system, a re-ranker usually:
- Splits documents into chunks
- Embeds all documents again
- Re-scores top candidates
- Replaces the LLM
Answer: C. Re-scores top candidates
Explanation
A cross-encoder reads query and passage together, improving ordering of the first-stage results.
Step-by-step solution
- The retriever returns a list of candidate chunks.
- A re-ranker reads the query with each candidate.
- It re-scores and reorders them, keeping the best few.
Why the other options are wrong
- A. Chunking happens at indexing time.
- B. Re-ranking works on candidates; it does not rebuild embeddings.
- D. The LLM still writes the answer.
Tip: Re-ranker = second, sharper look at the short list.
Question 2Easy
The "retrieval" step in RAG:
- Finds relevant text
- Trains the model's weights
- Generates images
- Deletes old documents
Answer: A. Finds relevant text
Explanation
Retrieved passages are inserted into the prompt to ground the answer.
Step-by-step solution
- The user's question is embedded.
- The retriever searches the index for the most relevant chunks.
- Those chunks are later added to the prompt.
Why the other options are wrong
- B. RAG retrieval does not change model weights.
- C. Retrieval fetches text, not images.
- D. Deleting documents is index maintenance.
Tip: Bad retrieval, bad answer.
Question 3Easy
Splitting long documents into smaller passages before embedding is called:
- Pruning
- Chunking
- Sharding keys
- Batching tokens
Answer: B. Chunking
Explanation
Chunks are the retrievable units in a RAG index.
Step-by-step solution
- Long documents are too big to embed as one useful vector.
- They are split into smaller passages.
- This is called chunking.
Why the other options are wrong
- A. Pruning removes model weights.
- C. Sharding splits a database across machines.
- D. Batching groups inputs for processing.
Tip: Chunk = the unit you retrieve.
Question 4Easy
Why ask the model to cite which retrieved chunk supports each claim?
- It hides sources
- It speeds up retrieval
- It makes answers shorter
- To make answers verifiable
Answer: D. To make answers verifiable
Explanation
Citations make grounding visible and auditable.
Step-by-step solution
- The model links each claim to the chunk it came from.
- Users or reviewers can open that source and check.
- Unsupported claims become easy to spot.
Why the other options are wrong
- A. Citations reveal sources rather than hide them.
- B. Citations are produced after retrieval; they do not speed it up.
- C. Citations add text; they do not shorten answers.
Tip: Cite to make answers checkable.
Question 5Medium
Retrieving 20 chunks and putting all of them in the prompt, instead of the best 4, often:
- Adds noise and cost
- Removes hallucinations
- Reduces token usage
- Always improves accuracy
Answer: A. Adds noise and cost
Explanation
Irrelevant chunks can distract the model and raise latency and cost; re-ranking helps pick the best few.
Step-by-step solution
- The best 4 chunks hold most of the useful information.
- 16 extra chunks are mostly less relevant.
- They add noise that can distract the model, plus more tokens and cost.
Why the other options are wrong
- B. More chunks do not remove hallucination.
- C. More chunks mean more tokens.
- D. Extra noise can lower accuracy.
Tip: Fewer, better chunks beat many mediocre ones.
Question 6Medium
Splitting documents along headings and paragraphs rather than fixed character counts is called:
- Structural chunking
- Tokenisation
- Random chunking
- Quantisation
Answer: A. Structural chunking
Explanation
Respecting natural boundaries keeps chunks coherent.
Step-by-step solution
- Documents have natural units: sections, headings, paragraphs.
- Splitting at those boundaries keeps each chunk coherent.
- This is structural (structure-aware) chunking.
Why the other options are wrong
- B. Tokenisation splits text into tokens for the model.
- C. Random splitting ignores structure.
- D. Quantisation compresses vectors.
Tip: Split where the author split.
Question 7Medium
Prompt injection through retrieved documents means:
- Sources carry hostile instructions
- The index is corrupted by disk errors
- Users type too fast
- Embeddings overflow
Answer: A. Sources carry hostile instructions
Explanation
Treat retrieved content as data, not instructions, and limit what actions outputs can trigger.
Step-by-step solution
- Retrieved documents become part of the prompt.
- An attacker can plant instructions in a document or web page.
- The model may follow them: indirect prompt injection.
Why the other options are wrong
- B. Disk corruption is a storage fault, not injection.
- C. Typing speed is irrelevant.
- D. Embeddings do not overflow in this way.
Tip: Retrieved text is data, not orders.
Question 8Medium
Which is a key advantage of RAG over fine-tuning for company knowledge?
- It never needs any data
- It removes all latency
- It changes model weights faster
- Sources can be updated and cited
Answer: D. Sources can be updated and cited
Explanation
Updating documents updates answers, and retrieved passages can be shown as citations.
Step-by-step solution
- Company knowledge changes often.
- With RAG, updating documents updates answers at once.
- Retrieved passages can be shown as citations.
Why the other options are wrong
- A. RAG needs documents to retrieve from.
- B. Retrieval adds some latency.
- C. RAG does not change weights at all.
Tip: RAG: updatable and citable.
Question 9Hard
A chatbot's documents change weekly. What keeps answers current with least effort?
- Use a larger context window
- Re-index changed files
- Fine-tune the model weekly
- Increase the temperature
Answer: B. Re-index changed files
Explanation
RAG's knowledge lives in the index, so updating the index updates answers.
Step-by-step solution
- In RAG, knowledge lives in the index, not the model.
- When files change, re-embed and re-index just those files.
- Answers reflect the update immediately.
Why the other options are wrong
- A. A bigger window does not bring in new documents.
- C. Weekly fine-tuning is slow, costly and still lags.
- D. Temperature does not add knowledge.
Tip: Docs changed? Re-index, do not retrain.
Question 10Hard
Chunks that are far too large tend to:
- Improve precision in every case
- Dilute relevance
- Prevent hallucination entirely
- Reduce storage costs to zero
Answer: B. Dilute relevance
Explanation
Big chunks mix topics, lowering similarity scores and filling the prompt with irrelevant text.
Step-by-step solution
- A huge chunk contains many topics.
- Its single embedding becomes an average of all of them.
- Similarity to a specific query drops, and the prompt fills with irrelevant text.
Why the other options are wrong
- A. Large chunks usually lower precision.
- C. Chunk size cannot remove hallucination.
- D. Storage cost never drops to zero.
Tip: Too big: blurred meaning.
Practise all 29 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →