Coding model

Voyage code 2

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.

Type
Coding
Weights
Closed
Likes
5
License
mit

Model hub

voyageai/voyage-code-2

Repo
voyageai/voyage-code-2
Access
Public

More from Voyage AI

14

Pricing

1

About Voyage AI

1

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.