1 Introduction to context engineering
This chapter covers
- What context engineering is and how it is explained through this book
- The evolution from large language models (LLMs) to workflows, agents, and agentic systems
- The limitations and technical barriers of LLMs that make context engineering necessary
- The different sources that shape context in LLM-based systems
Artificial intelligence (AI) is driving one of the fastest technology adoption cycles in recent history. The most visible part of this wave is generative AI (GenAI), a class of AI systems designed to produce novel content from natural-language input, including text, code, images, music, and video. At the core of text-based GenAI are large language models (LLMs), deep learning models capable of interpreting and generating human-like language. In practice, the effectiveness of an LLM-based system depends on its context, meaning the information available to the model at inference time. Context engineering is the discipline of selecting, organizing, and updating that information so the model receives the right inputs in the right form, at the right time, and within the limits of its context window.