Memory · Software component

Hierarchical History Compressor

Software componentMemoryCognition & Memoryarc:HierarchicalHistoryCompressor

A context window manager that keeps recent turns verbatim, older turns as paragraph summaries and distant turns as key-fact metadata, while full history is stored externally for on-demand retrieval.

Responsibility. Maintains a multi-granularity representation of conversation history within the context window.

Also known as: Hierarchical summarization, Hierarchical compression

Variant of Context Window Manager abstract

When to choose. Choose for long-running conversations where historical context determines current interpretation and users reference earlier turns, accepting retrieval latency and the need to decide which history to fetch.

invokesreadswritesspecializesalternative tois target of alternativeToalternative tois evaluated byalternative towritesLLM Inference Service: invokesLLM Inference ServiceConversation State Store: readsConversation State StoreEpisodic Memory Store: writesEpisodic Memory StoreContext Window Manager: specializesContext Window ManagerSummarizing History Compressor: alternative toSummarizing History Comp…Full Conversation Buffer: is target of alternativeToFull Conversation BufferSliding-Window History Truncator: alternative toSliding-Window History T…Compression Fidelity Validator: is evaluated byCompression Fidelity Val…Importance-Weighted History Retainer: alternative toImportance-Weighted Hist…Session Summary Store: writesSession Summary Store
Direct neighbourhood (hover for relationship types)

Relationships

invokes dependency

reads dependency

writes dependency

is evaluated by assurance

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Recency tiers: last 5-10 turns in full, turns 10-30 back as paragraph summaries, beyond 30 as bullet points/structured metadataFull history stored externally and retrieved on demand
Quality attributes
Reliability (ISO/IEC 25010 | NIST AI RMF: valid and reliable)Performance efficiency (ISO/IEC 25010)
Risks mitigated
Loss of early-conversation contextContext overflow in long conversationsAgent 'forgetting what we discussed earlier'

Sources

  1. Ch5.9: T. Nguyen, "Working Memory," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.9. ISBN: 9798244538229.
  2. Ch10.1: T. Nguyen, "Conversational UI," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 10.1. ISBN: 9798244538229.