PromptForge
AI Glossary

Core concepts

Context engineering

Also known as: context management

Definition

Context engineering is the practice of deciding what information enters a model's context window and in what order. As windows grew, choosing what to include became more consequential than wording the instruction.

Prompt engineering focuses on phrasing an instruction. Context engineering focuses on assembling the whole payload: which retrieved documents, how much conversation history, which examples, which tool outputs, and in what sequence.

It matters because context is a scarce, contested resource. Every token spent on a marginally relevant document is a token unavailable for something useful, and models attend unevenly across long contexts. More context is not automatically better context.

The core disciplines are retrieval quality, summarising history rather than replaying it, ordering by relevance rather than chronology, and aggressively pruning anything that does not contribute to the current step.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.

Glossary

RAG (Retrieval-Augmented Generation)

RAG retrieves relevant passages from your own documents and inserts them into the prompt before the model answers. It grounds responses in your data, cuts hallucination, and needs no retraining.

Project

Build a Personal Study Assistant

Turn a stack of lecture notes into a study partner that quizzes you, explains what you got wrong, and tracks which topics you keep failing. You will finish with a reusable system prompt you can point at any subject.

Article

Context Engineering vs Prompt Engineering: What Actually Changed

Context engineering is the term that replaced prompt engineering in serious AI work. It is not a rebrand — the job genuinely shifted from writing better instructions to controlling what the model can see. Here is the difference and why it matters.

Challenge

Summarise Without Losing the Point

Compress a long document to a tenth of its length while keeping what matters, then verify nothing important was dropped. Tests whether you can direct compression rather than just requesting it.

Prompt

The 5-Part Prompt Framework — Claude

Every strong prompt combines five parts: Role (who the AI should act as), Context (background info it needs), Task (the specific ask), Format (how you want the output structured), and Constraints (length, tone, things to avoid).

Article

What Is RAG? Grounding AI in Your Own Documents

Retrieval-Augmented Generation lets a general model answer questions about your specific data without retraining. Here is how the pipeline works and the details that determine whether it works well.