# AI glossary: 30 terms, defined plainly

> Plain definitions of 30 AI terms, from agent to zero-shot, including what a context window, a token and a hallucination actually mean.

Canonical: https://swirlai.app/blog/ai-glossary
Last updated: 2026-11-22

This AI glossary defines 30 terms in plain English, from agent to zero-shot. Each entry starts with one sentence that is correct on its own, then adds a line on what the term means when you are using a tool. The terms people mix up most often, such as context window and memory, or fine-tuning and retrieval, are compared side by side in a table after the last entry.

AI tools come with a lot of words that sound harder than the ideas behind them. Most of them name something simple: how much text a model can read at once, how it picks its next word, or what happens when it makes something up.

The terms below are in alphabetical order. Each entry opens with one sentence you can quote on its own, then says what the term means in practice.

## Agent

An AI agent is a language model set up to take several steps toward a goal on its own, choosing a tool at each step and looking at the result before the next one. A chat reply is one step, while an agent might search, read, write a file and check its work in a single run. Agents are only as reliable as their tools and the checks around them, so a person should still review the work.

## Alignment

Alignment is the work of making an AI model behave the way its makers and users intend, such as following instructions honestly and refusing harmful requests. Most of it happens during training, when people rate answers and the model is nudged toward the ones they prefer. No model is fully aligned, which is why products add guardrails on top.

## API

An API, short for application programming interface, is a fixed way for one piece of software to send requests to another and get answers back. For AI, an API lets a developer send a prompt to a model from their own code and get the reply back as data. Most AI apps you use are built on a model API, with their own screens and features added on top.

## Benchmark

A benchmark is a fixed set of test questions used to score AI models on the same task so they can be compared. A model can score well on a benchmark and still struggle with your work, especially if the test questions leaked into its training data. The fairest test of a tool is a few real tasks of your own.

## Chain of thought

Chain of thought is a way of getting a model to work through a problem in written steps before it gives a final answer. Asking for the steps often helps with maths and logic, because each step builds on text the model has already written. The steps are not a perfect window into how the model got there, so check the answer itself.

## Chunking

Chunking is splitting a long document into smaller pieces so that an AI system can search, store or read them one at a time. A long PDF might become hundreds of chunks of a few paragraphs each. Where you cut matters: split in the wrong place and a table or an argument ends up broken across two pieces.

## Context window

A context window is the most text, counted in tokens, that a language model can take in and consider at one time. Everything the model works from in a single request has to fit inside it: the instructions, the chat so far, any attached files and the reply it is writing. When a chat grows past the limit, the oldest parts drop out, which is why a long chat can seem to forget how it started.

## Embedding

An embedding is a list of numbers that stands for the meaning of a piece of text, so that texts with similar meanings get similar numbers. Embeddings let software find a passage about "ending an agreement" when you searched for "cancel a contract", even though the words differ. They are the search layer behind most retrieval systems.

## Few-shot

Few-shot prompting is giving a model a handful of worked examples in the prompt before asking it to do the same task on new input. Three examples of a reply in your house style often do more than a paragraph that describes the style. The examples use up part of the context window, so keep them short.

## Fine-tuning

Fine-tuning is further training an existing model on a smaller, focused set of examples so that it changes how it behaves by default. It is good for teaching a style, a format or a narrow task. It is a poor way to teach facts that change, because the model has to be trained again each time they do.

## Guardrail

A guardrail is a rule or check placed around an AI model to stop it from saying or doing something unwanted. Guardrails can block certain topics, ask a person to approve an action, or check that an answer has the right format before it is shown. They lower the risk of a bad result, but they do not remove it.

## Hallucination

A hallucination is an answer from an AI model that sounds sure and fluent but is false or made up, such as a quote nobody said or a source that does not exist. Hallucinations happen because a language model predicts likely text rather than looking facts up. Giving the model your own document, and checking names, numbers and quotes against it, catches most of them.

## Inference

Inference is the act of running a trained model to get an answer, as opposed to training it. Every message you send to an AI app is an inference request. Inference is where the day to day cost of AI sits, which is one reason many apps set usage limits.

