AI and prompt glossary, 38 terms in plain English
An AI and prompting glossary in plain English. Token, context window, hallucination, few-shot, temperature, RAG, and more, each explained in a line or two.
This AI glossary brings together 38 terms you run into when you start using ChatGPT, Claude, Gemini, or another assistant: token, context window, hallucination, few-shot, temperature, and several more. Each one is explained in one or two simple sentences. The definitions were checked against the official documentation from Anthropic, Google, and OWASP, linked at the end.
You don't need to learn them all. Bookmark this page and come back whenever a word trips you up. If you'd rather see these ideas in action, read Prompting techniques made simple and The parts of a prompt.
The basics
Prompt
The text you write to the AI to steer what it does: a question, an instruction, or an example. Google defines it as any text entered as input that guides a language model's behavior.
Prompt engineering
The craft of writing prompts to get the answer you're looking for. It's also called prompt design.
Template with blanks
A prompt that's already written, with spaces for your details, marked like this: {{topic}}. It's the format we use at BibliotecaPrompts: you fill in the blanks and copy.
Explain {{concept}} to me as if I only knew {{what you already know}}, with an example from {{your country or your job}}.
Generative AI
Artificial intelligence that creates new, coherent content: text, images, audio, or video.
LLM (large language model)
An AI model with a huge number of parameters, trained on enormous amounts of text, that can answer questions, summarize, and write. Today's chat assistants are built on LLMs.
Foundation model
A very large, pretrained model that works for many tasks and can later be specialized through fine-tuning.
Parameters
The internal values the model adjusts during training. When people say a model is "big," they mean, among other things, how many parameters it has.
Transformer
The network architecture modern LLMs are built on. Its core piece is "self-attention," which lets it relate each word to the others in the text.
Autoregressive
Generating text piece by piece, using what it has already written to decide what comes next. That's why an AI "types out" its answer gradually.
How the AI reads and responds
Token
The smallest unit the model works with: it can be a word, part of a word, a character, or a byte. How many characters a token equals depends on the model and the language, so limits "in tokens" aren't the same as limits "in words."
Context window
The amount of text the model can take into account at once when it responds, like its "working memory." It includes your prompt, whatever you pasted, and the conversation so far. When it fills up, the model loses track of parts of the conversation.
Latency
How long the model takes to respond after you send the prompt.
TTFT (time to first token)
How long it takes for the first piece of the answer to appear. It's what you feel as "it's started answering."
Temperature
A setting that controls how much variation there is in the answers. Higher: more creative and varied answers; lower: more conservative answers. Anthropic points out that even at temperature 0, answers aren't completely identical on every attempt. You don't see it in regular chat apps; it shows up in developer tools.
Hallucination
An answer that sounds convincing but is false: a fact, a quote, or a book that doesn't exist. It's the main reason to verify what the AI gives you. If a claim reaches you through social media, try Comprueba un dato viral antes de compartirlo (fact-check a viral claim before sharing it).
Confabulation
A synonym for hallucination that Google's glossary considers more technically accurate: the model doesn't "see" things, it fills gaps with something plausible.
Prompt writing techniques
Zero-shot (no examples)
Asking for something without showing any example of the answer you want. It's how we use AI most of the time.
One-shot (one example)
Including exactly one example of what you expect.
Few-shot (several examples)
Including several examples so the AI copies the format, the tone, or the judgment. Anthropic recommends 3 to 5 varied examples that are similar to your real case.
Classify these customer comments as "complaint," "question," or "praise."
Examples:
"My order arrived broken" → complaint
"Do you ship to {{city}}?" → question
"I loved the service" → praise
Now classify: {{paste the comments}}
Role prompt
Asking the AI to take on a role ("you're a patient chemistry tutor"). It helps focus the tone and the kind of answer.
System prompt
General instructions given to the model before the conversation that apply to the whole chat. Anthropic recommends putting the role there. In consumer apps it's similar to "custom instructions" or projects with fixed instructions.
Chain of thought
Asking the model to explain its reasoning step by step. It can improve the answer and, above all, it lets you check each step.
Solve {{problem}} step by step. Number each step and explain why you take it, so I can check where there's a mistake.
XML tags
Markers like <instructions> and </instructions> that separate the parts of a long prompt (instructions, context, examples, text to analyze). They reduce the model's confusion.
<instructions>Summarize the document in 5 bullet points and don't add anything that isn't in it.</instructions>
<document>{{paste the text}}</document>
Prompt chaining
Splitting a task into several consecutive prompts instead of one giant one. A typical pattern: draft, then review against criteria, then final version.
Review the previous draft against these criteria: {{criteria}}. List the problems and don't rewrite it yet.
Prompt-based learning
A model's ability to change what it does based on the prompt, without being trained for each task. It's what lets the same AI summarize, translate, or make you a plan.
How a model is trained
Pretraining
The first stage: the model learns to predict the next word from an enormous amount of text. Coming out of this stage, it still isn't good at following instructions.
Fine-tuning
Additional training with specific data to adapt the model to a task, a topic, or a style.
Instruction tuning
A type of fine-tuning with lots of example instructions, so the model learns to follow them better.
RLHF
Reinforcement learning from human feedback: people compare or rate answers, and the model is trained to prefer the best-rated ones.
Distillation
Training a small model to imitate a large one. You lose some quality in exchange for speed and lower cost.
Model cascading
Choosing the model based on the request: a small one for simple things and a large one for complex ones, to save time and money.
AI connected to other things
RAG (retrieval-augmented generation)
A technique where, before answering, relevant documents are retrieved and passed to the model in its context. It helps the model answer with current or specific information and cite sources, although it depends on the quality of those documents.
Embeddings
Numerical representations of text that let you measure how similar two texts are in meaning. They're used in search engines, recommendations, and RAG.
Tool use (function calling)
A model's ability to request that an external function be run (search the web, check the weather, run code) and use the result in its answer.
MCP (Model Context Protocol)
An open protocol that standardizes how applications connect AI models to data sources and tools. Anthropic compares it to a USB-C port for AI applications.
Safety and behavior
Prompt injection
When a piece of text gets the AI to do something its creators didn't intend. It can be direct (the user writes it) or indirect (it's hidden in a web page, a file, or an email the AI reads). OWASP ranks it first on its list of risks for LLM applications.
Jailbreak
A type of prompt injection that tries to get the model to completely ignore its safety rules.
HHH
Short for helpful, honest, and harmless: the framework Anthropic uses to describe how it wants its assistant to behave, including admitting when it doesn't know something.
How to use this glossary in practice
If you're learning a new topic, you can ask the AI to explain a term with your own examples and then double-check it here:
Explain what {{term}} is in one simple sentence and give me an example of how it affects me when I use an AI assistant for {{your use: studying, work, selling}}. If you're not sure about something, say so.
To dig into any topic methodically, try Aprende algo difícil, paso a paso (learn something hard, step by step), and to compare what the AI tells you with other sources, Compara fuentes y localiza lo que todavía no sabemos (compare sources and find what we still don't know).
Frequently asked questions
What is a token in ChatGPT, Claude, or Gemini?
It's the unit the model cuts text into to process it: whole words, parts of words, or characters. Length limits and pricing for the developer versions are counted in tokens.
Why does AI make things up?
Because it generates the most plausible text based on what it learned; it doesn't look things up in a database of facts. That's why it can produce false information with total confidence. Ask it for sources and check them yourself.
What's the difference between zero-shot and few-shot?
In zero-shot you ask for the task without examples; in few-shot you include several examples of what you want. Few-shot usually gives more consistent results when the format matters.
What does it mean for a model to have a large context window?
That it can take more text into account at once: longer documents or longer conversations without losing track of what came before.