Voyage code 2
Overview
voyage-code-2 is an embedding model optimized for semantic code retrieval. It supports a 16,000-token context window and produces 1536-dimensional vector embeddings. Trained on large-scale code datasets using advanced loss functions and contrastive learning, it outperforms competing models on code retrieval benchmarks and also improves on general-purpose text retrieval tasks.
About Voyage AI
Voyage AI provides best-in-class embedding models and rerankers for search and retrieval over unstructured data, used to power retrieval-augmented generation (RAG) and AI applications. It offers general-purpose, domain-specific (finance, legal, code) and company-specific fine-tuned models. Founded in 2023 and based in Palo Alto, the company was acquired by MongoDB, Inc. in February 2025 and now operates as a MongoDB subsidiary.
View Company Profile