The Search Odyssey

Search Glossary

Every term the odyssey uses, in plain language. Search the glossary with the same client-side search spirit as the course.

52 terms

Inverted index

Text

A map from each token to the documents and positions where it appears, so a query can look up terms instead of scanning the corpus.

Tokenization

Text

Splitting text into indexable units such as words, numbers, or symbols.

Stemming

Text

A fast, rule-based reduction of words to a shared root, such as running to run.

Lemmatization

Text

Reducing a word to its dictionary form using linguistic knowledge, so better and good can align.

Stop word

Text

A very common word such as the or and that is sometimes removed from the index.

Postings list

Text

The list of documents, and often positions, associated with one term in an inverted index.

Positional index

Text

An index that records token positions, enabling phrase and proximity queries.

Boolean retrieval

History

A search model that combines exact term matches with AND, OR, and NOT.

PageRank

History

A link-analysis algorithm that treats links as votes to estimate the importance of a web page.

TF-IDF

Ranking

A ranking score that rewards frequent query terms in a document while discounting terms that are common across the corpus.

BM25

Ranking

A family of ranking functions using term frequency, inverse document frequency, saturation, and document length normalization.

IDF

Ranking

Inverse document frequency: a weight that gives rarer terms more discriminating power.

k1

Ranking

The BM25 parameter controlling how quickly repeated term occurrences stop adding value.

b

Ranking

The BM25 parameter controlling how strongly document length is normalized.

Field boost

Ranking

Extra weight given to a match in a specific field, such as title or category.

Edit distance

Fuzzy

The minimum number of insertions, deletions, and substitutions needed to transform one string into another.

Levenshtein distance

Fuzzy

The standard edit distance allowing insertion, deletion, and substitution.

Damerau-Levenshtein

Fuzzy

Levenshtein distance extended with transpositions of adjacent characters.

N-gram

Fuzzy

A contiguous sequence of n characters or tokens, often used to shortlist fuzzy matches.

Phonetic algorithm

Fuzzy

An algorithm such as Soundex or Metaphone that encodes how a word sounds to catch spelling variants.

Trie

Autocomplete

A tree keyed by characters where shared prefixes share a path, making prefix traversal efficient.

Radix tree

Autocomplete

A compressed trie that collapses single-child paths to save memory.

FST

Autocomplete

Finite-state transducer: a compact automaton that maps inputs to outputs, often used for dictionary and suggestion lookup.

Haversine distance

Geo

Great-circle distance between two latitude/longitude points, accounting for the Earth’s curvature.

Geohash

Geo

A string encoding of a geographic cell; longer prefixes identify smaller areas.

R-tree

Geo

A spatial index tree built over bounding rectangles, common in databases and GIS systems.

Distance decay

Geo

A ranking adjustment that smoothly reduces relevance as distance from the user increases.

Embedding

Vector

A learned numeric vector representing the meaning of text, images, or other inputs.

Cosine similarity

Vector

A similarity measure based on the angle between vectors, ignoring their magnitude.

Dot product

Vector

A vector similarity measure that includes both direction and magnitude.

ANN

Vector

Approximate nearest neighbor search: finding likely close vectors without comparing against every vector.

HNSW

Vector

Hierarchical Navigable Small World: a layered graph index for fast approximate vector search.

IVF

Vector

Inverted file index: clustering vectors and probing only selected clusters at query time.

Product quantization

Vector

A compression technique that splits vectors into subspaces and stores compact codes.

efSearch

Vector

An HNSW query-time parameter controlling how many candidates are explored.

Hybrid search

Hybrid

Combining keyword and vector retrieval, often followed by fusion and reranking.

Reciprocal Rank Fusion

Hybrid

A rank-based fusion method that combines result lists using 1/(k + rank).

Reranker

Hybrid

A second-stage model that reorders a small candidate set using a richer relevance signal.

Cross-encoder

Hybrid

A model that scores a query and document together, usually too expensive to run over the full corpus.

SPLADE

Hybrid

A learned sparse retrieval model that produces expanded term weights for lexical search.

Precision

Evaluation

The fraction of returned results that are relevant.

Recall

Evaluation

The fraction of all relevant results that were returned.

MRR

Evaluation

Mean Reciprocal Rank: the average of 1 divided by the rank of the first relevant result.

nDCG

Evaluation

Normalized Discounted Cumulative Gain: a graded relevance metric that discounts results lower in the ranking.

MAP

Evaluation

Mean Average Precision: the average of precision at each relevant result across queries.

Golden set

Evaluation

A curated set of queries with human relevance judgments used to compare search systems.

RAG

RAG

Retrieval-Augmented Generation: retrieving evidence and grounding a language model’s answer in it.

Chunking

RAG

Splitting documents into retrievable passages, trading context against precision.

Grounding

RAG

Tying generated claims to retrieved evidence, often through citations.

Hallucination

RAG

A fluent but unsupported or false model output.

Faithfulness

RAG

The degree to which a generated answer is supported by the retrieved context.

Lost in the middle

RAG

The tendency of long-context models to miss evidence placed in the middle of the context window.