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