> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# VoyageAI by MongoDB integrations

> Integrate with VoyageAI by MongoDB using LangChain Python.

All functionality related to VoyageAI by MongoDB

> [VoyageAI by MongoDB](https://www.voyageai.com/) builds embedding models, customized for your domain and company, for better retrieval quality.

## Installation and setup

Install the integration package with

```bash pip theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
pip install langchain-voyageai
```

```bash uv theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
uv add langchain-voyageai
```

Get a VoyageAI by MongoDB API key and set it as an environment variable (`VOYAGE_API_KEY`)

## Text embedding model

See a [usage example](https://docs.langchain.com/oss/python/integrations/embeddings/voyageai).

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_voyageai import VoyageAIEmbeddings
```

## Reranking

See a [usage example](https://docs.langchain.com/oss/python/integrations/document_transformers/voyageai-reranker).

```python theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
from langchain_voyageai import VoyageAIRerank
```

***

[Connect these docs](https://docs.langchain.com/use-these-docs.md) to your agent of choice via MCP for real-time answers.

[Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/voyageai.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
