# ContextualCompressionRetriever

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/retrievers/contextual_compression/ContextualCompressionRetriever)

Retriever that wraps a base retriever and compresses the results.

## Signature

```python
ContextualCompressionRetriever()
```

## Extends

- `BaseRetriever`

## Properties

- `base_compressor`
- `base_retriever`
- `model_config`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f4bc5031dbcf24edb0374a07830915a285222567/libs/langchain/langchain_classic/retrievers/contextual_compression.py#L13)