skillfed

voyageai

voyageai v0.5.0 3.9M downloads/30d#2,462 on PyPI
Permissive license MIT Active released

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 voyageai

uv

uv add voyageai

poetry

poetry add voyageai

Installing 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

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

embedding API clientsemantic search vectorsdocument rerankingRAG retrievalvoyage AI embeddingsneural embedding modelsvector representation API
embeddingsragsemantic-search

More Artificial Intelligence packages

Further reading