Every term and abbreviation used anywhere in this section, expanded and explained in plain language. Organised A–Z. Where a concept has a full explanation elsewhere, the entry links to it.
Property
Value
Level
All levels — reference
Reading time
Reference; skim or search
Prerequisites
None
You will understand
Every piece of RAG vocabulary you are likely to encounter
A model that embeds query and document separately, so document vectors can be precomputed. Fast, less accurate. Contrast cross-encoder
BM25
Best Matching 25
The standard keyword-ranking algorithm. Scores documents on term frequency, adjusted for term rarity and document length. Excellent at exact and rare terms
Blue/green migration
—
Building a new index alongside the old one and cutting over, so rollback stays possible. The only safe way to change embedding models
Late-interaction retrieval: keeps a vector per token rather than per chunk, matching at token level. More accurate than bi-encoders, much larger storage
Context Precision
—
Are the relevant chunks ranked above the irrelevant ones in the retrieved set?
Context Recall
—
Of the facts needed for the correct answer, how many are present in the retrieved context?
Context window
—
The maximum tokens a model can process in one call — prompt plus output
Contextual retrieval
—
Prepending a short generated summary of the surrounding document to each chunk before embedding, so the chunk is interpretable standalone
Corpus
—
The full collection of documents your system can retrieve from
Cosine similarity
—
Similarity between two vectors measured as the angle between them, ignoring magnitude. The standard measure for text embeddings. 1.0 identical, 0 unrelated
CRAG
Corrective RAG
Grades retrieved documents before generating, and falls back — often to web search — when the grade is poor
Cross-encoder
—
A model that reads query and document together and scores their relationship. Far more accurate than a bi-encoder, far too slow to run over a whole corpus. The standard reranker
Average precision across all relevant results, averaged over queries. Order-sensitive
Metadata
—
Structured fields stored with a chunk: source, page, date, author, tenant, ACL. Enables filtering and citation
Metadata filtering
—
Restricting search to chunks matching structured conditions. Pre-filtering applies it during search; post-filtering after — the latter can starve results
Modular RAG
—
The generation of architectures where retrieval is conditional, repeatable, and routable rather than a fixed stage
MRR
Mean Reciprocal Rank
1 / rank of the first relevant result, averaged over queries. Strongly rewards ranking the answer first
Multi-hop
—
A question requiring several linked lookups, where the second search depends on the first result
Multi-tenancy
—
Serving multiple customers from one system. Requires tenant ID in every filter and every cache key
Storing vectors at lower precision to cut memory 4–32×, at a small recall cost. Scalar: fewer bits per number. Binary: one bit per dimension. Product (PQ): compressed subvector codes
Query decomposition
—
Splitting a multi-part question into sub-questions searched separately
Query expansion
—
Generating additional phrasings of a query and searching with all of them
Query pipeline
—
The online path: understand, retrieve, rerank, assemble, generate. Runs on every question
Query rewriting
—
Turning a messy or context-dependent question into a clean standalone one. Essential for conversational RAG
The "R" in RAG: finding relevant chunks for a query
RRF
Reciprocal Rank Fusion
Merging ranked lists by summing 1 / (k + rank) per document. The standard way to fuse hybrid search results — it needs no score calibration between the two systems
Recall = of everything relevant, how much did we find? Precision = of what we returned, how much is relevant? Optimize recall at the retrieval stage and precision after reranking. Pushing both at once with one k is how people end up satisfied with neither.
Bi-encoder vs Cross-encoder
A bi-encoder embeds query and document separately, so document vectors are precomputed and search is fast — this is your retriever. A cross-encoder reads both together and cannot precompute anything, so it is far more accurate and far too slow for a whole corpus — this is your reranker.
Faithfulness vs Correctness
Faithfulness = the answer matches the retrieved context. Correctness = the answer matches reality. An answer faithfully reproducing an outdated document is fully faithful and wrong — which is why faithfulness alone is not enough.
Dense vs Sparse retrieval
Dense matches meaning and handles paraphrase; it fails on rare exact tokens like SKUs. Sparse matches words and handles exact terms; it fails on paraphrase. They fail on opposite inputs, which is exactly why hybrid search works.
RAG vs Fine-tuning
RAG supplies facts at query time and is updated by changing documents. Fine-tuning changes weights and teaches style, format, and skill. They solve different problems and are frequently used together — fine-tune for behaviour, retrieve for knowledge.
Pre-filtering vs Post-filtering
Pre-filtering restricts the search space before ANN traversal, so you get k results that satisfy the filter. Post-filtering searches first and discards non-matching results afterwards, which can leave you with almost nothing when the filter is selective.