Skip to content

Python: [Feature]: Python: Add a Voyage AI embedding client package #10360

Open
fzowl/agent-framework
#1

Description

@fzowl

Problem

Agent Framework has Python embedding clients for OpenAI, Azure OpenAI, Foundry, Gemini, Bedrock, Ollama, Mistral AI and NVIDIA NIM, but none for Voyage AI. Voyage AI's text embedding models (general, code, finance and law) are widely used for retrieval. Today, using them with InMemoryCollection and the other vector stores means writing a custom BaseEmbeddingClient, including the model and dimension validation, batching under Voyage AI's per-request limits, and error mapping.

Use Case and Evidence

An application builds a vector store collection with embedding_generator= set to a Voyage AI client and needs input_type="document" for stored records and input_type="query" for search, passed through embeddings_options, plus Matryoshka dimensions (256, 512, 1024 or 2048). Voyage AI also offers contextualized chunk embeddings (voyage-context-4, voyage-context-3), which return several vectors per document and so do not fit get_embeddings (one vector per input).

Desired Outcome

An opt-in package, following agent-framework-mistral and agent-framework-nvidia, that provides:

  • an embedding client for the Voyage AI text models, with an explicitly named model (no default), validated dimensions, input_type and truncation, splitting of large calls by the 1000-input limit and each model's per-request token ceiling, and token usage that fails closed when the response reports none;
  • a separate contextualized embeddings client, since one document yields several chunk vectors.

Alternatives Considered

  • Writing a custom BaseEmbeddingClient per application: works, but every user repeats the validation, batching and error handling.
  • Pointing the OpenAI client at Voyage AI: Voyage AI's embeddings API is not OpenAI-compatible (input_type, output_dimension, token ceilings), so the options would be dropped.

Proposed Direction

A new alpha package agent-framework-voyageai built on the official voyageai SDK, outside agent-framework-core[all] and without a core lazy-loading namespace, as for the other alpha packages. A working implementation with tests exists on a fork branch for reference: https://github.com/fzowl/agent-framework/tree/feat/voyage-ai-embeddings. It is not a pull request here, and I will not open one until a maintainer agrees to the direction, including whether a new package is wanted.

Scope and Non-Goals

Python only. Voyage AI reranking and multimodal embeddings are out of scope: the framework has no reranker or multimodal embedding abstraction. No changes to existing packages.

AI Assistance

This is AI-assisted. The implementation, tests, documentation and this issue text were prepared with AI assistance, and the results were checked against the live Voyage AI API.

Language

Python

Contribution Intent

I am willing to implement this

Acknowledgements

  • I searched existing issues and did not find a duplicate.
  • I will wait for explicit maintainer agreement before opening a pull request for this change.

Activity

  1. added
    python
    triage
    on Nov 14, 2026
  2. changed the title [-][Feature]: Python: Add a Voyage AI embedding client package[/-] [+]Python: [Feature]: Python: Add a Voyage AI embedding client package[/+] on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

pythontriage

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions