Advanced RAG and CRAG
Learn when to revise a query, assess retrieval or abstain.
Evaluate retrieval separately from generation and route insufficient evidence to a fallback.
Interview questions
Choose a question to reveal its answer.
01EasyCoreVisualHow does Corrective RAG handle poor retrieval?
Answer
How does Corrective RAG handle poor retrieval?
Evaluates retrieval quality and applies corrective actions when evidence is inadequate.
The CRAG paper uses a retrieval evaluator to assess document relevance and trigger corrective retrieval actions. An application can choose bounded query reformulation, alternate authorized sources or abstention. CRAG is distinct from the simpler pattern of retrieving once and always generating.
Use a retrieval evaluator before generating an answer and invoke an authorized fallback.
def route(retrieval_score, threshold):
if retrieval_score < threshold:
return 'rewrite_or_abstain'
return 'generate_with_evidence'Illustrative routing policy, not the complete CRAG algorithm.
02EasyCoreHow is Self-RAG different from a fixed retrieval pipeline?
Answer
How is Self-RAG different from a fixed retrieval pipeline?
Uses learned retrieval and reflection signals to decide when to retrieve and critique generations.
Let a trained system evaluate whether a passage supports its output.
03EasyCoreWhen should a RAG system rewrite the query?
Answer
When should a RAG system rewrite the query?
Transforms an input query into a more retrieval-friendly expression.
Expand an ambiguous acronym using conversation context.
04MediumHigh priorityHow does multi-query retrieval improve coverage?
Answer
How does multi-query retrieval improve coverage?
Retrieves candidates using multiple formulations of the same information need.
Search paraphrases and merge duplicate passages.
05MediumHigh priorityHow does HyDE work?
Answer
How does HyDE work?
Generates a hypothetical document and uses its embedding to retrieve real documents.
Improve zero-shot dense search with a synthetic query-side document.
06MediumWhen would graph-based retrieval be useful?
Answer
When would graph-based retrieval be useful?
Uses graph relationships and entities to retrieve connected evidence.
Trace connections between related organizations and documents.
07MediumHow does reciprocal rank fusion combine results?
Answer
How does reciprocal rank fusion combine results?
Combines ranked lists with reciprocal functions of item ranks.
Merge lexical and vector rankings without calibrating raw scores.
08MediumHow do you evaluate faithfulness in RAG?
Answer
How do you evaluate faithfulness in RAG?
Degree to which answer claims are supported by supplied evidence under the chosen evaluator.
Evaluate whether each substantive claim is supported by supplied evidence, independently of whether the answer is relevant to the question. A faithful answer may still be incomplete or irrelevant. Human review can be important when automated judges disagree.
Detect unsupported assertions even when an answer sounds plausible.
09HardHow is answer relevance different from faithfulness?
Answer
How is answer relevance different from faithfulness?
Degree to which a response addresses the actual user question.
Penalize a supported but off-topic response.
10HardWhen should a RAG system abstain?
Answer
When should a RAG system abstain?
Declines to provide an unsupported answer when evidence or confidence is insufficient.
Say the source does not establish a fact instead of inventing it.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.