Skip to main content
InterviewHubPRO
Section Overview
Q43

Question 43 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

86%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Corrective RAG (CRAG) and Self-RAG: Evaluating retrieval relevance and dynamic fallback to web search.

senior LevelMost AskedData Structures

In Simple Words: What happens if the internal vector database does not contain the answer? Blindly passing irrelevant chunks causes LLM hallucination:

  • Self-RAG / CRAG Pipeline:
    1. Retrieve top $K$ documents from vector storage.
    2. A lightweight evaluator model scores the retrieval confidence:
      • CORRECT: Pass chunks to LLM generator.
      • INCORRECT: Discard internal chunks; dynamically trigger an external Web Search API (Tavily, Google, Bing) to fetch fresh ground-truth documents.
      • AMBIGUOUS: Combine filtered internal chunks with web search results.