# OpenVINOReranker

> **Class** in `langchain_community`

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

OpenVINO rerank models.

## Signature

```python
OpenVINOReranker(
    self,
    **kwargs: Any = {},
)
```

## Extends

- `BaseDocumentCompressor`

## Constructors

```python
__init__(
    self,
    **kwargs: Any = {},
)
```


## Properties

- `ov_model`
- `tokenizer`
- `model_name_or_path`
- `model_kwargs`
- `top_n`

## Methods

- [`rerank()`](https://reference.langchain.com/python/langchain-community/document_compressors/openvino_rerank/OpenVINOReranker/rerank)
- [`compress_documents()`](https://reference.langchain.com/python/langchain-community/document_compressors/openvino_rerank/OpenVINOReranker/compress_documents)
- [`save_model()`](https://reference.langchain.com/python/langchain-community/document_compressors/openvino_rerank/OpenVINOReranker/save_model)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_compressors/openvino_rerank.py#L19)