Testing with Generative AI study guide
Retrieval-Augmented Generation (RAG)
RAG is an architecture that improves LLM accuracy by retrieving external documents and adding them to the prompt context before generation; retrieval may improve grounding but does not guarantee up-to-date information or eliminate hallucinations.
Practical example
RAG separates knowledge from reasoning. The LLM acts as the "reasoning engine", while a Vector Database acts as the "knowledge base". QA tests RAG in two parts: Retrieval accuracy (did it fetch the right document?) and Generation accuracy (did it summarize the document correctly?).
Exam scenario and common trap
Scenario: A RAG system provides incorrect answers based on outdated company policies. The Trap: Blaming the LLM's training data. The Correct Answer: One possible cause is stale source material in the retrieval system. Inspect the source collection and retrieval results, then check whether the model interpreted the retrieved text correctly.
Related syllabus sections cover this topic. Reference sections: 4.1.2. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.