Skip to Main Content

Prompt Engineering Glossary

Master the terminology of generative AI. From Attention Mechanisms to Zero-Shot Prompting, explore 100+ essential concepts.

A

Adversarial Prompting

Advanced

Crafting prompts designed to test or bypass AI safety guardrails.

Example

Security researchers use adversarial prompts to identify vulnerabilities in LLM outputs.

AI Agent

Concepts

An autonomous AI system capable of reasoning, planning, and taking actions to achieve a goal.

Example

A customer service AI agent that can process refunds by calling a billing API.

Alignment

Concepts

The process of ensuring an AI model's behaviour matches human values and intended goals.

Example

Alignment research prevents models from giving harmful advice.

Related:RLHFSafety

API (Application Programming Interface)

Tools

A set of protocols allowing different software applications to communicate with an AI model.

Example

Using the OpenAI API to integrate GPT-4 into a custom app.

Architecture

Concepts

The structural design of a neural network model.

Example

The Transformer architecture revolutionised natural language processing.

Artificial General Intelligence (AGI)

Concepts

A hypothetical AI system that can understand, learn, and apply knowledge across a wide range of tasks at or above human level.

Example

AGI would be able to learn quantum physics and write a symphony equally well.

Attention Mechanism

Concepts

The neural network component that allows models to focus on relevant parts of input text.

Example

Transformer attention helps the model understand context across long prompts.

Auto-GPT

Tools

An autonomous AI agent that chains GPT-4 calls to complete complex tasks independently.

Example

Auto-GPT can research a topic, write content, and publish it with minimal human input.

Related:AgentChain

B

Bias

Concepts

Systematic errors in an AI model's output, often stemming from skewed training data.

Example

An AI recruitment tool showing bias against female candidates.

BPE (Byte Pair Encoding)

Advanced

A common tokenisation method that merges the most frequently occurring character pairs into single tokens.

Example

OpenAI uses BPE for tiktoken, making 'ing' a single token.

BYOK (Bring Your Own Key)

Concepts

A model where users provide their own API keys for AI services, maintaining privacy and cost control.

Example

AI Prompt Architect uses BYOK so your API keys never touch our servers.

C

Chain-of-Thought (CoT)

Techniques

A prompting technique that asks the model to show its reasoning step by step before giving a final answer.

Example

Adding 'Let's think step by step' improved math accuracy from 58% to 93%.

Chatbot

Tools

A conversational interface powered by an AI model.

Example

ChatGPT is the most famous example of an AI chatbot.

Claude

Tools

A family of large language models developed by Anthropic, known for large context windows.

Example

Claude 3.5 Sonnet is often used for coding tasks.

Related:LLMAnthropic

Completion

Concepts

The text generated by an AI model in response to a prompt.

Example

The completion for 'Write a haiku about coding' would be the generated haiku.

Compute

Concepts

The processing power (usually GPUs or TPUs) required to train or run AI models.

Example

Training a frontier model requires tens of thousands of GPUs worth of compute.

Related:GPUTraining

Constitutional AI

Concepts

An approach where AI systems are trained to follow a set of principles (a 'constitution').

Example

Anthropic's Claude uses Constitutional AI to align with human values.

Context Window

Concepts

The maximum number of tokens an AI model can process in a single interaction.

Example

GPT-4o has a 128K context window; Claude 3.5 supports 200K tokens.

Continuous Learning

Concepts

The ability of an AI model to learn from new data streams over time without forgetting past knowledge.

Example

A customer service bot adapting to new product releases via continuous learning.

D

Data Augmentation

Techniques

Techniques used to artificially expand a training dataset by creating modified versions of existing data.

Example

Using an LLM to rewrite one prompt into 50 variations for training.

Decomposition

Techniques

Breaking a complex task into smaller, manageable sub-prompts for better results.

Example

Instead of 'write a business plan', decompose into: executive summary, market analysis, financial projections.

Delimiters

Techniques

Special characters used to clearly separate different sections within a prompt.

Example

