All terms
Patterns
Contextual Compression
Trimming retrieved text down to just the parts relevant to the query before the model reads it.
Definition
Contextual compression filters or shortens retrieved documents down to only the passages relevant to the query before passing them to the model. Removing irrelevant text saves context space and cost and helps the model focus, improving answers in retrieval-augmented generation.