A neural network trained on huge amounts of text to predict the next token. Scaled up, next-token prediction yields models that can write, summarize, reason and follow instructions. Learn more →
Token
The unit a model reads and writes: usually a word piece of a few characters. Pricing, context limits and speed are all measured in tokens; one English word is about 1.3 tokens. Learn more →
Tokenization
Splitting text into tokens from a fixed vocabulary. Most LLMs use subword schemes like BPE so rare words break into known pieces instead of becoming unknown. Learn more →
Byte-pair encoding (BPE)
A tokenizer training algorithm that starts from characters (or bytes) and repeatedly merges the most frequent adjacent pair into a new token until the vocabulary reaches a target size. Learn more →
Embedding
A vector of numbers that represents the meaning of text (or an image). Similar meanings land close together, which powers semantic search, clustering and RAG. Learn more →
Vector
An ordered list of numbers. In AI it usually means an embedding: a point in a high-dimensional space where distance reflects similarity. Learn more →
Cosine similarity
Similarity between two vectors measured by the angle between them (from −1 to 1), ignoring their length. The default way to compare text embeddings. Learn more →
Transformer
The neural network architecture behind modern LLMs. It processes all tokens in parallel and uses attention to let every token draw information from every other token. Learn more →
Attention
The mechanism that lets each token weigh how relevant every other token is and mix in their information. Computed as softmax(QKᵀ/√d)·V. Learn more →
Multi-head attention
Running several attention operations in parallel, each with its own learned projections, so different heads can track different relationships (syntax, coreference, position). Learn more →
Context window
The maximum number of tokens (prompt plus output) a model can consider at once. Everything the model knows about your request must fit inside it. Learn more →
Pre-training
The first, most expensive training stage: learning next-token prediction on trillions of tokens of general text. It produces a base model with broad knowledge but no instruction-following. Learn more →
Instruction tuning
Fine-tuning a base model on (instruction, good response) examples so it follows requests instead of just continuing text. Also called supervised fine-tuning (SFT). Learn more →
Temperature
A sampling setting that scales the model's probabilities before choosing the next token. Low (≈0) is focused and repeatable; high is more varied and creative. Learn more →
Top-p (nucleus) sampling
Sample the next token only from the smallest set of tokens whose probabilities add up to p (for example 0.9), cutting off the unlikely tail. Learn more →
Logits
The raw, unnormalized scores a model outputs for every token in its vocabulary. Softmax turns them into probabilities. Learn more →
Softmax
A function that turns a list of scores into probabilities that are all positive and sum to 1, exaggerating the gap between large and small scores. Learn more →
Hallucination
When a model states something fluent and confident that is false or unsupported. Grounding (RAG), citations and evaluation reduce it; nothing removes it completely. Learn more →
Prompt engineering
Designing the instructions, context, examples and output format you give a model so it reliably does what you want. Learn more →
System prompt
Instructions given with higher priority than user messages, used to set the model's role, rules, tone and output format for a whole conversation. Learn more →
Few-shot prompting
Including a few worked input→output examples in the prompt so the model copies the pattern. Zero-shot means giving instructions with no examples. Learn more →
Chain-of-thought
Asking or training a model to reason step by step before answering. It improves multi-step math and logic, at the cost of more tokens and latency. Learn more →
Structured output
Making a model return machine-readable data (usually JSON that matches a schema) so code can consume it reliably. Learn more →
Function calling
A model capability to output a structured request to call one of your declared functions (name plus JSON arguments). Your code runs it and returns the result. Learn more →
Retrieval-augmented generation (RAG)
Answering with an LLM after first retrieving relevant documents and putting them in the prompt, so answers are grounded in your data and can cite sources. Learn more →
Chunking
Splitting documents into pieces before embedding them for retrieval. Chunk size and overlap trade precision against context. Learn more →
Vector database
A database built to store embeddings and quickly find the nearest ones to a query vector, usually with approximate nearest-neighbor indexes. Learn more →
Approximate nearest neighbor (ANN)
Search methods (like HNSW graphs or IVF clusters) that find vectors close to a query far faster than comparing against everything, accepting a small loss in recall. Learn more →
BM25
A classic keyword ranking function that scores documents by term frequency and rarity, with length normalization. Strong for exact terms, names and codes. Learn more →
Hybrid search
Combining keyword search (like BM25) with vector search, then merging the results (for example with reciprocal rank fusion) to get both exact matches and semantic matches. Learn more →
Reranking
A second pass that rescores the top retrieved candidates with a more accurate (slower) model, usually a cross-encoder that reads the query and document together. Learn more →
Grounding
Tying a model's answer to provided sources (retrieved documents, tool results) instead of its memory, so claims can be checked and cited. Learn more →
Evaluation (evals)
Systematic tests of an LLM system's outputs against a dataset and metrics, so you can measure quality and catch regressions when anything changes. Learn more →
Golden dataset
A curated, versioned set of representative inputs with expected outputs or grading criteria, used as the fixed benchmark for evals. Learn more →
LLM-as-a-judge
Using a strong model with a rubric to grade another model's outputs. Scalable, but must be calibrated against human labels and checked for biases. Learn more →
Agent
An LLM in a loop that decides which actions or tools to use, observes the results, and continues until the goal is reached. Learn more →
ReAct
An agent pattern that interleaves Reasoning (thought) and Acting (tool calls) with observations, step by step. Learn more →
Model Context Protocol (MCP)
An open protocol for connecting AI applications to tools and data sources through a standard client–server interface, so one integration works across apps. Learn more →
Agent memory
How an agent keeps information beyond one context window: short-term (the conversation) and long-term (stored facts or summaries retrieved when relevant). Learn more →
Fine-tuning
Continuing to train a pre-trained model on your own examples to change its behavior, style or format. Best for how a model responds, not for teaching new facts. Learn more →
LoRA
Low-Rank Adaptation: fine-tuning that freezes the original weights and trains small low-rank matrices added to them, cutting trainable parameters by 100–1000×. Learn more →
QLoRA
LoRA training on top of a base model quantized to 4 bits, making it possible to fine-tune large models on a single GPU. Learn more →
PEFT
Parameter-efficient fine-tuning: methods (LoRA, adapters, prefix tuning) that train a small number of extra parameters instead of the full model. Learn more →
RLHF
Reinforcement learning from human feedback: train a reward model on human preference comparisons, then optimize the LLM against it (often with PPO). Learn more →
DPO
Direct Preference Optimization: trains directly on (chosen, rejected) response pairs with a simple classification-style loss, with no separate reward model or RL loop. Learn more →
Overfitting
When a model memorizes its training data, including noise, and performs worse on new data. Detected by a gap between training and validation performance. Learn more →
KV cache
Stored attention keys and values for tokens already processed, so generating each new token doesn't recompute the whole prefix. It speeds decoding but uses a lot of GPU memory. Learn more →
Quantization
Storing model weights (and sometimes activations) with fewer bits, such as 8 or 4 instead of 16, to cut memory and speed up inference with small quality loss. Learn more →
Time to first token (TTFT)
Latency from sending a request to receiving the first output token. Dominated by prompt processing (prefill); it's what makes an app feel responsive. Learn more →
Continuous batching
A serving technique that adds and removes requests from the running GPU batch at every decoding step, greatly increasing throughput versus fixed batches. Learn more →
Prompt caching
Reusing work for repeated inputs: prefix caching reuses computed KV for a shared prompt prefix; semantic caching returns a stored answer for a similar past query. Learn more →
Speculative decoding
Speeding up generation by having a small draft model propose several tokens that the large model verifies in one pass, without changing the output distribution. Learn more →
Distillation
Training a smaller student model to imitate a larger teacher model's outputs, keeping much of its quality at lower cost. Learn more →
Mixture of experts (MoE)
An architecture with many expert sub-networks where a router activates only a few per token, so total parameters are huge but compute per token stays modest. Learn more →
Prompt injection
An attack where untrusted text (a web page, email, document) contains instructions that hijack the model. The top security risk for LLM apps that use tools. Learn more →
Jailbreak
A prompt crafted to get a model to ignore its safety rules or system instructions. Learn more →
Guardrails
Checks around a model, such as input filters, output validators, policy classifiers and allow-lists for tools, that block unsafe or invalid behavior. Learn more →
PII
Personally identifiable information: data that can identify a person, such as names, emails, phone numbers and IDs. It must be minimized, redacted or protected in AI pipelines. Learn more →
Observability
Recording what an LLM system did, including prompts, retrieved context, tool calls, outputs, latency and cost per step, so failures can be debugged and quality tracked. Learn more →
Fallback
A backup path when a model call fails or is too slow: retry with backoff, switch to another model or provider, or return a safe default. Learn more →
Exponential backoff
Retrying a failed request after waiting longer each time (1s, 2s, 4s…), usually with random jitter, so a struggling service isn't overwhelmed. Learn more →
Rate limit
A cap on how many requests or tokens you may send per minute. Exceeding it returns errors (often HTTP 429) that you handle with backoff and queuing. Learn more →
Vision-language model (VLM)
A model that accepts images (and often audio or video) as well as text, for tasks like describing images, reading documents and answering visual questions. Learn more →
OCR
Optical character recognition: extracting text from images or scanned documents. Modern pipelines combine OCR with layout analysis or use VLMs directly. Learn more →
Speech-to-text (ASR)
Automatic speech recognition: converting spoken audio into text, the first step of most voice AI systems. Learn more →
Gradient descent
The optimization method used to train neural networks: repeatedly nudge the weights a small step in the direction that most reduces the loss. Learn more →
Loss function
A number measuring how wrong a model's predictions are; training minimizes it. LLMs use cross-entropy on the next token. Learn more →
Precision and recall
Precision: of the items you returned or flagged, the fraction that were correct. Recall: of all the correct items, the fraction you found. Improving one usually costs the other. Learn more →
F1 score
The harmonic mean of precision and recall: a single number that is high only when both are high. Learn more →
Latency
How long a request takes. Usually tracked as percentiles (p50, p95, p99) because tail latency is what frustrated users experience. Learn more →
Throughput
How much work a system completes per unit time, such as requests or tokens per second. Batching raises throughput, often at some cost to per-request latency. Learn more →
Big-O notation
A way to describe how an algorithm's running time or memory grows with input size n, keeping only the dominant term, for example O(n log n). Learn more →
Dynamic programming
Solving a problem by breaking it into overlapping subproblems, solving each once and reusing the answers (memoization or a table). Learn more →