Context Management toggles between elaboration and economy: expansion weaves ancillary details, precedents, or hypotheticals to enrich nuance; compression distills to salient excerpts, excising noise via summarization or prioritization. This adaptive resizing navigates finite windows, sustaining coherence in protracted dialogues or document analyses, optimizing for relevance over raw volume.
Examples
User Prompt: Maintain long therapy session context using Expansion. AI Response: Expanded: Recalled prior traumas, linked to current anxiety; Empathetic response tailored deeply.
User Prompt: Compress legal doc for review. AI Response: Distilled: Core clauses only, key terms bolded; Retained: Liabilities, without boilerplate.
User Prompt: Evolve story across turns with Management. AI Response: Compressed history: Plot pivots summarized; Expanded new: Vivid scene details.
User Prompt: Chain research queries adaptively. AI Response: Expanded initial: Broad sources. Compressed follow-up: Focused on outliers.
Advantages
- Maximizes token utility, averting dilution or truncation pitfalls.
- Preserves continuity in extended exchanges, like support tickets.
- Tailors density to task—lavish for creativity, lean for extraction.
- Automates housekeeping, freeing cognitive bandwidth for core reasoning.