Voyage Code 2
Voyage Code 2 is Voyage AI's code-specialized embedding model with a context window of 0 tokens. It improves code retrieval by 14.52% over OpenAI text-embedding-3-large and supports Python, C++, Java, and major ML framework documentation.
import { embed } from 'ai';
const result = await embed({ model: 'voyage/voyage-code-2', value: 'Sunny day at the beach',})