Learn AI
Build your understanding from AI fundamentals to production AI systems.
Prefer a guided sequence? Explore Learning PathsPrompt Engineering
Learn how input design shapes model behavior and output quality.
9 conceptsPrompt
A prompt is the input text given to a language model to guide what it generates.
Beginner · 3 minSystem Prompt
A system prompt sets persistent instructions and behavior for a model before the user's messages begin.
Beginner · 3 minUser Prompt
A user prompt is the specific request or question a user sends to the model within a conversation.
Beginner · 2 minZero-shot Prompting
Zero-shot prompting asks a model to perform a task with instructions alone and no examples.
Beginner · 3 minFew-shot Prompting
Few-shot prompting includes a small number of examples in the prompt to show the model the desired pattern.
Beginner · 3 minChain-of-Thought Prompting
Chain-of-thought prompting asks a model to reason step by step before giving a final answer.
Intermediate · 4 minPrompt Templates
Prompt templates are reusable prompt structures with variable placeholders filled in at runtime.
Intermediate · 4 minStructured Output
Structured output constrains a model to return data in a defined format, such as JSON, instead of free-form text.
Intermediate · 4 minPrompt Injection
Prompt injection is an attack where untrusted text manipulates a model into ignoring its original instructions.
Advanced · 5 min