Glossary
Terms, in two lines each
A plain line for the idea, and a technical line for building it.
- BM25
Classic keyword search that ranks documents by matching words.
A term frequency and inverse document frequency scoring function with length normalisation (k1, b).
- Chunk
A piece of a document small enough to search and fit in a prompt.
A retrievable unit produced by a chunking strategy, stored with its source and position metadata.
- Context window
How much text a model can read at once.
The maximum number of tokens in the prompt plus the output for a single model call.
- Embedding
A list of numbers that captures what a text means.
A dense vector from an encoder model; similar meanings give vectors with high cosine similarity.
- Recall@k
How often the right answer is in the top k results.
The share of relevant items found in the top k ranked results, averaged over queries.
- Retrieval augmented generation
Looking up relevant documents first, then letting the model answer using them.
A pipeline that retrieves context for a query and inserts it into the prompt before generation.
- Token
A small piece of text, often part of a word, that models read and write.
A unit from the model's tokenizer vocabulary; counts and limits are measured in tokens, not words.