indexRetrieval & Knowledge#rag#retrieval

RAG and Retrieval

Retrieval-augmented generation gives an LLM the facts it needs at answer time by fetching relevant text and putting it in the context window. It is how most teams ship knowledge-grounded AI, because it fixes the model's two biggest weaknesses — hallucination and stale knowledge — without retraining.

RAG is a search problem wearing an LLM hat. Most "RAG quality" issues are retrieval issues. Fix retrieval first.

Mental model

RAG is an information-retrieval system whose selected evidence becomes model input. Query construction, indexing, candidate generation, reranking, context assembly, and answer attribution are separate stages with separate recall, precision, latency, and failure budgets.

Roadmap: foundations to advanced retrieval

Retrieval quality

Generation & assessment

Beyond basic RAG

Connects to: Data for AI · Context Engineering · Evaluating RAG Systems

Core sources