Using triple backticks (```) to separate code from instructions.

Diffusion Model

Concepts

A type of generative AI model primarily used for image generation by adding and then removing noise.

Example

Midjourney and Stable Diffusion are popular diffusion models.

Directional Stimulus Prompting

Techniques

Providing a model with a small hint or 'stimulus' to guide its output towards a specific outcome.

Example

Adding keywords the model must include in a summary.

E

Embedding

Concepts

A numerical vector representation of text that captures semantic meaning.

Example

Similar concepts like 'dog' and 'puppy' have embeddings close together in vector space.

Emergent Abilities

Concepts

Capabilities that appear in large language models only at sufficient scale.

Example

GPT-4 can solve complex reasoning tasks that GPT-3 could not.

Related:ScalingLLM

Epoch

Concepts

One complete pass through the entire training dataset during model training.

Example

The model was trained for 10 epochs to improve accuracy.

Evaluation (Eval)

Techniques

The systematic process of testing an AI model's performance on a specific task.

Example

Running an eval suite to ensure a prompt update didn't regress quality.

F

Few-Shot Prompting

Techniques

Providing several examples in the prompt to guide the model's output format and style.

Example

Showing 3 example customer reviews with sentiment labels before asking the model to classify new ones.

Fine-Tuning

Concepts

Training a pre-trained model on a specific dataset to specialize it for particular tasks.

Example

Fine-tuning GPT-3.5 on legal documents to create a specialised legal assistant.

Format Injection

Techniques

A prompting technique where you provide the beginning of the desired output format (like an opening bracket) to force compliance.

Example

Ending a prompt with '{\n "result":' to guarantee JSON output.

Foundation Model

Concepts

A large-scale AI model trained on vast amounts of unlabelled data, adaptable to many downstream tasks.

Example

GPT-4 is a foundation model that can be fine-tuned or prompted for specific tasks.

G

Generative AI

Concepts

Artificial intelligence systems capable of generating new content like text, images, or code.

Example

Using generative AI to draft marketing copy.

GPU (Graphics Processing Unit)

Concepts

Specialised hardware heavily used for training and running AI models due to its parallel processing capabilities.

Example

Nvidia H100 GPUs are the industry standard for AI compute.

Grounding

Techniques

Connecting AI responses to factual, verifiable information sources.

Example

Using RAG to ground responses in company documentation reduces hallucinations.

Guardrails

Concepts

Safety mechanisms that prevent AI models from generating harmful or inappropriate content.

Example

System prompts can act as guardrails: 'Never provide medical diagnoses'.

H

Hallucination

Concepts

When an AI model generates plausible-sounding but factually incorrect information.

Example

The model confidently cited a research paper that doesn't exist.

Heuristic

Concepts

A rule-of-thumb or approximate method used by AI systems to make decisions faster.

Example

Using a length heuristic to filter out overly long prompt responses.

Hyperparameter

Advanced

A configuration variable set before training begins, like learning rate or batch size.

Example

Tuning hyperparameters can significantly affect a model's final performance.

I

In-Context Learning

Concepts

The ability of LLMs to learn new tasks from examples provided within the prompt, without weight updates.

Example

Showing the model 5 translation pairs lets it learn your preferred translation style.

Inference

Concepts

The process of running a trained AI model to generate predictions or outputs from new data.

Example

Calling the OpenAI API performs inference on their servers.

Instruction Tuning

Concepts

Training a model to follow natural language instructions more effectively.

Example

InstructGPT was trained to be better at following user instructions than base GPT-3.

Iterative Prompting

Techniques

The process of continuously refining a prompt based on the model's outputs until the desired result is achieved.

Example

Tweaking the tone instruction after the first output was too formal.

J

Jailbreaking

Advanced

Attempting to bypass an AI model's safety restrictions through creative prompting.

Example

Researchers test jailbreaks to improve model safety, not for malicious use.

K

Knowledge Graph

Advanced

A structured representation of facts and relationships between entities.

Example

GraphRAG uses knowledge graphs to provide better context than standard vector search.

Related:RAGGraphRAG

L

Latent Space

Advanced

A multi-dimensional space where models map inputs to capture underlying similarities.

Example

In latent space, 'king' - 'man' + 'woman' = 'queen'.

LLM (Large Language Model)

Concepts

A neural network trained on massive text datasets, capable of understanding and generating human language.

Example

GPT-4, Claude, and Gemini are all large language models.

Logits

Advanced

The raw, unnormalised predictions generated by a neural network before they are converted into probabilities.

Example

Logit bias allows you to penalise specific words from being generated.

LoRA (Low-Rank Adaptation)

Advanced

An efficient fine-tuning method that trains only a small number of additional parameters.

Example

LoRA lets you fine-tune Llama on a single GPU instead of requiring a cluster.

M

Max Tokens

Parameters

A parameter that limits the maximum length of the model's response.

Example

Setting max_tokens=500 ensures responses stay concise.

Meta-Prompting

Techniques

Using an AI model to write or optimize a prompt for another AI model.

Example

Asking GPT-4 to generate a system prompt for a classification task.

Mixture of Experts (MoE)

Advanced

An architecture where only a subset of the model's neural pathways (experts) are activated for a given input, saving compute.

Example

GPT-4 is widely believed to be an MoE model.

Multi-Modal

Concepts

AI models that can process and generate multiple types of data (text, images, audio, video).

Example

GPT-4o is multi-modal — it can analyse images and respond with text.

Related:VisionAudio

N

Natural Language Processing (NLP)

Concepts

A branch of AI focused on the interaction between computers and human language.

Example

Sentiment analysis is a classic NLP task.

Related:LLMNLU

Negative Prompting

Techniques

Instructing a model on what *not* to do or include.

Example

Adding 'Do not use emojis or hashtags' to a social media prompt.

O

One-Shot Prompting

Techniques

Providing exactly one example of the desired input/output pair in the prompt.

Example

Showing one example of a translated sentence before asking for the next.

Overfitting

Concepts

When a model learns its training data too well, memorising noise and failing to generalise to new data.

Example

An overfit model might score 100% on training data but fail in production.

P

Parameter

Concepts

The internal variables (weights and biases) a model learns during training.

Example

A 70B model has 70 billion parameters.

Related:WeightsLLM

PEFT (Parameter-Efficient Fine-Tuning)

Advanced

Methods like LoRA that fine-tune a model by updating only a tiny fraction of its parameters.

Example

PEFT dramatically reduces the cost of customizing an open-source model.

Persona Prompting

Techniques

Assigning a character, profession, or identity to the AI.

Example

'Act as a senior DevOps engineer reviewing this script.'

Pre-training

Concepts

The initial, highly expensive phase of training a foundation model on a massive dataset.

Example

Pre-training teaches the model language; fine-tuning teaches it instructions.

Prompt

Concepts

The input text or instructions given to an AI model to generate a desired response.

Example

A well-crafted prompt includes context, task, constraints, and output format.

Prompt Chaining

Techniques

Connecting multiple prompts in sequence, where each output feeds into the next prompt.

Example

First prompt extracts data, second analyses it, third generates a report.

Prompt Template

Concepts

A reusable prompt structure with placeholders for variable content.

Example

STCO templates provide pre-built structures for common use cases.

Q

Quantisation

Advanced

Reducing the precision of a model's weights (e.g., from 16-bit to 4-bit) to make it run faster and use less memory.

Example

Quantisation allows running a 7B model locally on a standard laptop.

R

RAG (Retrieval-Augmented Generation)

Techniques

A technique that retrieves relevant documents before generating a response, reducing hallucinations.

Example

RAG systems search your knowledge base first, then use those results to inform the AI's answer.

Reasoning Step

Techniques

The intermediate logical deductions an AI makes when using Chain-of-Thought.

Example

Forcing the model to output a reasoning step before the final answer improves accuracy.

Retrieval

Concepts

The process of fetching relevant information from a database to append to a prompt.

Example

Retrieval is the 'R' in RAG.

RLHF (Reinforcement Learning from Human Feedback)

Concepts

A training technique where human preferences guide the model towards more helpful responses.

Example

ChatGPT was improved using RLHF — human raters ranked outputs to train a reward model.

Role Prompting

Techniques

Assigning a specific persona or expertise to the AI to improve response quality.

Example

'You are a senior tax accountant with 20 years of UK experience.'

S

Self-Consistency

Techniques

A technique that generates multiple responses and selects the most common answer for higher accuracy.

Example

Asking the model to solve a math problem 5 times and taking the majority answer.

Softmax

Advanced

A mathematical function used at the end of a neural network to convert logits into probabilities that sum to 1.

Example

The softmax layer determines which token is most likely to come next.

STCO Framework

Techniques

A four-part prompt structure: Situation, Task, Constraints, Output — designed for consistent, high-quality AI interactions.

Example

STCO users report 73% better results than freeform prompting.

Supervised Fine-Tuning (SFT)

Advanced

Training a model using high-quality dataset of input-output pairs.

Example

SFT turns a base completion model into a helpful assistant.

Syntactic Sugar

Concepts

In prompting, adding polite conversational filler that doesn't actually help the model.

Example

Saying 'Please could you kindly...' is syntactic sugar and wastes tokens.

System Prompt

Concepts

A special prompt that sets the AI's behaviour, personality, and rules for an entire conversation.

Example

System: 'You are a helpful coding assistant. Always provide code examples.'

T

Temperature

Parameters

A parameter controlling randomness in AI outputs. Lower = more focused, higher = more creative.

Example

Temperature 0.1 for factual tasks, 0.8 for creative writing.

Token

Concepts

The basic unit of text that AI models process — roughly 4 characters or ¾ of a word.

Example

'Hello world' is 2 tokens. 'Pneumonoultramicroscopicsilicovolcanoconiosis' is 9 tokens.

Tool Use / Function Calling

Techniques

The ability of an LLM to recognize when it needs external data and output a structured command to trigger a tool.

Example

The model called a weather API tool to answer 'Is it raining in London?'.

Related:AgentAPI

Top-K Sampling

Parameters

A decoding method that considers only the K most probable next tokens.

Example

Top-K=40 means the model picks from its 40 best guesses at each step.

Top-P (Nucleus Sampling)

Parameters

A decoding method that considers tokens until the cumulative probability reaches P.

Example

Top-P=0.9 considers the smallest set of tokens whose probabilities sum to 90%.

Transformer

Concepts

The neural network architecture behind all modern LLMs, using self-attention mechanisms.

Example

GPT stands for 'Generative Pre-trained Transformer'.

Related:AttentionLLM

Tuning

Concepts

Adjusting a model's parameters or prompt strategy to achieve better performance.

Example

Hyperparameter tuning is crucial for stable model training.

V

Vector Database

Tools

A specialised database designed to store and search embedding vectors efficiently.

Example

Pinecone and Chroma are popular vector databases used in RAG systems.

Related:EmbeddingRAG

Vision-Language Model (VLM)

Concepts

A multi-modal AI capable of understanding both text and images simultaneously.

Example

GPT-4V is a VLM that can describe a photograph in detail.

W

Weights

Concepts

The numerical parameters inside a neural network that determine how it processes input.

Example

Training an AI involves adjusting its weights to minimize errors.

Z

Zero-Shot Chain-of-Thought

Techniques

A prompting technique combining zero-shot with reasoning by simply appending 'Let's think step by step'.

Example

Zero-shot CoT is an easy baseline for complex reasoning tasks.

Zero-Shot Prompting

Techniques

Asking an AI to perform a task without providing any examples — relying on its pre-trained knowledge.

Example

'Classify this email as spam or not spam' without showing labelled examples.

Master these concepts in practice

Stop reading and start building. Try our STCO framework editor today.

Start Free Trial

OpenAI's function calling achieves 99.5% schema adherence vs 82% for text-based JSON extraction.OpenAI, 'Function Calling and Structured Outputs' …