LLM glossary: a practical reference
Plain-language definitions of model, retrieval and agent terms, with the limits that matter in practice.
The short version of an LLM glossary: one or two lines per term, no maths. When a word in a note stops you, look it up here. For the labels on a download page, see reading a local model listing.
LLM glossary: the model words
Alignment
Methods intended to bring model behaviour closer to desired goals and constraints, including training and evaluation. Alignment is not a guarantee of safe behaviour.
Attention
A mechanism for weighting relationships between tokens. Which tokens can interact depends on the architecture and attention pattern.
Distillation
Training a model using outputs or signals from another model, often to make a smaller model more capable on selected tasks.
Fine-tuning
Extra training on a smaller, focused dataset to change how a model behaves or what it knows.
LLM
A large language model: a neural network trained on huge amounts of text to predict the next token.
LoRA
A parameter-efficient fine-tuning method that learns low-rank updates while leaving the original weights frozen.
Mixture of Experts
An architecture that routes computation through selected expert components. Fewer active parameters can reduce computation, but speed still depends on implementation and hardware.
Multimodal
A model that handles more than text, such as images, audio or video.
Open weights
A model with downloadable weights. Check its licence: open weights do not necessarily grant unrestricted use or include training data and code.
Pretraining
The first, expensive phase where a model learns language by reading a massive text corpus.
Reasoning model
A model trained to use additional intermediate computation when answering. It may improve some tasks while adding latency and token use.
Transformer
The architecture behind almost every modern LLM. It uses attention to weigh how words relate to each other.
Weights
The numbers a model learned during training. Downloading a model means downloading its weights.
The Running Words
Batching
Processing several requests at once so the GPU stays busy. Key to serving many users.
Inference
Running a trained model to get an answer. Training builds the model; inference uses it.
K-quants
A family of llama.cpp quantization methods with labels such as Q4_K_M. Precision, memory and quality depend on the particular method and model.
KV cache
Cached attention keys and values from processed tokens, reused during generation. Its memory use depends on the architecture, precision and sequence length.
Latency
A measure of delay. Time to first token and total request time are different latency measurements; specify which one you mean.
Offloading
Placing model weights or computation on another device, such as the CPU, to manage memory. The performance cost depends on the hardware and workload.
OpenAI-compatible API
An API that follows some OpenAI request and response conventions. Compatibility varies by endpoint and feature.
Safetensors
A tensor-file format designed to avoid executable-code deserialization. It does not establish the safety of accompanying code or the quality of the weights.
Speculative decoding
A method that proposes candidate tokens and verifies them with the target model. It can accelerate generation when enough proposals are accepted.
Throughput
How many tokens per second a setup produces, for one user or across many.
Tokenizer
The component that splits text into tokens and back. Each model family has its own.
The Prompt Words
Chain of thought
Intermediate reasoning steps generated while solving a task. They are not proof of correctness or necessarily a faithful explanation of the model’s computation.
Few-shot
Showing the model a few worked examples in the prompt so it copies the pattern.
Guardrails
Controls intended to limit unwanted inputs, outputs or actions. Their effectiveness must be tested; prompt rules alone are not access control.
Hallucination
A confident answer that is simply wrong or made up.
Prompt
The input you give a model: instructions, context and the question itself.
Prompt injection
Instructions in untrusted input, such as a document or webpage, that try to redirect the system away from its authorised task. They need not be hidden.
Structured output
Output constrained or requested to follow a format or schema. Validate the result: correct structure does not establish correct values.
System prompt
Application-level instructions that shape the model’s role and behaviour. They should not be treated as a secret store or a security boundary.
Temperature
A sampling setting that changes the distribution of token choices. Lower values concentrate choices but do not guarantee identical or correct answers.
Top-p
A sampling limit that only lets the model pick from the most likely tokens adding up to probability p.
The Knowledge Words
Chunking
Cutting documents into small pieces before embedding them, so search returns focused passages.
Cosine similarity
A measure of the angle between vectors. Its usefulness for retrieval depends on the embedding model; it is not a factual-confidence score.
Embedding model
A model that maps inputs such as text or images to vectors used for similarity search and other tasks.
Grounding
Basing a response on supplied evidence. Check that the claims are supported; providing sources does not force the model to use them correctly.
Hybrid search
Combining keyword search with vector search. Catches exact names and fuzzy meaning at once.
Reranker
A model that scores retrieved candidates again. Test whether its ordering improves your queries before adding it to a pipeline.
Vector database
A database built to store embeddings and find the closest ones fast.
The Agent Words
Agent
An LLM that can plan, call tools and act over several steps toward a goal.
Benchmark
A public, standardized eval used to compare models. Useful, but easy to over-trust.
Eval
A repeatable test set that measures whether a model or prompt change made things better or worse.
Human in the loop
A setup where a person approves or corrects the agent before risky actions run.
MCP
Model Context Protocol: an open standard for plugging tools and data sources into AI apps.
Tool calling
When a model asks to run a function, like a search or an API call, and uses the result.