RAG fundamentals
What is RAG and why does it exist?
RAG (Retrieval-Augmented Generation) solves the fundamental limitations of LLMs: they have a fixed knowledge cutoff, cannot access private data, and hallucinate when forced to recall specific facts. The core idea: instead of asking the model to memorize everything, you retrieve relevant documents at query time and inject them as context. The model becomes a reasoning engine over supplied evidence, not a knowledge store.
Retrieval & query strategies
Sparse BM25, dense ANN, and hybrid RRF fusion — plus query transforms (HyDE, multi-query, decomposition) applied before the retriever.
