RAG (Retrieval-Augmented Generation) combines a language model with a retrieval system. What is the main benefit of this combination?
Think about how adding a search step helps the model find facts.
RAG uses a retrieval system to find relevant documents or data, which the language model then uses to generate more accurate and grounded answers.
You want to build a RAG system. Which combination best fits the RAG architecture?
RAG needs both retrieval and generation parts.
RAG combines a retriever (often vector-based) to find relevant info and a language model to produce text based on that info.
Which metric best measures how well a RAG model's answers match the real data it retrieved?
Think about how to check if answers are factually correct.
Exact match score shows how closely the generated answer matches the true data, important for grounding quality.
Your RAG model sometimes generates answers not supported by retrieved documents. What is the most likely cause?
Consider what happens if the model has no good info to base answers on.
If the retriever does not find relevant info, the language model may produce plausible but incorrect answers, called hallucinations.
Explain why Retrieval-Augmented Generation (RAG) grounds large language models in real data.
Think about how grounding means connecting to real facts.
RAG grounds LLMs by letting them access real documents during generation, so answers are based on real-world data, reducing hallucinations.