---
title: "Context Reduction"
description: "Context reduction is the practice of decreasing the amount of information sent to a Large Language Model (LLM) while preserving the information needed for the current task. It is a practical part of context engineering because large prompts increase cost, latency, and failure risk."
canonical_url: "https://promptmetheus.com/resources/llm-knowledge-base/context-reduction"
---

> Index of every page on this site: [llms.txt](https://promptmetheus.com/llms.txt)

Context reduction is the practice of decreasing the amount of information sent to a [Large Language Model (LLM)](https://promptmetheus.com/resources/llm-knowledge-base/large-language-model-llm) while preserving the information needed for the current task. It is a practical part of [context engineering](https://promptmetheus.com/resources/llm-knowledge-base/context-engineering) because large prompts increase cost, latency, and failure risk.

Common reduction techniques include:

- removing duplicated or stale conversation turns;
- replacing long tool outputs with summaries and artifact references;
- selecting fewer retrieval chunks before generation;
- compressing prior task state into structured notes;
- discarding irrelevant examples or tool definitions; and
- moving intermediate state to external storage through [context offloading](https://promptmetheus.com/resources/llm-knowledge-base/context-offloading).

Context reduction is related to [context compaction](https://promptmetheus.com/resources/llm-knowledge-base/context-compaction), but the terms are not identical. Compaction usually refers to summarizing or restructuring an existing history. Reduction is broader: it can happen before retrieval, after tool calls, during message assembly, or as a routing decision.

The main engineering tradeoff is recall versus focus. Aggressive reduction can remove facts the model later needs. Weak reduction leaves the model with bloated context, increasing the chance of [lost-in-the-middle](https://promptmetheus.com/resources/llm-knowledge-base/lost-in-the-middle-effect) failures or [context confusion](https://promptmetheus.com/resources/llm-knowledge-base/context-confusion).

Reduction should be measured by task success, not by token count alone. A smaller prompt that fails is more expensive than a larger prompt that reliably completes the task.

LangChain describes compression as one of the core context engineering operations in its [context engineering for agents](https://www.langchain.com/blog/context-engineering-for-agents) article.

## Sitemap

See the full [sitemap](https://promptmetheus.com/sitemap.md) for all pages.
