AI Engineering is the discipline of building, deploying, and maintaining production-ready applications powered by foundation models — large language models, vision-language models, and multimodal systems. Unlike traditional machine learning, AI engineering focuses on integrating pre-trained models through techniques like prompt engineering, retrieval-augmented generation (RAG), fine-tuning, and increasingly agentic architectures rather than training models from scratch. The field has matured rapidly since 2022, with the 2025–2026 era marked by the shift from prompt engineering to context engineering, the rise of multi-agent frameworks, standardized protocols like MCP and A2A, and the growing importance of evaluation-driven development where reliability, cost-efficiency, and observability in production are as critical as model capability.
What This Cheat Sheet Covers
This topic spans 16 focused tables and 141 indexed concepts, 134 flashcards, 5 practice tests with 176 questions. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Core Prompt and Context Engineering Techniques
How you ask a foundation model is most of how well it performs. These range from the bread and butter moves like zero-shot, few-shot, and chain of thought prompting, to reasoning heavy techniques like self-consistency and tree of thought, and finally to context engineering, the 2025 to 2026 shift toward designing the entire information environment a model sees rather than tweaking a single instruction.
| Technique | Example | Description | |
|---|---|---|---|
Translate the following to French: "Hello world" | Asking the model to perform a task without examples, relying entirely on pre-training knowledge. | ||
Q: What is 2+2? A: 4Q: What is 5+3? A: 8Q: What is 7+1? A: | • Providing examples in the prompt to teach the model a pattern • typically 3 to 5 examples works well, though the ideal count varies by task and model. | ||
Let's solve step by step:1. First, identify the key variables2. Then, calculate... | • Prompting the model to show reasoning steps • dramatically improves performance on complex reasoning tasks. | ||
You are a senior software architect with 15 years experience... | Assigning a specific persona to shape the model's tone, depth, and perspective. | ||
Generate 5 reasoning paths, then vote on most common answer | Running the same prompt multiple times with temperature > 0 and selecting the most frequent answer to reduce errors. | ||
Explore multiple reasoning branches, evaluate each, backtrack if needed | • Extension of CoT that explores multiple reasoning paths simultaneously • useful for strategic planning tasks. | ||
System prompt + retrieved docs + tool results + memory → single context | • Designing the full information environment an LLM sees at inference • supersedes simple prompt engineering for production systems. | ||
You are a prompt engineer. Generate a better prompt for: {task} | Using the LLM to improve or generate prompts, creating self-improving prompt pipelines. | ||
response_format={"type": "json_schema", "schema": {...}} | • Forcing model output to conform to a JSON schema • ensures parseable, type-safe results. | ||
Cache system prompt processing; only process new user input | • Reusing processed prompt prefixes across requests • up to 90% cost reduction and 85% lower latency (Anthropic). |