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.

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

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%.

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.

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.

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.

D

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.

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

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.

G

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.

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.

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.

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.

L

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.

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

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

Max Tokens

Parameters

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

Example

Setting max_tokens=500 ensures responses stay concise.

P

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.

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.

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

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.

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.'

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.

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.

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

Z

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

We value your privacy

We use cookies and similar technologies to ensure our website works properly, analyze traffic, and personalize your experience. Under the GDPR, CCPA, and CPRA, you have the right to choose which categories, apart from necessary cookies, you allow.