[Back to all models](/guides/more-models-overview)

# rerank-2

### **Overview**

Generalist reranker optimized for quality with multilingual support. See [blog post](https://blog.voyageai.com/2024/09/30/rerank-2/) for details. Visit the [Voyage documentation](https://docs.voyageai.com/docs/reranker) for an overview of all Voyage embedding models and rerankers.

Access to models is through the Voyage Python client. You must [register](https://dash.voyageai.com/) for Voyage API keys to access.

### **Using the Model**

### **Installation**

```python
!pip install -qU voyageai pinecone
```

### Rerank

```python
import voyageai

# These are the documents returned from a search using Pinecone
documents = [
		"Apple is a popular fruit known for its sweetness and crisp texture.",
		"The tech company Apple is known for its innovative products like the iPhone.",
		"Many people enjoy eating apples as a healthy snack.",
		"Apple Inc. has revolutionized the tech industry with its sleek designs and user-friendly interfaces.",
		"An apple a day keeps the doctor away, as the saying goes."
]

query = "Tell me about the tech company known as Apple"

co = voyageai.Client(api_key=VOYAGE_API_KEY)
reranked_docs = vo.rerank(
    query=query,
    documents=documents,
    model="rerank-2",
    top_k=3
)

```

Lorem Ipsum

## Related pages

- [Account management](./account-management-index.md)
- [Admin](./admin-2-index.md)
- [Admin](./admin-index.md)
- [APIs](./apis-index.md)
- [Architecture](./architecture-index.md)
- [Bring Your Own Cloud](./bring-your-own-cloud-index.md)
- [Build an assistant](./build-an-assistant-index.md)
- [Build an integration](./build-an-integration-index.md)
- [Changelog](./changelog-index.md)
- [Changelog](../changelog.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
