<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Agents on vishctl</title><link>https://vishctl.dev/tags/agents/</link><description>Recent content in Agents on vishctl</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 15 Sep 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://vishctl.dev/tags/agents/index.xml" rel="self" type="application/rss+xml"/><item><title>AI and LLM Glossary: Common Terms in Plain English</title><link>https://vishctl.dev/posts/ai-llm-glossary/</link><pubDate>Tue, 15 Sep 2026 09:00:00 +0800</pubDate><guid>https://vishctl.dev/posts/ai-llm-glossary/</guid><category>ai</category><category>llm-basics</category><category>glossary</category><category>local-llm</category><category>agents</category><description>A beginner-friendly AI and LLM glossary with short definitions, everyday examples, and a clickable table of contents for every term.</description><content:encoded><![CDATA[<p>AI conversations come with a lot of new words. Here is a broad collection of common AI and LLM terms, each explained in one or two sentences, with examples wherever useful.</p>
<p><strong>Jump to any definition using the table of contents</strong> beside this article on desktop or above it on smaller screens. Terms are grouped by topic; use your browser&rsquo;s Find feature (<code>Ctrl+F</code> or <code>Cmd+F</code>) if you already know the word.</p>
<p>New to the topic? Start with <strong>AI → machine learning → LLM → tokens → prompts → inference → hallucination → RAG → agents</strong>.</p>
<h2 id="ai-basics">AI basics</h2>
<h3 id="artificial-intelligence-ai">Artificial intelligence (AI)</h3>
<p>AI is the broad field of building computer systems that perform tasks such as recognizing speech, making predictions, or generating text. <strong>Example:</strong> a voice assistant understanding a spoken request.</p>
<h3 id="machine-learning-ml">Machine learning (ML)</h3>
<p>Machine learning is a way to build AI by learning patterns from data instead of writing a rule for every situation. <strong>Example:</strong> learning to recognize spam from past emails.</p>
<h3 id="deep-learning">Deep learning</h3>
<p>Deep learning uses neural networks with many layers to learn complex patterns. <strong>Example:</strong> identifying objects in a photo or generating a paragraph of text.</p>
<h3 id="neural-network">Neural network</h3>
<p>A neural network is a mathematical model made of connected layers that transform inputs into outputs using learned numbers. <strong>Example:</strong> turning an image&rsquo;s pixels into a prediction that it contains a cat.</p>
<h3 id="model">Model</h3>
<p>A model is a learned mathematical system that produces predictions or outputs from inputs. <strong>Example:</strong> the model inside a chatbot generates the reply, while the app manages the chat interface.</p>
<h3 id="generative-ai-genai">Generative AI (GenAI)</h3>
<p>Generative AI creates content such as text, images, audio, or code based on patterns learned during training. <strong>Example:</strong> drafting an email from a short instruction.</p>
<h3 id="predictive-ai">Predictive AI</h3>
<p>Predictive AI estimates an outcome or assigns a category using patterns in data. <strong>Example:</strong> forecasting next month&rsquo;s demand or flagging a suspicious transaction.</p>
<h3 id="large-language-model-llm">Large language model (LLM)</h3>
<p>An LLM is a large neural network trained on substantial amounts of language data to process and generate text. <strong>Example:</strong> a model that summarizes an article, translates a sentence, or writes code.</p>
<h3 id="small-language-model-slm">Small language model (SLM)</h3>
<p>An SLM is a language model with relatively fewer parameters, often making it easier to run on limited hardware. <strong>Example:</strong> a compact model running on a laptop; there is no universally agreed size cutoff.</p>
<h3 id="foundation-model">Foundation model</h3>
<p>A foundation model is trained on broad data so it can be adapted to many tasks. <strong>Example:</strong> the same base model can support summarization, classification, and question answering.</p>
<h3 id="multimodal-model">Multimodal model</h3>
<p>A multimodal model handles more than one kind of information, such as text, images, or audio. <strong>Example:</strong> uploading a screenshot and asking the model to explain the error message.</p>
<h3 id="natural-language-processing-nlp">Natural language processing (NLP)</h3>
<p>NLP is the field of helping computers work with human language. <strong>Example:</strong> translating text, detecting sentiment, or extracting names from a document.</p>
<h3 id="computer-vision">Computer vision</h3>
<p>Computer vision helps computers extract information from images and video. <strong>Example:</strong> detecting a pedestrian in a camera frame.</p>
<h3 id="diffusion-model">Diffusion model</h3>
<p>A diffusion model learns to generate data by reversing a process that adds noise. <strong>Example:</strong> an image generator gradually turns random noise into a picture matching your description.</p>
<h3 id="artificial-general-intelligence-agi">Artificial general intelligence (AGI)</h3>
<p>AGI is a proposed kind of AI with broad abilities across many intellectual tasks, rather than a narrow specialty. There is no universally accepted definition or test for deciding when a system qualifies.</p>
<h2 id="inside-a-language-model">Inside a language model</h2>
<h3 id="token">Token</h3>
<p>A token is a unit a model processes, often a word, part of a word, or punctuation. <strong>Example:</strong> a long word may use several tokens, so 1,000 tokens does not mean 1,000 words.</p>
<h3 id="tokenizer">Tokenizer</h3>
<p>A tokenizer converts text into token IDs that a model can process and can convert those IDs back into text. <strong>Example:</strong> different tokenizers may split the same sentence into different numbers of tokens.</p>
<h3 id="vocabulary">Vocabulary</h3>
<p>A model&rsquo;s token vocabulary is the set of token IDs its tokenizer knows how to represent. It usually includes word pieces and symbols, rather than only complete dictionary words.</p>
<h3 id="parameter">Parameter</h3>
<p>A parameter is a number learned during training that helps determine how a model behaves. <strong>Example:</strong> an “8B” model has roughly eight billion parameters, which is separate from its context length.</p>
<h3 id="weights">Weights</h3>
<p>Weights are learned parameters that control how signals flow through a neural network; people often use “model weights” to mean its learned numerical contents. <strong>Example:</strong> downloading weights lets compatible software load and run the model.</p>
<h3 id="transformer">Transformer</h3>
<p>A transformer is a neural-network architecture that uses attention to connect information across a sequence. Many language models use it to relate words in a prompt and generate a continuation.</p>
<h3 id="attention">Attention</h3>
<p>Attention lets a model give different amounts of importance to different parts of its input when computing a representation. <strong>Example:</strong> connecting “it” with the relevant object mentioned earlier in a sentence.</p>
<h3 id="embedding">Embedding</h3>
<p>An embedding is a list of numbers representing something such as a word, document, or image. <strong>Example:</strong> embeddings can place “puppy” and “dog” close together because their meanings are related.</p>
<h3 id="vector">Vector</h3>
<p>A vector is an ordered list of numbers; embeddings are vectors designed to represent useful properties of data. <strong>Example:</strong> <code>[0.2, -0.5, 0.9]</code> is a three-dimensional vector.</p>
<h3 id="next-token-prediction">Next-token prediction</h3>
<p>Next-token prediction estimates which token could come next given the tokens already available. <strong>Example:</strong> after “The sky is”, a model may give “blue” a high probability.</p>
<h3 id="autoregressive-generation">Autoregressive generation</h3>
<p>Autoregressive generation builds an output step by step, using previous output as input for the next step. <strong>Example:</strong> a text model generates one token, adds it to the sequence, and generates another.</p>
<h3 id="mixture-of-experts-moe">Mixture of experts (MoE)</h3>
<p>An MoE model routes work through selected specialist parts of the network instead of using every expert for every token. <strong>Example:</strong> a model can have many total parameters but activate only a subset per token, though storing the experts still takes memory.</p>
<h2 id="prompts-and-conversations">Prompts and conversations</h2>
<h3 id="prompt">Prompt</h3>
<p>A prompt is the input you give a model to guide its response. <strong>Example:</strong> “Explain Kubernetes to someone who has never used it.”</p>
<h3 id="prompt-engineering">Prompt engineering</h3>
<p>Prompt engineering means designing instructions and examples to get more useful outputs. <strong>Example:</strong> specifying the audience, desired format, and length of an explanation.</p>
<h3 id="system-prompt">System prompt</h3>
<p>A system prompt supplies application-level instructions about how an assistant should behave. <strong>Example:</strong> “You are a support assistant; explain troubleshooting steps clearly.”</p>
<h3 id="zero-shot-prompting">Zero-shot prompting</h3>
<p>Zero-shot prompting asks a model to perform a task without showing examples of the desired answer. <strong>Example:</strong> “Classify this review as positive or negative.”</p>
<h3 id="few-shot-prompting">Few-shot prompting</h3>
<p>Few-shot prompting includes a small number of examples before asking the model to handle a new case. <strong>Example:</strong> showing three labeled reviews before asking it to label a fourth.</p>
<h3 id="chain-of-thought-cot">Chain of thought (CoT)</h3>
<p>Chain of thought refers to intermediate reasoning steps used while solving a problem. A model&rsquo;s displayed explanation is not guaranteed to faithfully reveal its internal computation.</p>
<h3 id="reasoning-model">Reasoning model</h3>
<p>A reasoning model is trained to work through intermediate steps before producing an answer, often spending more computation on difficult tasks. <strong>Example:</strong> comparing several possible solutions to a math problem before answering.</p>
<h3 id="context">Context</h3>
<p>Context is the information available to the model for its current response, including instructions, messages, and supplied documents or tool results. <strong>Example:</strong> pasting a log file gives the model context for troubleshooting.</p>
<h3 id="context-window">Context window</h3>
<p>The context window is the model&rsquo;s token capacity for a single request, generally covering input and generated output, subject to separate limits. <strong>Example:</strong> a long document and chat history leave less room for a response.</p>
<h3 id="context-engineering">Context engineering</h3>
<p>Context engineering means selecting and organizing the information a model receives for a task. <strong>Example:</strong> supplying the relevant logs, current configuration, and instructions while leaving out unrelated files.</p>
<h3 id="memory">Memory</h3>
<p>In an AI app, memory usually means information saved and brought back into later interactions. <strong>Example:</strong> the app stores your preferred language and includes it in future prompts; this does not necessarily change the model&rsquo;s weights.</p>
<h3 id="truncation">Truncation</h3>
<p>Truncation means cutting off input or output to meet a length limit. <strong>Example:</strong> an app may drop older chat messages when the conversation becomes too long.</p>
<h3 id="temperature">Temperature</h3>
<p>Temperature adjusts how strongly generation favors higher-probability tokens. Lower values generally produce more predictable wording, while higher values allow more variation without guaranteeing creativity or accuracy.</p>
<h3 id="top-p-nucleus-sampling">Top-p (nucleus sampling)</h3>
<p>Top-p limits token selection to a set of likely candidates whose combined probability reaches a chosen threshold. <strong>Example:</strong> <code>top_p = 0.9</code> samples from candidates covering about 90% of the probability mass.</p>
<h3 id="top-k-sampling">Top-k sampling</h3>
<p>Top-k limits token selection to the k most likely next tokens. <strong>Example:</strong> <code>top_k = 40</code> means sampling only from the 40 highest-ranked candidates at each step.</p>
<h3 id="maximum-output-tokens">Maximum output tokens</h3>
<p>Maximum output tokens sets a ceiling on how many tokens a model may generate for a response. <strong>Example:</strong> a low limit can cut off a long answer before it finishes.</p>
<h3 id="stop-sequence">Stop sequence</h3>
<p>A stop sequence is text that tells the generation service to stop producing output when it appears. <strong>Example:</strong> an application might use a special delimiter to mark the end of an answer.</p>
<h3 id="structured-output">Structured output</h3>
<p>Structured output follows a defined format or schema so software can process it reliably. <strong>Example:</strong> returning an object with <code>name</code> and <code>price</code> fields; correct formatting does not guarantee correct facts.</p>
<h2 id="training-and-customization">Training and customization</h2>
<h3 id="training">Training</h3>
<p>Training adjusts a model&rsquo;s parameters using data and an objective that measures how well it is doing. <strong>Example:</strong> repeatedly improving its predictions of missing or next words.</p>
<h3 id="training-data">Training data</h3>
<p>Training data is the collection of examples used to teach a model. <strong>Example:</strong> text, code, images, or labeled examples, depending on the task.</p>
<h3 id="dataset">Dataset</h3>
<p>A dataset is an organized collection of examples used for training, validation, or evaluation. <strong>Example:</strong> 10,000 support tickets paired with issue categories.</p>
<h3 id="label">Label</h3>
<p>A label is a target answer or category attached to an example. <strong>Example:</strong> an email marked “spam” has a spam label.</p>
<h3 id="supervised-learning">Supervised learning</h3>
<p>Supervised learning trains a model on inputs paired with desired outputs. <strong>Example:</strong> learning to classify pictures from images labeled “cat” or “dog”.</p>
<h3 id="unsupervised-learning">Unsupervised learning</h3>
<p>Unsupervised learning looks for patterns in data without supplied target labels. <strong>Example:</strong> grouping customers by similar purchasing behavior.</p>
<h3 id="self-supervised-learning">Self-supervised learning</h3>
<p>Self-supervised learning creates training targets from the data itself. <strong>Example:</strong> using the next word in a document as the answer the model must predict.</p>
<h3 id="reinforcement-learning-rl">Reinforcement learning (RL)</h3>
<p>Reinforcement learning trains a system to choose actions using reward signals. <strong>Example:</strong> a game-playing agent improves by receiving rewards for successful play.</p>
<h3 id="pretraining">Pretraining</h3>
<p>Pretraining is an initial training stage that builds broad capabilities from large amounts of data. <strong>Example:</strong> a language model learns language patterns before being adapted to follow instructions.</p>
<h3 id="post-training">Post-training</h3>
<p>Post-training refines a pretrained model&rsquo;s behavior or abilities through additional training. <strong>Example:</strong> teaching it to follow instructions, use tools, or better match human preferences.</p>
<h3 id="fine-tuning">Fine-tuning</h3>
<p>Fine-tuning continues training an existing model on selected data to adapt its behavior. <strong>Example:</strong> training on support conversations to encourage a particular response style.</p>
<h3 id="instruction-tuning">Instruction tuning</h3>
<p>Instruction tuning trains a model on instructions paired with useful responses. <strong>Example:</strong> teaching it to respond to “Summarize this” with a summary instead of simply continuing the text.</p>
<h3 id="supervised-fine-tuning-sft">Supervised fine-tuning (SFT)</h3>
<p>SFT fine-tunes a model using examples of desired inputs and outputs. <strong>Example:</strong> providing questions paired with carefully written answers.</p>
<h3 id="reinforcement-learning-from-human-feedback-rlhf">Reinforcement learning from human feedback (RLHF)</h3>
<p>RLHF uses human feedback to help define rewards that guide further model training. <strong>Example:</strong> people rank responses, and those preferences help train a reward model used to improve the assistant.</p>
<h3 id="direct-preference-optimization-dpo">Direct preference optimization (DPO)</h3>
<p>DPO trains a model directly on preferred and less-preferred responses without a separate reinforcement-learning optimization loop. <strong>Example:</strong> teaching it to favor a clear, helpful answer over an unhelpful one.</p>
<h3 id="lora-low-rank-adaptation">LoRA (low-rank adaptation)</h3>
<p>LoRA fine-tunes a model by training small added sets of parameters while keeping the original weights frozen. <strong>Example:</strong> adapting a model&rsquo;s writing style using less training memory than updating all its weights.</p>
<h3 id="qlora">QLoRA</h3>
<p>QLoRA combines a quantized, frozen base model with trainable LoRA adapters to reduce fine-tuning memory needs. <strong>Example:</strong> adapting a model on a GPU that cannot hold its full-precision training setup.</p>
<h3 id="distillation">Distillation</h3>
<p>Distillation trains a student model to learn from a teacher model&rsquo;s outputs or signals. <strong>Example:</strong> using a larger model&rsquo;s answers to help train a smaller model for a specific task.</p>
<h3 id="synthetic-data">Synthetic data</h3>
<p>Synthetic data is artificially generated data used for training or testing. <strong>Example:</strong> generating sample support questions, then checking their quality before using them.</p>
<h3 id="loss">Loss</h3>
<p>Loss is a numerical measure of how poorly a model meets its training objective. Training tries to reduce it, though lower training loss does not automatically mean better real-world performance.</p>
<h3 id="learning-rate">Learning rate</h3>
<p>The learning rate controls the size of parameter updates during training. Think of it as the adjustment step size: too large can overshoot, while too small can make learning slow.</p>
<h3 id="epoch">Epoch</h3>
<p>An epoch is one pass through a training dataset. <strong>Example:</strong> three epochs means the training process has gone through the dataset three times.</p>
<h3 id="batch-size">Batch size</h3>
<p>Batch size is the number of examples processed together in a training or inference step. <strong>Example:</strong> a training batch might contain 32 examples.</p>
<h3 id="overfitting">Overfitting</h3>
<p>Overfitting happens when a model learns the training data too specifically and performs poorly on new examples. Think of memorizing practice-test answers without learning how to solve new questions.</p>
<h3 id="generalization">Generalization</h3>
<p>Generalization is a model&rsquo;s ability to perform well on examples it did not train on. <strong>Example:</strong> recognizing spam that uses wording absent from its training set.</p>
<h3 id="checkpoint">Checkpoint</h3>
<p>A checkpoint is a saved snapshot of a model, sometimes including the state needed to resume training. <strong>Example:</strong> saving progress periodically so training can restart after an interruption.</p>
<h3 id="knowledge-cutoff">Knowledge cutoff</h3>
<p>A knowledge cutoff is an approximate boundary for the information included in a model&rsquo;s training. It does not guarantee knowledge of everything before that date, and tools can supply newer information.</p>
<h2 id="search-and-grounding">Search and grounding</h2>
<h3 id="retrieval-augmented-generation-rag">Retrieval-augmented generation (RAG)</h3>
<p>RAG retrieves relevant information and provides it to a model before the model generates an answer. <strong>Example:</strong> finding passages in a company handbook so an assistant can answer a policy question.</p>
<h3 id="grounding">Grounding</h3>
<p>Grounding connects a model&rsquo;s response to supplied evidence or external information. <strong>Example:</strong> asking it to answer from a particular report and cite the supporting passages.</p>
<h3 id="chunking">Chunking</h3>
<p>Chunking splits documents into smaller pieces for processing or retrieval. <strong>Example:</strong> dividing a long manual into sections so a search system can return the relevant instructions.</p>
<h3 id="vector-database">Vector database</h3>
<p>A vector database stores vectors and supports searching for similar ones. <strong>Example:</strong> finding document embeddings close to the embedding of a user&rsquo;s question.</p>
<h3 id="semantic-search">Semantic search</h3>
<p>Semantic search looks for relevant meaning rather than only matching exact words. <strong>Example:</strong> a search for “forgot my login” can find a page titled “Reset your password”.</p>
<h3 id="keyword-search">Keyword search</h3>
<p>Keyword search matches words or phrases in documents. <strong>Example:</strong> searching for an exact error code such as <code>OOMKilled</code>.</p>
<h3 id="hybrid-search">Hybrid search</h3>
<p>Hybrid search combines keyword matching with semantic search. <strong>Example:</strong> matching an exact product code while also understanding the user&rsquo;s description of the problem.</p>
<h3 id="similarity-score">Similarity score</h3>
<p>A similarity score measures how close two representations are under a chosen comparison method. <strong>Example:</strong> cosine similarity can compare a question embedding with document embeddings; the score is not a probability that an answer is correct.</p>
<h3 id="reranking">Reranking</h3>
<p>Reranking reorders retrieved results using another scoring step to improve relevance. <strong>Example:</strong> retrieving 50 passages quickly, then selecting the five most useful ones for the answer.</p>
<h2 id="agents-and-tools">Agents and tools</h2>
<h3 id="ai-assistant">AI assistant</h3>
<p>An AI assistant is an application that helps users through capabilities such as conversation, content generation, and tool use. <strong>Example:</strong> an assistant that explains code and searches documentation.</p>
<h3 id="ai-agent">AI agent</h3>
<p>An AI agent uses a model to choose and carry out steps toward a goal, often with tools and feedback. <strong>Example:</strong> inspecting a failing test, editing code, and rerunning the test within its permissions.</p>
<h3 id="agentic-ai">Agentic AI</h3>
<p>Agentic AI is a broad term for systems that can select and execute steps toward a goal with some autonomy. <strong>Example:</strong> a system that investigates an issue and adjusts its next action based on what it finds.</p>
<h3 id="tool-use--function-calling">Tool use / function calling</h3>
<p>Tool use lets a model request an operation that surrounding software executes. <strong>Example:</strong> the model requests a weather lookup, and the application calls the weather service and returns the result.</p>
<h3 id="model-context-protocol-mcp">Model Context Protocol (MCP)</h3>
<p>MCP is a standard for connecting AI applications to tools, resources, and reusable prompts. <strong>Example:</strong> an application can connect to an MCP server that exposes document-search tools.</p>
<h3 id="workflow">Workflow</h3>
<p>A workflow is a sequence of steps for completing a task, often with predefined rules. <strong>Example:</strong> classify a support ticket, retrieve relevant documentation, then draft a reply.</p>
<h3 id="orchestration">Orchestration</h3>
<p>Orchestration coordinates models, tools, data, and task steps in an AI application. <strong>Example:</strong> deciding when to search, when to call a model, and when to request human review.</p>
<h3 id="multi-agent-system">Multi-agent system</h3>
<p>A multi-agent system uses multiple agents that collaborate or handle different responsibilities. <strong>Example:</strong> one agent researches a topic while another checks the draft against the sources.</p>
<h3 id="human-in-the-loop-hitl">Human in the loop (HITL)</h3>
<p>Human in the loop means a person reviews, corrects, or approves part of an automated process. <strong>Example:</strong> a person approves a drafted customer reply before it is sent.</p>
<h2 id="running-models-and-performance">Running models and performance</h2>
<h3 id="inference">Inference</h3>
<p>Inference means running a trained model to produce an output from an input. <strong>Example:</strong> generating a reply to your chat message.</p>
<h3 id="model-serving">Model serving</h3>
<p>Model serving makes a model available to applications and manages incoming requests. <strong>Example:</strong> a server loads model weights and exposes an API for generating text.</p>
<h3 id="api-application-programming-interface">API (application programming interface)</h3>
<p>An API is a defined way for software systems to communicate. <strong>Example:</strong> your app sends a prompt to a model service and receives generated text.</p>
<h3 id="local-llm">Local LLM</h3>
<p>A local LLM runs on hardware you control, such as your laptop or workstation. <strong>Example:</strong> generating text on your machine after downloading a model; the app&rsquo;s other features may still use network services.</p>
<h3 id="gpu-graphics-processing-unit">GPU (graphics processing unit)</h3>
<p>A GPU is a processor that can perform many mathematical operations in parallel. <strong>Example:</strong> accelerating the matrix calculations used to train or run a neural network.</p>
<h3 id="vram">VRAM</h3>
<p>VRAM is memory available on a graphics card for data such as model weights and temporary computations. <strong>Example:</strong> a model can run out of VRAM even when the computer still has free system RAM.</p>
<h3 id="quantization">Quantization</h3>
<p>Quantization represents model numbers using fewer bits, reducing storage and often memory use. <strong>Example:</strong> storing weights at roughly 4-bit precision can make a model easier to fit, with possible quality tradeoffs.</p>
<h3 id="fp32-fp16-and-bf16">FP32, FP16, and BF16</h3>
<p>These are floating-point number formats: FP32 uses 32 bits, while FP16 and BF16 use 16 bits with different precision and range. <strong>Example:</strong> 16-bit weights generally need about half the raw storage of 32-bit weights.</p>
<h3 id="int8-and-int4">INT8 and INT4</h3>
<p>INT8 and INT4 are 8-bit and 4-bit integer representations often used in quantization. <strong>Example:</strong> a model with INT4 weights uses less raw weight storage than one with INT8 weights, though metadata and other data add overhead.</p>
<h3 id="gguf">GGUF</h3>
<p>GGUF is a file format for storing models and metadata, commonly used with llama.cpp and related local inference tools. <strong>Example:</strong> a <code>.gguf</code> file may contain quantized weights, but the file format itself does not specify one fixed precision.</p>
<h3 id="prefill">Prefill</h3>
<p>Prefill is the inference phase that processes the prompt before generating the continuation. <strong>Example:</strong> reading a long pasted document can add delay before the first response token appears.</p>
<h3 id="decode">Decode</h3>
<p>Decode is the generation phase in which an autoregressive model produces new tokens using the existing sequence. <strong>Example:</strong> the answer grows token by token after the prompt has been processed.</p>
<h3 id="kv-cache">KV cache</h3>
<p>The key-value cache stores attention-related intermediate results so the model can reuse earlier computation during generation. <strong>Example:</strong> longer conversations generally require more KV-cache memory.</p>
<h3 id="prompt-caching--prefix-caching">Prompt caching / prefix caching</h3>
<p>Prompt or prefix caching reuses computation for input shared across requests. <strong>Example:</strong> repeatedly sending the same long instruction prefix may require less processing when a compatible cached prefix is available.</p>
<h3 id="latency">Latency</h3>
<p>Latency is the time you wait for a response or a particular stage of it. <strong>Example:</strong> the delay between submitting a prompt and receiving the complete answer.</p>
<h3 id="time-to-first-token-ttft">Time to first token (TTFT)</h3>
<p>TTFT measures the time from sending a request to receiving its first generated token. <strong>Example:</strong> a chatbot can start responding quickly even if finishing its answer takes much longer.</p>
<h3 id="throughput">Throughput</h3>
<p>Throughput measures how much work a system completes per unit of time. <strong>Example:</strong> a model server might handle thousands of output tokens per second across many users.</p>
<h3 id="tokens-per-second-tokenss">Tokens per second (tokens/s)</h3>
<p>Tokens per second measures token-processing or generation speed, so the measured stage and scope matter. <strong>Example:</strong> 30 output tokens/s for one chat is different from 3,000 output tokens/s across an entire server.</p>
<h3 id="streaming">Streaming</h3>
<p>Streaming sends output to the user as it is generated instead of waiting for the entire response. <strong>Example:</strong> words appear progressively in a chat window.</p>
<h3 id="continuous-batching">Continuous batching</h3>
<p>Continuous batching lets a server add and remove requests from a running batch as work arrives and finishes. <strong>Example:</strong> a new chat can begin processing without waiting for every current response to complete.</p>
<h3 id="speculative-decoding">Speculative decoding</h3>
<p>Speculative decoding uses a cheaper process to propose several tokens that the main model verifies together. Standard exact versions preserve the target model&rsquo;s output distribution, but the speed benefit depends on the workload.</p>
<h3 id="model-parallelism">Model parallelism</h3>
<p>Model parallelism spreads a model&rsquo;s computation or layers across multiple devices. <strong>Example:</strong> splitting a model across two GPUs when it cannot fit on one.</p>
<h3 id="gpu-offloading">GPU offloading</h3>
<p>GPU offloading moves some or all model work from the CPU to a GPU. <strong>Example:</strong> a local runner places selected layers on the GPU and keeps the rest in system memory.</p>
<h3 id="open-weights">Open weights</h3>
<p>An open-weight model makes its trained weights available to download under stated license terms. This does not automatically mean its training data is available or that every use is permitted.</p>
<h3 id="open-source-ai">Open-source AI</h3>
<p>Open-source AI refers to systems released with permissions and materials that enable use, study, modification, and sharing under an applicable definition or license. Check the actual release and license: downloadable weights alone do not establish that the whole system is open source.</p>
<h2 id="quality-evaluation-and-safety">Quality, evaluation, and safety</h2>
<h3 id="hallucination">Hallucination</h3>
<p>A hallucination is generated content that is false or unsupported but may sound convincing. <strong>Example:</strong> inventing a research paper or a software option that does not exist.</p>
<h3 id="evaluation--evals">Evaluation / evals</h3>
<p>Evaluation checks how well a model or AI system performs on chosen tasks and criteria. <strong>Example:</strong> testing whether a support assistant gives correct answers and cites the right documents.</p>
<h3 id="benchmark">Benchmark</h3>
<p>A benchmark is a defined test or dataset used to compare systems. <strong>Example:</strong> measuring code generation on a shared set of programming problems; one score does not describe every real-world task.</p>
<h3 id="accuracy">Accuracy</h3>
<p>Accuracy is the fraction of predictions that are correct in a classification task. <strong>Example:</strong> 90 correct labels out of 100 gives 90% accuracy, though this can be misleading when one class dominates.</p>
<h3 id="precision">Precision</h3>
<p>Precision measures how many items predicted as positive were actually positive. <strong>Example:</strong> if 8 of 10 emails flagged as spam are spam, precision is 80%.</p>
<h3 id="recall">Recall</h3>
<p>Recall measures how many actual positive items a system successfully finds. <strong>Example:</strong> if it catches 8 of the 20 spam emails, recall is 40%.</p>
<h3 id="f1-score">F1 score</h3>
<p>F1 combines precision and recall using their harmonic mean, rewarding a balance between the two. <strong>Example:</strong> 80% precision and 40% recall produce an F1 score of about 53%.</p>
<h3 id="perplexity">Perplexity</h3>
<p>Perplexity measures how well a language model predicts a sequence, with lower values indicating better prediction on that data. Comparisons need compatible tokenization and evaluation settings, and lower perplexity does not necessarily mean a better assistant.</p>
<h3 id="bias">Bias</h3>
<p>Bias can mean systematic skew in a model&rsquo;s predictions or behavior, including unfair differences across groups. <strong>Example:</strong> a hiring model may reproduce patterns of unequal treatment present in its training data.</p>
<h3 id="alignment">Alignment</h3>
<p>Alignment concerns making a model&rsquo;s behavior match intended goals, values, and constraints. <strong>Example:</strong> training an assistant to follow useful instructions while respecting privacy requirements.</p>
<h3 id="guardrails">Guardrails</h3>
<p>Guardrails are checks or controls intended to constrain an AI system&rsquo;s behavior. <strong>Example:</strong> validating tool arguments or requiring approval before a purchase; their presence does not guarantee that mistakes are impossible.</p>
<h3 id="prompt-injection">Prompt injection</h3>
<p>Prompt injection occurs when untrusted content tries to redirect an AI system away from its intended instructions. <strong>Example:</strong> a retrieved webpage tells an assistant to ignore the user and reveal private data.</p>
<h3 id="jailbreak">Jailbreak</h3>
<p>A jailbreak is an attempt to bypass a model&rsquo;s behavioral or safety restrictions. <strong>Example:</strong> using a specially constructed prompt to get an answer the assistant is configured to refuse.</p>
<h3 id="data-leakage">Data leakage</h3>
<p>Data leakage means information reaches a place it should not, with the exact meaning depending on context. <strong>Example:</strong> test answers accidentally enter training data, or an assistant exposes confidential information to an unauthorized user.</p>
<h3 id="red-teaming">Red teaming</h3>
<p>Red teaming deliberately probes a system for failures, vulnerabilities, or harmful behavior. <strong>Example:</strong> testing whether malicious documents can trick an assistant into misusing a tool.</p>
<h2 id="commonly-confused-terms">Commonly confused terms</h2>
<ul>
<li><strong>AI vs. ML vs. deep learning:</strong> AI is the broad field; ML is one approach within it; deep learning is a family of ML techniques.</li>
<li><strong>Model vs. chatbot:</strong> the model produces outputs; the chatbot is an application built around it.</li>
<li><strong>Training vs. inference:</strong> training changes learned parameters; inference uses them to produce outputs.</li>
<li><strong>RAG vs. fine-tuning:</strong> RAG supplies retrieved information at response time; fine-tuning changes model parameters.</li>
<li><strong>Context vs. memory:</strong> context is available for the current response; app memory can store information and bring it into future context.</li>
<li><strong>Parameters vs. tokens:</strong> parameters are learned numbers inside the model; tokens are units it processes.</li>
<li><strong>Latency vs. throughput:</strong> latency is how long a request takes; throughput is how much work the system handles over time.</li>
<li><strong>Open weights vs. open source:</strong> access to weights is one part of openness; permissions and other available materials also matter.</li>
</ul>
<h2 id="further-reading">Further reading</h2>
<p>For broader reference, see <a href="https://developers.google.com/machine-learning/glossary">Google&rsquo;s machine-learning glossary</a> and <a href="https://docs.cloud.google.com/docs/generative-ai/glossary">Google Cloud&rsquo;s generative AI glossary</a>.</p>
<p>For a practical explanation of retrieving documents before answering, see <a href="https://www.anthropic.com/engineering/contextual-retrieval">Anthropic&rsquo;s contextual retrieval guide</a>. Its <a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents">context engineering guide</a> explains how to select information for agents.</p>
<p>Continue on this blog with <a href="https://vishctl.dev/posts/llm-basics-visual-guide/">what happens when you ask an LLM a question</a> or <a href="https://vishctl.dev/posts/ai-agent-basics/">AI agent basics</a>.</p>
]]></content:encoded></item></channel></rss>