Skip to main content
Don’t miss what’s next at Microsoft Ignite
Don’t miss what’s next at Microsoft IgniteGet direct access to the people, products, and expertise behind Microsoft technology, with opportunities to ask questions, build skills, and learn alongside the community.
Register now
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/mongodb.voyage-code-4-ai-foundry-93aeeb3d-8d59-491b-83ab-a1c3f6d05b78/image2_voyagebymongodb4.png

voyage code-4 AI Foundry

by MongoDB, Inc.

Code embedding model optimized for agentic code retrieval & code search. 32K context length.

Text embedding models are neural networks that transform texts into numerical vectors. They are a crucial building block for semantic search/retrieval systems and retrieval-augmented generation (RAG) and are responsible for the retrieval quality. voyage-code-4 is a next-generation code embedding model purpose-built for coding agents. It outperforms Cohere Embed v4 and Gemini Embedding 2 by an average of 28.25% and 31.03% on agentic code retrieval, a new benchmark built from issue-fixing pull requests, and by 19.21% and 16.01% across the 28 code retrieval datasets used to evaluate voyage-code-3. It surpasses voyage-code-3 itself by 27.54% and 13.98% on those two suites, respectively. Enabled by Matryoshka learning and quantization-aware training, voyage-code-4 supports embeddings in 2048, 1024, 512, and 256 dimensions, with multiple quantization options, and is priced at $0.12 per 1M tokens. Learn more about voyage-code-4 here: https://blog.voyageai.com/2026/08/13/voyage-code-4

At a glance

https://catalogartifact.azureedge.net/publicartifacts/mongodb.voyage-code-4-ai-foundry-93aeeb3d-8d59-491b-83ab-a1c3f6d05b78/image0_voyageflowchart.png
English (New Zealand)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies