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:
- Retrieve top $K$ documents from vector storage.
- 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.