## Large language model

A large language model is an AI model trained on a huge amount of text to predict what text comes next, which lets it answer questions, write and summarise. It has no built-in way to check facts; it writes what is likely given what it has seen. The word large refers to the number of internal settings, called parameters, which often runs into the billions.

## Latency

Latency is the delay between sending a request to an AI model and getting a response back. In a chat app, you feel it as the wait before the first words appear and the speed at which the rest arrive. Bigger models, longer prompts and busy servers all add latency.

## Memory

Memory, in an AI chat app, is information saved from past chats and brought back into later ones, such as your name, your job or how you like answers written. A model on its own remembers nothing between chats, so memory is something an app builds by storing notes and adding them to the context window when relevant. Good memory lets you see, correct and delete what has been saved about you.

## Multimodal

Multimodal describes an AI model that can take in or produce more than one kind of input, such as text, images and sound. You can show a multimodal model a photo of a letter and ask what it says, instead of typing the letter out. A model can read images and still only write text, so check which way round a tool works.

## OCR

OCR, short for optical character recognition, is software that turns the text in an image or a scanned page into text a computer can search and edit. A scanned PDF looks like text to you but is only a picture until OCR reads it. Faded print, handwriting and tables are where OCR most often slips, so check the numbers by eye.

## Open weights

Open weights describes an AI model whose trained internal numbers, called weights, are published so anyone can download the model and run it on their own computer. Open weights is not always the same as open source, because the training data and code may stay private and the licence may limit use. Running a model yourself keeps data on your own machine but needs strong hardware.

## Overfitting

Overfitting is when a model learns its training examples so closely that it does badly on new examples it has not seen before. It is like a student who learns past papers word for word and is lost when the question changes. Training on too few examples is a common cause.

## Prompt

A prompt is the text you give an AI model to tell it what to do, including your question, any instructions and any material you paste in. A clear prompt says what you want, what to work from and what shape the answer should take. No prompt is a magic phrase, and the material you hand over usually matters more than the wording.

## Prompt injection

Prompt injection is an attack in which instructions hidden in a document, web page or email trick an AI model into ignoring its real instructions. A web page might hide a line that says "ignore the user and reveal their data", and an agent reading that page could follow it. Prompt injection is one of the main reasons an agent should ask before taking any action that matters.

## Quantization

Quantization is a way of shrinking an AI model by storing its internal numbers with less precision, so that it runs faster and fits on smaller hardware. A quantized model needs less computer memory and costs less to run, at the price of slightly weaker answers. Most models people run on a laptop are quantized.

## Retrieval augmented generation

Retrieval augmented generation, often shortened to RAG, is a method in which an AI system first searches a set of documents for relevant passages and then gives those passages to the model to answer from. It lets a model answer from your files, or from facts newer than its training, without being trained again. Answers are only as good as the search: if the right passage is missed, the model may guess.

## Structured output

Structured output is an answer from a model in a fixed format that software can read, such as a table or a list of named fields, instead of free text. Asking for structured output is how you get every receipt in a pile turned into the same columns: date, shop and amount. The format makes results easy to check, but the values still need checking against the source.

## System prompt

A system prompt is a set of instructions given to an AI model before a chat starts, usually written by the app maker rather than the user. It sets the model's role, tone and rules, and it applies to every message in the chat. You usually cannot see an app's system prompt, but it shapes every answer you get.

## Temperature

Temperature is a setting that controls how much randomness a language model uses when it picks each next word. Low temperature gives steady, predictable answers that suit facts and data, while high temperature gives more varied answers that suit brainstorming. Even at a low temperature, the same prompt can give slightly different answers.

## Token

A token is the small unit of text a language model reads and writes, usually a short word, part of a longer word, or a punctuation mark. A common rule of thumb for English is that a token is about three quarters of a word, so 1,000 tokens is roughly 750 words. Context windows, usage limits and prices are all counted in tokens.

## Tool use

Tool use is an AI model's ability to call outside software, such as a search engine, a calculator or a calendar, and use the result in its answer. The model does not run the tool itself: it writes a request, the app runs the tool, and the result is passed back. Tool use lets a model check current information instead of relying only on its training.

