RAG Systems

Glossary

Every RAG Systems term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.

RAG Systems · 67 terms

A

Abstention
A model declining to answer, for example "I don't know; the passages don't cover this", instead of guessing. A RAG prompt should say exactly when and how to abstain, though models don't always follow it.
Learn it in “Assembling the prompt” →
Agentic RAG
RAG where the model decides whether and what to search, reads the results, and searches again until it has enough, using search as a tool in a loop. Handles harder questions at more cost and time, and needs a step budget.
Learn it in “Agentic RAG & MCP” →
Answer relevance
Whether an answer addresses the question that was asked, without wandering off-topic. Separate from whether it is true.
Learn it in “Evaluating answers” →
Approximate nearest-neighbour (ANN) search
Finding vectors close to a query without comparing it with every stored vector. Much faster than exact search, occasionally missing the true nearest one.
Learn it in “Vector indexes” →

B

BM25
The standard keyword-ranking formula (Okapi BM25, from City University London in the 1990s). It adds up each query word's weight: rarer words count more, repeats saturate, and long documents are discounted.
Learn it in “Keyword search & BM25” →

C

Chunk
One piece of a document (often a paragraph or a few hundred tokens) that is embedded and retrieved as a unit.
Learn it in “A RAG system, end to end” →
Chunk metadata
Fields stored alongside each chunk's text and vector: document ID, title, dates, status, language, access rights. Used for filtering, citations and updates.
Learn it in “Metadata, freshness & deletions” →
Chunk overlap
Repeating the end of one chunk at the start of the next, so a sentence cut at a boundary still appears whole somewhere. Often 10–25% of the chunk size.
Learn it in “Chunking” →
Chunk size
How much text goes into each chunk, counted in characters or tokens. Too small loses context; too big blurs meaning and distracts the model.
Learn it in “Chunking” →
Citation (in RAG)
A marker in an answer, such as [2], pointing to the passage a statement came from, so a reader can check it. Many providers return citations as structured data. A citation points; it doesn't prove the passage supports the claim.
Learn it in “Assembling the prompt” →
ColPali
A retriever that searches page images directly: it cuts each page into about a thousand patches, gives each a vector, and matches every word of the question against the best patch (Faysse et al., 2024). Accurate on visual documents, but stores many vectors per page.
Learn it in “Multimodal RAG” →
Community (in a graph)
A cluster of entities more densely connected to each other than to the rest of the graph, found by an algorithm such as Louvain or Leiden. GraphRAG writes a summary report for each.
Learn it in “GraphRAG” →
Contextual retrieval
Before indexing, asking a model to write a sentence or two that places each chunk in its document, and sticking that note on the front of the chunk for both vector and keyword search (Anthropic, 2024). The chunk's own words stay unchanged.
Learn it in “Contextual retrieval & small-to-big” →
Cross-encoder
A model that reads the question and a passage together and outputs one relevance score. More accurate than comparing separate embeddings (a bi-encoder), but it must run once per pair, so it's used only on a shortlist.
Learn it in “Reranking & relevance filtering” →

D

Dense retrieval
Search by meaning: questions and passages are turned into embedding vectors by the same model, and the passages whose vectors are most similar to the question's are returned.
Learn it in “Embeddings for retrieval” →

E

Entity
A named thing a text talks about: a person, place, organisation, problem or document. In GraphRAG, a model lists the entities in every chunk, and each becomes a dot in the graph.
Learn it in “GraphRAG” →

F

Faithfulness (groundedness)
Whether everything an answer says is supported by the passages it was given. A faithful answer can still be wrong, if retrieval brought the wrong passages.
Learn it in “Evaluating answers” →
Fine-tuning
Training an existing model further on your own examples, which changes its weights. Good for tone, format and behaviour; a slow and unreliable way to add new facts.
Learn it in “Why models need your documents” →

G

Golden test set
A fixed list of real questions, each paired with the passages (or answers) known to be right, used to score every change to a RAG system the same way. Labelled by someone who knows the subject.
Learn it in “Evaluating retrieval” →
GraphRAG
Retrieval that first builds a knowledge graph from the documents, groups it into communities and summarises each, so it can answer questions about the whole collection (Edge et al., Microsoft, 2024). Costs far more to index than plain RAG.
Learn it in “GraphRAG” →

H

HNSW
Hierarchical Navigable Small World: a layered graph index for vectors (Malkov & Yashunin). Search starts on a sparse top layer and hops greedily down to the dense bottom layer. The most widely used vector index.
Learn it in “Vector indexes” →
HyDE (hypothetical document embeddings)
Asking a model to draft an answer to the question, then searching with the draft's embedding instead of the question's (Gao et al., 2023). The draft may contain invented details, so it's used only for search.
Learn it in “Understanding the question” →

I

