Bistro Innovation LabsSearch & AI consulting · Berlin

Glossary

Search & RAG terms, defined plainly.

Plain-language definitions of 29 search, vector search and RAG terms — nDCG, judgment list, hybrid search, BM25, HNSW, ColPali, faithfulness, abstention, LLM-as-judge and more — written by a search engineer with 19 years in information retrieval.

Abstention (refusal correctness)
Abstention is a RAG system declining to answer when the corpus does not contain the answer. In practice a meaningful share of user questions are unanswerable; if the evaluation does not reward correct abstention, the system learns to guess.
FaithfulnessTalks & articles on this →
Agentic retrieval
Agentic retrieval lets an AI agent decide when and what to retrieve, issue multiple queries, and verify results before answering. The agent is only as good as the retrieval it calls; evaluation therefore covers both the retrieval tools and the end-to-end task outcome.
Retrieval-augmented generationTalks & articles on this →
BM25
BM25 is the probabilistic lexical ranking function used by Lucene, Solr, Elasticsearch, OpenSearch and Vespa for keyword matching. It scores term frequency with saturation and document-length normalisation. On real corpora it remains a strong baseline that dense retrieval often fails to beat alone, which is why hybrid search exists.
Hybrid searchDense retrievalTalks & articles on this →
Chunking
Chunking splits documents into passages for indexing and retrieval in RAG. Chunk size, overlap and boundaries (sections, tables, headings) change what can be retrieved and how much context reaches the model, so chunking is an evaluated decision, not a default.
Retrieval-augmented generationTalks & articles on this →
ColPali
ColPali is a visual document retrieval approach that embeds page images with a vision-language model into many patch-level vectors and scores queries with late interaction (MaxSim). It retrieves tables, charts and scanned layouts without OCR pipelines, at a higher storage and compute cost per page than text embeddings.
Multi-vectorEmbeddingsTalks & articles on this →
Dense retrieval
Dense retrieval represents queries and documents as embedding vectors and ranks by vector similarity, so paraphrases and semantically related text can match without shared keywords. Its weaknesses are exact terms, rare entities, numbers and domain vocabulary the embedding model never saw.
EmbeddingsHybrid searchTalks & articles on this →
Embeddings
Embeddings are fixed-length numeric vectors produced by a model so that similar texts, images or items are close together. In retrieval they power dense and multimodal search. Model choice should be evaluated on your own judgments; leaderboard rank is only a shortlist.
Dense retrievalVector databaseTalks & articles on this →
Faithfulness (groundedness)
Faithfulness measures whether every claim in a generated answer is supported by the retrieved passages. It is scored by an LLM grader or human review and is distinct from answer relevance (did it answer the question) and from retrieval recall (was the evidence available).
LLM-as-judgeAbstentionTalks & articles on this →
Generative engine optimization (GEO)
GEO is the practice of making a brand and its content retrievable, citable and accurately described by AI answer engines such as ChatGPT, Perplexity and Google AI Mode: consistent entity data, answer-first passages, structured data and third-party corroboration. It is retrieval engineering applied to your own visibility.
Information retrievalTalks & articles on this →
HNSW
Hierarchical Navigable Small World is the graph-based approximate nearest-neighbour index used by most vector databases. It trades a little recall for large speed-ups; its parameters (M, ef) and memory footprint are the main tuning levers, and at billion scale alternatives or quantisation are needed.
Vector databaseVector quantisationTalks & articles on this →
Information retrieval (IR)
Information retrieval is the discipline of finding the documents, passages or items that satisfy an information need expressed as a query. Search engines, recommender systems and the retrieval stage of RAG are all IR systems; relevance, recall and latency are its core trade-offs.
Search relevanceRetrieval-augmented generationTalks & articles on this →
Judgment list
A judgment list (or relevance judgments, qrels) is a set of real queries paired with documents graded for relevance by domain experts or calibrated LLM graders. It is the ground truth that offline metrics are computed against and the single most valuable asset in a search or RAG evaluation programme.
nDCGOffline evaluationTalks & articles on this →
Learning to rank (LTR)
Learning to rank trains a model, often gradient-boosted trees or a neural ranker, to order results using features such as text scores, popularity, recency and business signals, with judgments or click data as labels. It turns ranking from hand-tuned boosts into a measured model.
RerankingJudgment listTalks & articles on this →
LLM-as-judge
LLM-as-judge uses a language model to grade retrieval or answer quality against a rubric and reference answers, scaling human judgment. Good practice: grade with a different model than the one that generates, give it the judging guidelines, and audit a sample of grades by hand every week because graders drift.
FaithfulnessJudgment listTalks & articles on this →
MRR (mean reciprocal rank)
Mean reciprocal rank averages 1 divided by the rank of the first relevant result across queries. It fits known-item search, where one correct answer exists, such as product-code lookup or “find the policy document”, and is less suited to queries with many acceptable results.
nDCGTalks & articles on this →
Multi-vector (late-interaction) retrieval
Multi-vector retrieval represents each document with many vectors (one per token or image patch) and scores a query by summing the best match for each query vector, as in ColBERT and ColPali. It is more precise than single-vector retrieval and needs engines such as Vespa or Qdrant that support multi-vector scoring.
ColPaliVespaTalks & articles on this →
nDCG (normalised discounted cumulative gain)
nDCG scores a ranked list by summing the graded relevance of each result, discounted by its position, and dividing by the best possible ordering. nDCG@10 is the standard offline metric for ranked search results because it rewards putting the most relevant items first.
MRRRecall@kTalks & articles on this →
Offline evaluation
Offline evaluation measures a search or RAG system against a judgment list without live traffic, so changes can be compared cheaply and repeatably, often on every pull request. It complements online evaluation (A/B tests, interleaving), which measures real user behaviour but is slower and noisier.
Online evaluationJudgment listTalks & articles on this →
Online evaluation (A/B testing, interleaving)
Online evaluation compares ranking variants on live users. A/B tests split traffic between systems and compare outcome metrics; interleaving mixes results from both systems into one list and counts which system’s results users prefer, which detects differences with far less traffic.
Offline evaluationTalks & articles on this →
Query understanding
Query understanding turns a raw query into structured intent: spelling correction, entity recognition (brand, size, location), intent classification and rewriting. It lets the engine apply filters and boosts the user implied, and is often a larger relevance win than a new ranking model.
Search relevanceTalks & articles on this →
Recall@k
Recall@k is the share of relevant documents that appear in the top k results. For RAG it is the primary retrieval metric: if the must-cite passage is not in the top k that reaches the model, no prompt can recover it. Typical k values are 5, 10 or 20, matched to the context window.
Retrieval-augmented generationJudgment listTalks & articles on this →
Relevance engineering
Relevance engineering is the practice of improving search results systematically: building judgment lists, measuring offline metrics such as nDCG, tuning analysis, ranking functions and models, and validating online with A/B or interleaving. Its defining habit is that every change gets a number before it ships.
Judgment listLearning to rankTalks & articles on this →
Reranking
Reranking re-scores a short candidate list (typically the top 50–200 from first-stage retrieval) with a more expensive model, such as a cross-encoder or a learning-to-rank model, to improve the final order. It is where most precision gains come from, at a latency cost that first-stage retrieval keeps bounded.
Learning to rankHybrid searchTalks & articles on this →
Retrieval-augmented generation (RAG)
RAG answers a question by first retrieving relevant passages from a corpus and then having a language model generate an answer grounded in them, ideally with citations. Its quality is bounded by retrieval: a passage that is not retrieved cannot be used, so retrieval evaluation comes first.
Recall@kChunkingFaithfulnessTalks & articles on this →
Search relevance
Search relevance is how well the results a system returns match what the user meant, in the order they would expect. It is domain-specific: in e-commerce it includes stock, margin and popularity; in medical search, exact terminology; in news, freshness. Relevance is measured with judgments, not assumed.
Judgment listnDCGTalks & articles on this →
Vector database
A vector database stores embeddings and answers nearest-neighbour queries at scale, usually with an approximate index such as HNSW, plus filtering and payload storage. Qdrant is a dedicated vector database; Vespa, Elasticsearch and OpenSearch add vector search inside a general search engine.
HNSWVector quantisationTalks & articles on this →
Vector quantisation
Quantisation compresses embedding vectors, for example to 8-bit scalars or single bits, to cut memory and speed up search, usually with a rescoring step on full-precision vectors to recover accuracy. Binary quantisation can reduce memory by around thirty times for suitable models.
HNSWVector databaseTalks & articles on this →
Vespa
Vespa is an open-source AI search platform (and Vespa Cloud, its managed service) that runs lexical, vector and multi-vector retrieval, tensor-based ranking with phased ranking and model inference in one engine, with real-time updates at large scale. Bistro Innovation Labs is an official Vespa.ai partner.
Hybrid searchMulti-vectorTalks & articles on this →

Discuss a project

Need these numbers for your own system?

A two-week Search & RAG Diagnostic produces a judgment set, a measured baseline and a prioritised fix list.