AI GLOSSARY · FAMILY
Prompts and instructions
12 terms in this family. Each page gives the definition in 40 words or fewer, with dated sources and worked examples. Examples may be standalone illustrations or walkthroughs using relevant skills, guides and coding tools.
Terms
- Chain of thought
Chain of thought is a prompting technique in which a language model writes out intermediate reasoning steps before its final answer. A 2022 paper by Wei and colleagues reported that it improved results on arithmetic, commonsense and symbolic reasoning tasks.
- Context engineering
Context engineering is usually described as the practice of choosing and maintaining the information a language model sees at each step, including instructions, tools, examples, message history and retrieved data, not only the wording of the prompt.
- Few-shot prompting
Few-shot prompting means putting a handful of worked examples of a task into the prompt so a language model can copy the pattern. The model's weights are not changed.
- Negative prompt
A negative prompt is text given to an image-generation model alongside the main prompt to describe what the image should not contain. According to Hugging Face's Diffusers documentation, it conditions the model to not include those things.
- Prompt
A prompt is input supplied to an AI model to guide its response. A text prompt can contain a question, an instruction, an example or a role; supported inputs can also include images, depending on the model.
- Prompt chaining
Prompt chaining splits a task into a sequence of prompts, where each language model call takes the output of the previous one as its input. It replaces one large request with smaller, checkable steps.
- Prompt engineering
Prompt engineering is the practice of writing and refining the instructions given to a language model so that it reliably produces output that meets stated requirements, tested against clear success criteria.
- Prompt injection
Prompt injection attempts to redirect an AI application through adversarial instructions in input or content it processes. An attempt may succeed or fail; indirect injection arrives through material such as retrieved pages, documents or tool results.
- Prompt library
A prompt library is a saved collection of reusable prompts, such as examples, templates or team standards, that people can browse, copy and adapt instead of writing each prompt from scratch.
- ReAct prompting
ReAct prompting has a language model interleave written reasoning steps with actions, such as a search call, and read each action's result before reasoning again. The name combines reasoning and acting.
- System prompt
A system prompt is the instruction text an application gives a language model ahead of the user's messages, setting its role, tone and rules. It guides behavior but is not an enforced control.
- Tree of thoughts (ToT)
Tree of thoughts is a prompting framework in which a language model explores several candidate reasoning steps, judges them, and backtracks when needed. It generalises chain-of-thought prompting from a single line of reasoning to a branching search.