In the context of LLM workflows, what is the primary purpose of retrieval-augmented generation (RAG)?
Answer
Ground responses in external, relevant documents
Explanation
RAG retrieves relevant source text and conditions the model on it, improving factual grounding and traceability.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which strategy best improves consistency in structured outputs (e.g., JSON) from an LLM?
View question →
Which concept best explains why an LLM can produce plausible but incorrect answers?
View question →
A team wants to reduce unsafe outcomes when using tools (e.g., sending emails). What is the best practice?
View question →
Which option best describes how you should handle a request for personally identifying information (PII) from the user?
View question →
Which practice best helps prevent prompt injection from causing harmful actions?
View question →
You have a chatbot that must cite sources. Which approach most directly improves citation reliability?
View question →