Jargonautica
Controlling and Extending Behaviour at Run Time

Prompt Compression

Shortening what you send while keeping what matters, to save cost and leave room for more useful content. Approaches range from simply summarising the history to removing tokens a smaller model judges redundant.

Technical view

Methods include extractive selection of high-information tokens scored by a small model, abstractive summarisation of conversation history, and learned soft prompt compression into fewer embedding vectors. Trade-offs are information loss, an additional processing step in the latency path, and interaction with prefix caching, since compression that changes the prompt prefix invalidates the cache. Compaction of older turns while preserving recent ones verbatim is the common practical compromise.


Part of AI Terminology Index, section: Controlling and Extending Behaviour at Run Time.

How it connects

Prompt Compression links to 5 other terms. The faint lines are links between those terms. See it in the full graph.

Context WindowContext WindowContext EngineeringContext EngineeringMemoryMemorySession StateSession StateCachingCachingPrompt Compression