# RankLLMRerank

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_compressors/rankllm_rerank/RankLLMRerank)

Document compressor using Flashrank interface.

## Signature

```python
RankLLMRerank()
```

## Extends

- `BaseDocumentCompressor`

## Properties

- `client`
- `top_n`
- `model`
- `step_size`
- `gpt_model`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/document_compressors/rankllm_rerank/RankLLMRerank/validate_environment)
- [`compress_documents()`](https://reference.langchain.com/python/langchain-community/document_compressors/rankllm_rerank/RankLLMRerank/compress_documents)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_compressors/rankllm_rerank.py#L28)