Context Compression

Context Management

Definition

Techniques for reducing context window usage while preserving essential information. Strategies include: progressive summarization (replace old turns with summaries), selective retention (keep only relevant messages), and external storage (move history to a database with retrieval on demand).

Example Usage

After every 10 turns, summarize the conversation history into a 200-token digest to free up context space for new information.