IDF (inverse document frequency)
How rare a word is across the collection. Words found in few documents get a high IDF and count for more. The idea comes from Karen Spärck Jones (1972).
Learn it in “Keyword search & BM25” →
Index freshness
How closely the search index matches the current documents. A stale index keeps retrieving old, replaced or withdrawn text.
Learn it in “Metadata, freshness & deletions” →
Indirect prompt injection
Instructions hidden in content the system retrieves (a document, email or web page) rather than typed by the user. The model may follow them. No prompt-based defence is reliable, so limit what a fooled model can do.
Learn it in “Security & access control” →
Ingestion
The half of a RAG system that runs ahead of time: parsing documents, splitting them into chunks, embedding the chunks and storing them in an index. It runs again when documents change.
Learn it in “A RAG system, end to end” →
Inverted index
For every word in a collection, the list of documents that contain it (and how often). It lets keyword search look up only the query's words instead of reading every document.
Learn it in “Keyword search & BM25” →
IVF (inverted file index)
A vector index that groups vectors into clusters ahead of time and, at query time, searches only the few clusters nearest the query (the nprobe setting).
Learn it in “Vector indexes” →

K

Knowledge cutoff
The point after which a model's training data stops. The model knows nothing that happened, or was written, after it.
Learn it in “Why models need your documents” →
Knowledge graph
A network of entities (dots) joined by relationships (lines), such as “Sagar Infra — dug up — Lake Road”. Built by hand or, in GraphRAG, extracted by a model, with its mistakes.
Learn it in “GraphRAG” →

L