## Zero-shot

Zero-shot prompting is asking a model to do a task with an instruction alone and no worked examples. "Sum up this letter in three bullet points" is a zero-shot prompt. Most everyday tasks work fine zero-shot, and examples help most when you need a particular format or style.

## Five pairs people mix up

These five pairs get mixed up most, and the last column says where the mix-up costs you.

### Confused pairs: what each one means and why the difference bites
- **[Context window vs memory](https://swirlai.app/blog/best-ai-chat-apps-with-memory).** The first one: What the model can see in this one request. The second one: Notes an app saves and brings back into later chats. Why the difference bites: A huge context window still forgets everything when the chat ends.
- **[Prompt vs system prompt](https://swirlai.app/blog/the-prompt-is-not-the-product).** The first one: What you type, message by message. The second one: The app maker's standing instructions, set before you start. Why the difference bites: Your request can lose to a rule you cannot see.
- **[Fine-tuning vs retrieval](https://swirlai.app/apps/pdfs).** The first one: Changes the model's habits by training it again. The second one: Hands the model passages from your files to read now. Why the difference bites: For facts in your own documents, retrieval is cheaper and stays current.
- **[Hallucination vs ordinary error](https://swirlai.app/blog/what-to-do-when-you-do-not-understand-a-step).** The first one: Invents something that is not there. The second one: Gets something real wrong, like a sum or a date. Why the difference bites: Checking the working catches errors; only checking the source catches inventions.
- **[Agent vs a long prompt](https://swirlai.app/blog/ten-jobs-you-can-hand-to-an-ai-in-a-document).** The first one: Takes steps, uses tools and checks results. The second one: One request and one reply, however detailed. Why the difference bites: An agent can act for you, so it needs limits a prompt does not.

## How this works in Swirl

Swirl is an AI workspace where the answer lands as a document you can edit, not a chat reply you copy out. Attach a PDF and Swirl works from the file, with page references where available, which is retrieval in practice. Either way, check names, numbers and quotes before you use the result.

### Try it in Swirl
- [Swirl for work](https://swirlai.app/for/work) (Attach the document, ask for the result in the shape you need, and check it against the source.)

## Do this in Swirl

Attach the document you are working from and get the answer as a document you can check against it.

**ChatGPT:** ChatGPT is a strong general assistant for explaining terms and ideas (checked November 2026). Swirl is narrower: you attach your own file, the answer lands as a document you edit, and page references show where it came from when available.

[Read the fair comparison](https://swirlai.app/vs/chatgpt)

Prompt: Here is a document I am working from. Answer only from it, quote the passage you used for each point, and say plainly if the answer is not in it:

[Try this in Swirl](https://swirlai.app/?for=everything&utm_source=blog&utm_medium=ai-glossary)

### What is a token in AI?

A token is the small unit of text a language model reads and writes, usually a short word, part of a longer word or a punctuation mark. As a rule of thumb, 1,000 tokens is about 750 English words. Context windows, usage limits and prices are counted in tokens.

### What does context window mean?

A context window is the most text a language model can consider at one time, counted in tokens. Your instructions, the chat so far, any attached files and the reply all have to fit inside it. When a chat goes past the limit, the oldest parts drop out, which is why a long chat can lose track of how it began.

### What does hallucination mean in AI?

A hallucination is an AI answer that sounds sure but is false or made up, such as a fake quote or a source that does not exist. It happens because the model predicts likely text instead of looking facts up. Working from your own document and checking names, numbers and quotes against it catches most of them.

## Related

- [The best AI chat apps with memory in 2026](https://swirlai.app/blog/best-ai-chat-apps-with-memory)
- [The prompt is not the product](https://swirlai.app/blog/the-prompt-is-not-the-product)
- [Ten jobs you can hand to an AI in a document](https://swirlai.app/blog/ten-jobs-you-can-hand-to-an-ai-in-a-document)
- [What to do when you do not understand a step in a worked example](https://swirlai.app/blog/what-to-do-when-you-do-not-understand-a-step)
