Glossary

Look up terms you’ll meet when running and building with language models.

A

Abstention

A system’s decision to defer an answer or a label when it lacks enough evidence. An application can send the case to a person for review.

Read the lesson
Adapter

A small set of learned weights used with a base model to change its behavior. LoRA trains adapters by learning low-rank updates to selected layers.

Read the lesson
Approximate nearest neighbor

A search method that aims to find close vectors without comparing every stored vector. Measure how many exact neighbors it recovers.

Read the lesson
Attention

An operation that scores other positions against a query and mixes their value vectors. A mask can limit which positions contribute.

Read the lesson

B

Base model

A model produced by pretraining, often optimized to continue text. An instruction-tuned variant has received additional training to follow requests.

Read the lesson
Bearer token

A credential a client can present in an HTTP Authorization header. Anyone with the token can use the access it grants.

Read the lesson
Bigram

A pair of consecutive tokens. A bigram language model estimates the next token using only the previous token.

Read the lesson

C

Causal mask

A restriction on attention that lets a position use the current and earlier input tokens and hides the later ones.

Read the lesson
Chat template

A model-specific way to turn chat roles and messages into one tokenizable input, usually with control markers for the start and end of each turn.

Read the lesson
Classification

Assigning an input to one or more defined labels, such as sorting a library request into a return, renewal, or equipment reservation.

Read the lesson
Concurrency

Having more than one request in progress at once. A server can queue them, process them in parallel, or combine some of their computation.

Read the lesson
Context window

The amount of tokenized information the model can use for a request. Budget for instructions, conversation history, source text, and the reply.

Read the lesson
Counter

A metric that accumulates events, such as generated tokens. Calculate a difference between samples from the same process to count events over that interval.

Read the lesson
Cross-encoder

A model that reads two inputs together, such as a question and a passage, and scores the pair.

Read the lesson
Cross-entropy

A loss that penalizes a model for assigning low probability to the target. For a single correct token, it is the negative log of the predicted probability for that token.

Read the lesson
Cross-language retrieval

Finding passages written in a different language from the query. An embedding model can map related text across languages to nearby vectors.

Read the lesson

D

Diffusion

A family of generative methods that learn to reverse a noising process. A text-to-image model can use a prompt to guide generation from noise.

Read the lesson
Distillation

Training a student model using outputs or other signals from a teacher model. The student keeps its own architecture and weights.

Read the lesson
Document digest

A value computed from a document’s bytes with a hash function such as SHA-256. Store it with a citation to identify the exact file version used.

Read the lesson

E

Effective date

The date when a policy or edition starts to apply. Use it with a question’s date to select the applicable source.

Read the lesson
Embedding

A vector that represents an input numerically. An embedding model can place related passages near one another so an application can retrieve them.

Read the lesson
Evaluation

A repeatable way to measure model behavior on a set of tasks with defined expectations.

Read the lesson
Evidence coverage

How many of the facts a question requires have supporting evidence in the retrieved passages or answer.

Read the lesson
Extractive summary

A summary made from selected sentences or excerpts of the source. Each selection can be traced back to the original text.

Read the lesson

F

Fine-tuning

Additional training on examples that adjusts a model’s behavior. It can change the model’s weights or train a separate adapter.

Read the lesson

G

Gauge

A metric that records a value at the time it is measured, such as the number of active requests. It can rise or fall between samples.

Read the lesson
GGUF

A file format that packages model weights with metadata for inference engines such as llama.cpp. A GGUF file can hold weights in several different precisions.

Read the lesson
Grounding

Providing evidence to a model and checking that its answer follows from that evidence.

Read the lesson

H

Hallucination

A generated claim that is unsupported or incorrect, even when the text sounds confident.

Read the lesson
Held-out test set

Examples reserved for the final comparison. Keep them out of training and out of the decisions used to tune the prompt or adapter.

Read the lesson
HNSW

Hierarchical navigable small world. A graph-based index that searches for nearby vectors by moving through connections between stored items.

Read the lesson

I

Inference

Using a trained model to produce an output from an input. Local inference performs that calculation on your machine.

Read the lesson
Instruction tuning

Additional training that teaches a model to respond to requests in instruction or conversation formats.

Read the lesson

K

KV cache

Memory used to retain intermediate attention values for tokens the model has already processed. It typically grows with context and active requests.

Read the lesson

L

Latency

The time you wait for a result. For chat, time to first token and time to finish describe different parts of the wait.

Read the lesson
LLM

Short for large language model. It learns statistical patterns in training data and uses them to generate or process language.

Read the lesson
Localhost

A hostname that points back to the machine making the request. The IPv4 loopback address is 127.0.0.1.

Read the lesson
LoRA

Low-rank adaptation. A fine-tuning method that learns compact updates to selected model layers while keeping the original weights frozen.

Read the lesson

M

MCP resource

