voyageai
What it is and what it does
Voyageai is a Python client for Voyage AI's embedding and reranking services. It converts unstructured data—documents, queries, images, audio, video, or tabular data—into dense numerical vectors that capture semantic meaning, or scores document relevance for reranking. These vectors are core building blocks for semantic search and retrieval-augmented generation (RAG) systems, where they integrate with vector stores and language models to improve retrieval accuracy.
The library supports both hosted API endpoints and a local voyage-4-nano model that runs without an API key on Python 3.10+. It handles input validation, token accounting, and batch limits transparently. The local path mirrors the hosted API's behavior, though some output data types are not yet supported locally. Runtime dependencies include requests, aiohttp, tenacity for retry logic, pydantic for validation, and langchain-text-splitters for text chunking.
Use it for:
- Build semantic search systems where user queries are embedded and matched against document vectors in a vector store.
- Implement RAG chatbots that retrieve relevant documents by embedding queries and reranking results for accuracy.
- Rerank initial retrieval results from lexical search to refine document relevance before passing to a language model.
- Convert multimodal data (documents, images, audio) into unified vector representations for cross-modal search.
- Prototype embedding-based applications locally using voyage-4-nano without API keys.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python access to Voyage AI's embedding and reranking APIs for converting documents and queries into semantic vectors and scoring document relevance.
Yes. Voyageai is actively maintained, has low install friction, carries a permissive MIT license, and integrates cleanly into RAG and semantic search workflows. The optional local model is a genuine advantage for prototyping. No known security vulnerabilities. Install it if you need embeddings or reranking from Voyage AI; the API-only path has minimal overhead.
Install
voyageai on PyPI
pip
pip install voyageaiuv
uv add voyageaipoetry
poetry add voyageaiInstalling voyageai
Before you install
Low friction install with a pure-API baseline. Optional local model support requires Python 3.10+ and pulls in torch and sentence-transformers; API-only users incur no import cost from those dependencies. Active maintenance with a release 35 days ago.
License in practice
MIT license permits commercial use, modification, and distribution with minimal restrictions—suitable for most production applications.
Quickstart
pip install voyageai
import voyageai
vo = voyageai.Client(api_key="your-key")
result = vo.embed(["Hello, world!"], model="voyage-4-nano", input_type="document")
print(result.embeddings[0])
API key required for hosted models; local model voyage-4-nano requires Python 3.10+ and the optional [local] extra.
Verify before relying
- Exact list of supported embedding and reranking models beyond voyage-4-nano.
- Rate limits, batch size constraints, and pricing tier details for the hosted API.
- Performance characteristics (latency, throughput) of local vs. hosted models.
- Whether int8 and uint8 output dtypes are supported in hosted API endpoints.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.15,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — requests, aiohttp, tenacity, numpy, aiolimiter, pillow, pydantic, tokenizers, langchain-text-splitters |
| Maintenance | actively maintained — 35 days since the last release |
| First released | |
| Downloads | 3,882,848/month — #2,462 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: voyageai-0.5.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
FlagEmbeddingFlagEmbedding provides embedding and reranking…
unclear · top 15,000 on PyPI
sentence-transformersComputes embeddings and reranking scores for…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-voyageaiAutomatically captures and traces Voyage AI API…
permissive · top 5,000 on PyPI
fastembedFastEmbed generates vector embeddings for text,…
permissive · top 5,000 on PyPI
pinecone-plugin-inferenceProvides embedding generation through…
permissive · top 15,000 on PyPI
pymilvus.modelProvides embedding and reranker model…
permissive · top 15,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
redisvlRedisVL is a Python client for building AI…
permissive · top 5,000 on PyPI
FlashRankFlashRank re-ranks search results using…
permissive · top 15,000 on PyPI
colpali-engineColPali-engine provides training and inference…
permissive · top 15,000 on PyPI