Late chunking
Embedding a whole document's tokens in one go and only then cutting the result into chunk vectors, so each vector carries some of the document's context without any model-written notes (Günther et al., 2024). Needs a long-context embedding model.
Learn it in “Contextual retrieval & small-to-big” →
Learned sparse retrieval
A model (such as SPLADE, or bge-m3's sparse mode) that turns text into keyword-style weights, including related words that don't appear in it, so it can be searched like an inverted index.
Learn it in “Hybrid search & fusion” →
Legacy (non-Unicode) font
Fonts such as Kruti Dev that draw Devanagari shapes over Latin character codes. Text typed in them copies out as Latin gibberish and needs conversion to Unicode.
Learn it in “Parsing real documents” →
LLM as judge
Using a language model to grade answers, for example pass/fail on faithfulness. Scales cheaply but has habits (leniency, liking longer answers, sensitivity to order), so it must be checked against human labels.
Learn it in “Evaluating answers” →
Lost in the middle
The finding (Liu et al., 2023) that language models used information at the start or end of a long prompt better than information in the middle. Newer models show less of this on simple lookups, but long, noisy prompts still hurt.
Learn it in “Assembling the prompt” →

M

Matryoshka embeddings
Embeddings trained (Kusupati et al., 2022) so that the first part of each vector is useful on its own, like nested dolls: you can cut 3072 numbers down to 256 to save storage, with a modest loss in quality. Only works for models trained this way.
Learn it in “Embeddings for retrieval” →
Metadata filter
A condition on chunk metadata (such as status = current, department or language) applied during search, so only matching chunks can be retrieved.
Learn it in “Metadata, freshness & deletions” →
MRR (mean reciprocal rank)
For each question, 1 divided by the position of the first relevant result (1st = 1, 2nd = ½, none = 0), averaged over questions. Rewards putting a good answer near the top.
Learn it in “Evaluating retrieval” →
MTEB
The Massive Text Embedding Benchmark (2023), and its multilingual successor MMTEB: public leaderboards comparing embedding models on many tasks. Useful for shortlisting, not a substitute for testing on your own data.
Learn it in “Embeddings for retrieval” →
Multi-query retrieval
Searching with several versions of a question (the original plus rewrites) and merging the results, often with reciprocal rank fusion.
Learn it in “Understanding the question” →
Multimodal RAG
RAG over more than plain text: charts, tables, scans and photos. Either extract or describe them as text, or search and read the page images directly with a vision-language model.
Learn it in “Multimodal RAG” →

N

nDCG
Normalised discounted cumulative gain: adds up the relevance grades of the results, discounting lower positions by a logarithm, then divides by the score of the perfect ordering, so 1.0 is best. The usual headline metric of retrieval benchmarks, often at k = 10.
Learn it in “Evaluating retrieval” →
Non-parametric memory
Knowledge kept outside the model, in a searchable collection of documents, and looked up when needed. It can be updated without retraining.
Learn it in “Why models need your documents” →

O

OCR
Optical character recognition: reading letters from an image of a page. Needed for scans and photos, which contain no text layer. Numbers and symbols such as ₹ are easily misread.
Learn it in “Parsing real documents” →

P

Parametric memory
What a model knows from training, stored in its weights (parameters). Lewis et al. (2020) contrast it with a searchable document index.
Learn it in “Why models need your documents” →
Parent–child chunks
Indexing small chunks for precise search but returning the larger section each came from: 'search small, return big'.
Learn it in “Chunking” →
Parsing (documents)
Extracting clean, correctly ordered text and structure (headings, tables) from files such as PDFs, scans and Office documents, before chunking.
Learn it in “Parsing real documents” →
Permission-aware retrieval
Searching only the documents the signed-in user is allowed to open, by filtering inside the search using their identity from the server. Forbidden text never reaches the model, so it can't leak.
Learn it in “Security & access control” →

Q

Query decomposition
Splitting a complex or multi-part question into simpler sub-questions and searching for each separately.
Learn it in “Understanding the question” →
Query rewriting
Using a language model to turn a user's question into a better search query before retrieval: making a follow-up standalone, fixing wording, translating. Costs an extra model call and can go wrong.
Learn it in “Understanding the question” →
Query router
A first step that decides where a question should go, such as text search, a database query or both. It can be simple rules, a small classifier or a language model choosing a tool.
Learn it in “Tables & SQL” →

R

Recall@k (for vector indexes)
The share of the true k nearest neighbours that an approximate index returns. 99% recall@10 means it misses about one in a hundred.
Learn it in “Vector indexes” →
Reciprocal rank fusion (RRF)
Merging ranked lists by giving each item 1/(k + its rank) from every list and adding them up (Cormack, Clarke & Büttcher, 2009; k = 60 is the usual default, though some engines use other values). Uses only positions, so scores on different scales don't matter.
Learn it in “Hybrid search & fusion” →
Relevance threshold
A cut-off on reranker scores below which passages are dropped before the model sees them. Must be chosen per model by testing on labelled questions.
Learn it in “Reranking & relevance filtering” →
Reranker
A second, more careful model that re-scores a shortlist of retrieved passages against the question, then reorders them. Usually a cross-encoder; sometimes an LLM.
Learn it in “Reranking & relevance filtering” →
Retrieval-augmented generation (RAG)
Searching a collection of documents for passages relevant to a question, then giving those passages to a language model with the question so it answers from them. Named by Lewis et al. (2020).
Learn it in “Why models need your documents” →
Romanised Hindi
Hindi written in Latin letters (“sukha kachra”), common in chats and search boxes. Many models handle it much worse than Hindi in Devanagari.
Learn it in “Embeddings for retrieval” →

S

Stemming
Cutting words down to a common stem (days → day, renewed → renew) so different forms match in keyword search. Language-specific.
Learn it in “Keyword search & BM25” →
Stop words
Very common words such as the, for and to, often dropped before keyword indexing because they say little about which document is relevant.
Learn it in “Keyword search & BM25” →

T

Text layer
The machine-readable characters inside a PDF. Scanned PDFs usually have none, only a picture of each page, until OCR adds one.
Learn it in “Parsing real documents” →
Text-to-SQL
A language model turning a question in plain words into a SQL query that a database then runs. Works well on clear, well-described tables; wrong queries often still run and return a plausible number.
Learn it in “Tables & SQL” →
Top-k retrieval
Returning the k passages that score highest for a question (for example the top 3) and passing only those to the model.
Learn it in “A RAG system, end to end” →

V

Vector database
A database built to store embeddings and find the nearest ones quickly, usually with filters and keyword search alongside. Many ordinary databases (PostgreSQL with pgvector, OpenSearch) can do the same job.
Learn it in “Platforms, cost & long context” →
Vector index
A store of embedding vectors organised so that the vectors closest to a query can be found quickly.
Learn it in “A RAG system, end to end” →
Vector quantization
Storing each number in a vector with fewer bits (float32 → int8 → 1 bit, or product quantization codes) to save memory, trading a little accuracy. Often paired with an exact re-check of the top results.
Learn it in “Vector indexes” →
Vision-language model
A language model that also takes images as input, so it can describe a picture or answer a question about a page, chart or photo. Small ones misread details; larger ones read charts far better.
Learn it in “Multimodal RAG” →

General terms · shared by every track

A

ACID
Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
Learn it in “ACID on object storage” →
Atomic
All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
Learn it in “Object storage: the ground floor” →

B

Batch processing
Processing data in scheduled chunks, such as every night or every hour.
Learn it in “Getting data in” →

C

CSV
Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
Learn it in “Rows vs columns: file formats” →

I

Idempotent
Safe to run twice: running the job again gives the same result instead of duplicating data.
Learn it in “Medallion architecture” →

J

JSON
A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
Learn it in “Rows vs columns: file formats” →

M

Metadata
Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
Learn it in “What makes a table a table” →

S

Schema
The structure of a table: its column names and types, such as order_id: long, amount: decimal.
Learn it in “Schema evolution & enforcement” →
SQL
The standard language for querying tables: SELECT … FROM … WHERE …
Learn it in “Hands-on: query in your browser” →
Streaming
Processing data continuously as it arrives, within seconds or minutes.
Learn it in “Getting data in” →

T

Transaction
A group of changes that succeeds or fails as one unit.
Think of it as: A money transfer: debit one account and credit the other, or do neither.
Learn it in “ACID on object storage” →