GenAI Basics · Question 8 · Medium

What does Retrieval-Augmented Generation (RAG) do?

  1. Permanently retrains the model on every user question
  2. Generates images from retrieved text
  3. Compresses the model so that it runs faster
  4. Retrieves relevant passages from an external knowledge source at query time and adds them to the prompt, so the answer is grounded in those passages
Answer and explanation

Answer: D. Retrieves relevant passages from an external knowledge source at query time and adds them to the prompt, so the answer is grounded in those passages

Explanation: RAG combines a retriever, often a vector search over embeddings, with the generator. Fresh or private knowledge is supplied in the context without changing the model's weights.

Previous: What is the cosine similarity between the vectors (3, 4) and (6, 8)? · Next: Setting the sampling temperature of an LLM close to 0 typically makes its…

Practise genai basics

Try a fresh set of genai basics questions with an explanation after every answer, free and without signing up: GenAI Basics practice. Or sit a full placement mock test.

More genai basics questions

More technical & programming practice

Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms · Object-Oriented Programming · DBMS

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge