# 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/c2f4036e4c6ca45a8da8a42d8e07a25d2ea48b8f/libs/langchain/langchain_classic/retrievers/contextual_compression.py#L13)