Master the terminology of generative AI. From Attention Mechanisms to Zero-Shot Prompting, explore 100+ essential concepts.
Crafting prompts designed to test or bypass AI safety guardrails.
Security researchers use adversarial prompts to identify vulnerabilities in LLM outputs.
An autonomous AI system capable of reasoning, planning, and taking actions to achieve a goal.
A customer service AI agent that can process refunds by calling a billing API.
The process of ensuring an AI model's behaviour matches human values and intended goals.
Alignment research prevents models from giving harmful advice.
A set of protocols allowing different software applications to communicate with an AI model.
Using the OpenAI API to integrate GPT-4 into a custom app.
The structural design of a neural network model.
The Transformer architecture revolutionised natural language processing.
A hypothetical AI system that can understand, learn, and apply knowledge across a wide range of tasks at or above human level.
AGI would be able to learn quantum physics and write a symphony equally well.
The neural network component that allows models to focus on relevant parts of input text.
Transformer attention helps the model understand context across long prompts.
A decoding strategy that explores multiple output sequences simultaneously to find optimal responses.
Beam search with width 5 considers the top 5 token sequences at each step.
Systematic errors in an AI model's output, often stemming from skewed training data.
An AI recruitment tool showing bias against female candidates.
A common tokenisation method that merges the most frequently occurring character pairs into single tokens.
OpenAI uses BPE for tiktoken, making 'ing' a single token.
A prompting technique that asks the model to show its reasoning step by step before giving a final answer.
Adding 'Let's think step by step' improved math accuracy from 58% to 93%.
A conversational interface powered by an AI model.
ChatGPT is the most famous example of an AI chatbot.
A family of large language models developed by Anthropic, known for large context windows.
Claude 3.5 Sonnet is often used for coding tasks.
The text generated by an AI model in response to a prompt.
The completion for 'Write a haiku about coding' would be the generated haiku.
The processing power (usually GPUs or TPUs) required to train or run AI models.
Training a frontier model requires tens of thousands of GPUs worth of compute.
An approach where AI systems are trained to follow a set of principles (a 'constitution').
Anthropic's Claude uses Constitutional AI to align with human values.
The maximum number of tokens an AI model can process in a single interaction.
GPT-4o has a 128K context window; Claude 3.5 supports 200K tokens.
The ability of an AI model to learn from new data streams over time without forgetting past knowledge.
A customer service bot adapting to new product releases via continuous learning.
Techniques used to artificially expand a training dataset by creating modified versions of existing data.
Using an LLM to rewrite one prompt into 50 variations for training.
Breaking a complex task into smaller, manageable sub-prompts for better results.
Instead of 'write a business plan', decompose into: executive summary, market analysis, financial projections.
Special characters used to clearly separate different sections within a prompt.
Using triple backticks (```) to separate code from instructions.
A type of generative AI model primarily used for image generation by adding and then removing noise.
Midjourney and Stable Diffusion are popular diffusion models.
Providing a model with a small hint or 'stimulus' to guide its output towards a specific outcome.
Adding keywords the model must include in a summary.
A numerical vector representation of text that captures semantic meaning.
Similar concepts like 'dog' and 'puppy' have embeddings close together in vector space.
Capabilities that appear in large language models only at sufficient scale.
GPT-4 can solve complex reasoning tasks that GPT-3 could not.
One complete pass through the entire training dataset during model training.
The model was trained for 10 epochs to improve accuracy.
Providing several examples in the prompt to guide the model's output format and style.
Showing 3 example customer reviews with sentiment labels before asking the model to classify new ones.
Training a pre-trained model on a specific dataset to specialize it for particular tasks.
Fine-tuning GPT-3.5 on legal documents to create a specialised legal assistant.
A prompting technique where you provide the beginning of the desired output format (like an opening bracket) to force compliance.
Ending a prompt with '{\n "result":' to guarantee JSON output.
A large-scale AI model trained on vast amounts of unlabelled data, adaptable to many downstream tasks.
GPT-4 is a foundation model that can be fine-tuned or prompted for specific tasks.
Artificial intelligence systems capable of generating new content like text, images, or code.
Using generative AI to draft marketing copy.
Specialised hardware heavily used for training and running AI models due to its parallel processing capabilities.
Nvidia H100 GPUs are the industry standard for AI compute.
Connecting AI responses to factual, verifiable information sources.
Using RAG to ground responses in company documentation reduces hallucinations.
Safety mechanisms that prevent AI models from generating harmful or inappropriate content.
System prompts can act as guardrails: 'Never provide medical diagnoses'.
When an AI model generates plausible-sounding but factually incorrect information.
The model confidently cited a research paper that doesn't exist.
A rule-of-thumb or approximate method used by AI systems to make decisions faster.
Using a length heuristic to filter out overly long prompt responses.
The ability of LLMs to learn new tasks from examples provided within the prompt, without weight updates.
Showing the model 5 translation pairs lets it learn your preferred translation style.
The process of running a trained AI model to generate predictions or outputs from new data.
Calling the OpenAI API performs inference on their servers.
Training a model to follow natural language instructions more effectively.
InstructGPT was trained to be better at following user instructions than base GPT-3.
The process of continuously refining a prompt based on the model's outputs until the desired result is achieved.
Tweaking the tone instruction after the first output was too formal.
Attempting to bypass an AI model's safety restrictions through creative prompting.
Researchers test jailbreaks to improve model safety, not for malicious use.
A multi-dimensional space where models map inputs to capture underlying similarities.
In latent space, 'king' - 'man' + 'woman' = 'queen'.
A neural network trained on massive text datasets, capable of understanding and generating human language.
GPT-4, Claude, and Gemini are all large language models.
The raw, unnormalised predictions generated by a neural network before they are converted into probabilities.
Logit bias allows you to penalise specific words from being generated.
An efficient fine-tuning method that trains only a small number of additional parameters.
LoRA lets you fine-tune Llama on a single GPU instead of requiring a cluster.
A parameter that limits the maximum length of the model's response.
Setting max_tokens=500 ensures responses stay concise.
Using an AI model to write or optimize a prompt for another AI model.
Asking GPT-4 to generate a system prompt for a classification task.
An architecture where only a subset of the model's neural pathways (experts) are activated for a given input, saving compute.
GPT-4 is widely believed to be an MoE model.
A branch of AI focused on the interaction between computers and human language.
Sentiment analysis is a classic NLP task.
Instructing a model on what *not* to do or include.
Adding 'Do not use emojis or hashtags' to a social media prompt.
Providing exactly one example of the desired input/output pair in the prompt.
Showing one example of a translated sentence before asking for the next.
When a model learns its training data too well, memorising noise and failing to generalise to new data.
An overfit model might score 100% on training data but fail in production.
The internal variables (weights and biases) a model learns during training.
A 70B model has 70 billion parameters.
Methods like LoRA that fine-tune a model by updating only a tiny fraction of its parameters.
PEFT dramatically reduces the cost of customizing an open-source model.
Assigning a character, profession, or identity to the AI.
'Act as a senior DevOps engineer reviewing this script.'
The initial, highly expensive phase of training a foundation model on a massive dataset.
Pre-training teaches the model language; fine-tuning teaches it instructions.
The input text or instructions given to an AI model to generate a desired response.
A well-crafted prompt includes context, task, constraints, and output format.
Connecting multiple prompts in sequence, where each output feeds into the next prompt.
First prompt extracts data, second analyses it, third generates a report.
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.
Quantisation allows running a 7B model locally on a standard laptop.
A technique that retrieves relevant documents before generating a response, reducing hallucinations.
RAG systems search your knowledge base first, then use those results to inform the AI's answer.
The intermediate logical deductions an AI makes when using Chain-of-Thought.
Forcing the model to output a reasoning step before the final answer improves accuracy.
The process of fetching relevant information from a database to append to a prompt.
Retrieval is the 'R' in RAG.
A training technique where human preferences guide the model towards more helpful responses.
ChatGPT was improved using RLHF — human raters ranked outputs to train a reward model.
Assigning a specific persona or expertise to the AI to improve response quality.
'You are a senior tax accountant with 20 years of UK experience.'
A technique that generates multiple responses and selects the most common answer for higher accuracy.
Asking the model to solve a math problem 5 times and taking the majority answer.
Searching for information based on meaning rather than exact keyword matches.
A semantic search for 'canine' will return documents about 'dogs'.
A mathematical function used at the end of a neural network to convert logits into probabilities that sum to 1.
The softmax layer determines which token is most likely to come next.
A four-part prompt structure: Situation, Task, Constraints, Output — designed for consistent, high-quality AI interactions.
STCO users report 73% better results than freeform prompting.
Training a model using high-quality dataset of input-output pairs.
SFT turns a base completion model into a helpful assistant.
In prompting, adding polite conversational filler that doesn't actually help the model.
Saying 'Please could you kindly...' is syntactic sugar and wastes tokens.
A special prompt that sets the AI's behaviour, personality, and rules for an entire conversation.
System: 'You are a helpful coding assistant. Always provide code examples.'
A parameter controlling randomness in AI outputs. Lower = more focused, higher = more creative.
Temperature 0.1 for factual tasks, 0.8 for creative writing.
The basic unit of text that AI models process — roughly 4 characters or ¾ of a word.
'Hello world' is 2 tokens. 'Pneumonoultramicroscopicsilicovolcanoconiosis' is 9 tokens.
The ability of an LLM to recognize when it needs external data and output a structured command to trigger a tool.
The model called a weather API tool to answer 'Is it raining in London?'.
A decoding method that considers only the K most probable next tokens.
Top-K=40 means the model picks from its 40 best guesses at each step.
A decoding method that considers tokens until the cumulative probability reaches P.
Top-P=0.9 considers the smallest set of tokens whose probabilities sum to 90%.
The neural network architecture behind all modern LLMs, using self-attention mechanisms.
GPT stands for 'Generative Pre-trained Transformer'.
Adjusting a model's parameters or prompt strategy to achieve better performance.
Hyperparameter tuning is crucial for stable model training.
A specialised database designed to store and search embedding vectors efficiently.
Pinecone and Chroma are popular vector databases used in RAG systems.
A multi-modal AI capable of understanding both text and images simultaneously.
GPT-4V is a VLM that can describe a photograph in detail.
The numerical parameters inside a neural network that determine how it processes input.
Training an AI involves adjusting its weights to minimize errors.
A prompting technique combining zero-shot with reasoning by simply appending 'Let's think step by step'.
Zero-shot CoT is an easy baseline for complex reasoning tasks.
Stop reading and start building. Try our STCO framework editor today.