voyage-code-4 trains on how coding agents fetch context
- Source
- blog.voyageai.com
- Publisher
- Voyage AI
- Author
- Voyage AI by MongoDB
- Date

Context
voyage-code-4, released by Voyage AI on August 13, 2026, is a code model aimed at a specific gap in how coding agents look for . According to Voyage's release article, most agents rely on full-text search such as grep, which works when the agent already knows the it wants but returns nothing useful when the query describes a symptom, like a bug report. Voyage argues that conventional code embedding models, trained on code paired with docstrings, comments or synthetic questions, learn what code says rather than what it does wrong. Its answer was a new training corpus mined from completed pull requests, pairing natural-language queries with code, which Voyage says spans tens of thousands of repositories and hundreds of programming languages.
The headline numbers come from a benchmark Voyage built for that use: 19 sets drawn from issue-fixing pull requests, where each query is an issue description and the correct results are the files the merged fix touched, taken from repositories held out of training. Scoring the top 10 results with NDCG@10, a standard retrieval-quality metric, Voyage reports that voyage-code-4 beats voyage-code-3, Cohere Embed v4, Gemini Embedding 2 and OpenAI v3 large by 27.54%, 28.25%, 31.03% and 48.58%. On the 28 older code retrieval datasets used to evaluate voyage-code-3, the margins over the same models are 13.98%, 19.21%, 16.01% and 40.06%.
The test measures whether search points an agent at the code that needs changing, not whether the agent then fixes the bug. It is also Voyage's own benchmark, which the company says it is adding to the RTEB evaluation suite. The article gives relative margins rather than raw scores; the charts and spreadsheet holding the scores were not read here. Voyage prices the model at $0.12 per million tokens, a third below voyage-code-3, with the first 200 million tokens free, and its announcement post lists a 32K context.
- embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
- Identifier — A value that names exactly one record within a stated system, such as S-003 in the committee's table.
- quantization — Shrinking a model by storing its numbers less precisely — like rounding — so it runs faster and fits on smaller hardware, at a small quality cost.