Content an MCP server exposes at an identifier called a URI. A client can read the content and decide whether to give it to a model.

Read the lesson
Mixture of experts

An architecture in which a router selects a subset of specialized networks for each input token. The total stored weights can be much larger than the active subset.

Read the lesson
MLX

A framework for array computations and machine learning on Apple silicon. MLX LM uses it to run and fine-tune language models.

Read the lesson
Model card

Documentation that describes a model’s intended uses, limitations, licensing information, and sometimes evaluation results.

Read the lesson
Model Context Protocol

MCP. A protocol clients can use to discover and access tools, resources, and prompts exposed by a server.

Read the lesson
Multimodal model

A model that accepts or generates more than one kind of data, such as text and images.

Read the lesson

N

NDJSON

Newline-delimited JSON. Each line is a separate JSON value, which lets a client process a stream one event at a time.

Read the lesson

O

OCR

Optical character recognition. It converts the visible text in an image or scan into machine-readable characters.

Read the lesson
OCR sidecar

A text file stored beside a scan or PDF. It contains the recognized text for a known source page.

Read the lesson
Offloading

Assigning part of an inference workload, such as model layers, to a different processor or memory pool.

Read the lesson
Open weights

Weights made available for download under a license. That license determines what you may do with the model and its derivatives.

Read the lesson
Overfitting

Learning patterns specific to the training examples that make predictions worse on other examples. Compare training metrics with held-out metrics to look for it.

Read the lesson

P

Parameter

A numerical value learned during training. A model label such as 7B indicates roughly seven billion parameters.

Read the lesson
PDF text layer

Machine-readable characters embedded in a PDF page. A scan may contain only an image, which needs OCR to recover text.

Read the lesson
Perplexity

The exponential of mean negative log probability on observed tokens. Lower values mean the model assigns higher probability to those tokens on the same evaluation.

Read the lesson

Q

Quantization

Representing weights or other values with lower precision to reduce memory use. Quality and speed depend on the method and hardware.

Read the lesson
Query decomposition

Splitting a question into separate parts so the application can retrieve and check the evidence each part requires.

Read the lesson

R

RAG

Retrieval-augmented generation. An app finds relevant source passages and supplies them to the model with the question.

Read the lesson
Recall at k

The share of a reference set recovered in the first k results. State which reference set you use, such as relevant documents or exact nearest neighbors.

Read the lesson
Reciprocal rank fusion

A way to combine ranked lists by giving each result a contribution based on its position in each list.

Read the lesson
Regression test

A repeatable check for behavior that broke before. Keep the test after the fix so a later change can be checked against the same case.

Read the lesson
Reranker

A second stage that scores and reorders items returned by a retriever. It can only rank the candidates it receives.

Read the lesson
Runtime

Software that loads a model and carries out inference. A chat interface or application can sit on top of it.

Read the lesson

S

Source precedence

A rule that names the source that governs a fact when multiple documents mention the same subject.

Read the lesson
Speech recognition

Turning spoken audio into text. A transcription model may also estimate the timing of words or segments.

Read the lesson
Speech synthesis

Generating audio from text. A text-to-speech system uses a voice model and settings such as speaking rate.

Read the lesson
SSH tunnel

An encrypted SSH connection that can forward a local port to a service the SSH host can reach, including a service bound to its loopback address.

Read the lesson
Standard input and output

A process can read a stream called standard input and write to a stream called standard output. In MCP’s stdio transport, a client starts a server and exchanges messages using those streams.

Read the lesson
Structured output

A response with a defined shape, such as a JSON object that conforms to a schema.

Read the lesson

T

Temperature

A sampling setting that changes how concentrated the next-token choices are. Lower values usually make output less varied.

Read the lesson
TF-IDF

Term frequency–inverse document frequency. A weighting method that gives more weight to terms that occur in a particular document and are less common across the collection.

Read the lesson
Throughput

The amount of work completed per unit of time, such as replies per second across all clients or generated tokens per second.

Read the lesson
Time to first audio

The elapsed time before the first audio chunk is ready. State the start point and distinguish chunk readiness from when the listener hears it.

Read the lesson
Token

A unit of text handled by a model’s tokenizer. It may represent a word, part of a word, punctuation, or whitespace.

Read the lesson
Tool call

A model-generated request for an application to run a named function with specific arguments. The application decides what to execute.

Read the lesson

V

Voice activity detection

Finding which parts of an audio recording contain speech. A transcription pipeline can use it to skip long stretches of silence.

Read the lesson
VRAM

Memory used by a graphics processor. Dedicated GPUs typically have their own memory pool. Integrated systems may share system memory.

Read the lesson

W

Weights

Learned numerical values stored in a model file. A runtime loads these values to perform inference.

Read the lesson
Word error rate

The number of word insertions, deletions, and substitutions needed to match the reference, divided by the number of words in the reference.

Read the lesson

Search the guide