Vibeleaderboard
← All Intel
Intel / article

voyage-context-4 moves chunking into the embedding call

Source
blog.voyageai.com
Publisher
Voyage AI
Author
Voyage AI by MongoDB
Date

Context

Voyage AI's voyage-context-4 turns the step of a search pipeline into a parameter of the call. Like voyage-context-3, it reads a whole document and returns one vector per chunk, each carrying information from the rest of the document, so a contract clause can be found by a question that names the defined elsewhere. Before, the developer had to split documents into chunks and send the pieces. Now they can send the full text with auto-chunking enabled and choose a target chunk size (512 tokens by default) and an overlap between neighboring chunks.

According to the API documentation, the response includes the text of each chunk the service created alongside its vector, so the pipeline can store what it will later show the user. Teams with their own chunker can still send pre-split chunks, and Voyage calls the model a drop-in replacement for voyage--3. Overlapping tokens are billed as ordinary input, so overlap adds cost.

The headline 'no 32K ceiling' needs reading against the documentation. Voyage's blog says documents longer than 32,000 tokens are split and embedded transparently, and that document length is effectively no longer a constraint. Voyage's current documentation still caps a single request at 120,000 tokens across all inputs when auto-chunking is on, and at 32,000 when it is off. The blog does not say whether a chunk on one side of an internal 32K split still receives context from the other side. Its long-document result, a 7.11% gain on the LongEmbed benchmark over embedding each document as one vector, does not answer that question.

The accuracy gains over voyage-context-3 are small and measured by Voyage: 2.08% for finding the right chunk and 1.4% for finding the right document, averaged over 39 datasets in eight domains using NDCG@10, a score for how well relevant results are ordered in the top ten. The 2.1% in Voyage's announcement post is the chunk-level figure. The price fell from $0.18 to $0.12 per million tokens, which is the 33% cost cut. Used as an ordinary one-vector-per-document model, voyage-context-4 also edged out Voyage's general-purpose voyage-4-large by 0.45%. For current voyage-context-3 users, the clearer gains are the lower price and less chunking code to maintain.

Terms in this piece · Glossary
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Document chunking — Splitting source material into units that can be indexed and retrieved.
  • embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
  • Client — The program that sends a request to a server and receives its response.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source blog.voyageai.com
More from Voyage AI by MongoDB
Recommended reads