# 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/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/document_compressors/rankllm_rerank.py#L28)