AI engineering glossary · Prompt context engineering

What is context compression?

Context compression: Shrinking the material placed in a prompt, through summarising, removing low-value passages or dropping filler words, while keeping the facts needed for the task. It saves cost and delay and can improve focus on long inputs.

Level: advancedTopic: Prompt context engineering

Context compression: an example

A 12,000-token set of meeting notes is reduced to a 2,500-token digest of decisions and action items.

Related terms

More Prompt context engineering terms

Where you learn it

Context compression is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.