Views
No views yet
voyage-code-3 embedding model. voyage-code-3 is optimized for code retrieval, outperforming OpenAI-v3-large and CodeSage-large by an average of 13.80% and 16.81% on a suite of 238 code retrieval datasets, respectively. By supporting smaller dimensions with Matryoshka learning and quantized formats like int8 and binary, voyage-code-3 can also dramatically reduce storage and search costs with minimal impact on retrieval quality. Please refer to our blogpost for more details about this model.pip install -U voyageai1import voyageai
2
3vo = voyageai.Client()
4# This will automatically use the environment variable VOYAGE_API_KEY.
5# Alternatively, you can use vo = voyageai.Client(api_key="<your secret key>")
6
7result = vo.embed(
8 texts=["hello world"],
9 model="voyage-code-3",
10 input_type="document",
11 output_dimension=2048,
12 output_dtype="float"
13)voyage-code-3 on your own hardware? Feel free to reach out to contact@voyageai.com to learn more.