Overview
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-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. Latency is 90 ms for a single query with at most 100 tokens, and throughput is 12.6M tokens per hour at $0.22 per 1M tokens on an ml.g6.xlarge. Learn more about voyage-code-3 here: https://blog.voyageai.com/2024/12/04/voyage-code-3/Â
Highlights
- Optimized for code retrieval. Outperforms OpenAI-v3-large and CodeSage-large by an average of 13.80% and 16.81% on a suite of 238 code retrieval datasets, respectively.
- Supports embeddings of 2048, 1024, 512, and 256 dimensions and offers multiple embedding quantization, including float (32-bit floating point), int8 (8-bit signed integer), uint8 (8-bit unsigned integer), binary (bit-packed int8), and ubinary (bit-packed uint8).
- 32K token context length. Latency is 90 ms for a single query with at most 100 tokens. 12.6M tokens per hour at $0.22 per 1M tokens on an ml.g6.xlarge.
Details
Unlock automation with AI agent solutions

Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.g5.2xlarge Inference (Batch) Recommended | Model inference on the ml.g5.2xlarge instance type, batch mode | $2.27 |
ml.g6.xlarge Inference (Real-Time) Recommended | Model inference on the ml.g6.xlarge instance type, real-time mode | $1.69 |
ml.g5.16xlarge Inference (Real-Time) | Model inference on the ml.g5.16xlarge instance type, real-time mode | $7.68 |
ml.g5.2xlarge Inference (Real-Time) | Model inference on the ml.g5.2xlarge instance type, real-time mode | $2.27 |
ml.g5.4xlarge Inference (Real-Time) | Model inference on the ml.g5.4xlarge instance type, real-time mode | $3.05 |
ml.g5.8xlarge Inference (Real-Time) | Model inference on the ml.g5.8xlarge instance type, real-time mode | $4.59 |
ml.g5.xlarge Inference (Real-Time) | Model inference on the ml.g5.xlarge instance type, real-time mode | $2.11 |
ml.g6.16xlarge Inference (Real-Time) | Model inference on the ml.g6.16xlarge instance type, real-time mode | $6.37 |
ml.g6.2xlarge Inference (Real-Time) | Model inference on the ml.g6.2xlarge instance type, real-time mode | $1.83 |
ml.g6.4xlarge Inference (Real-Time) | Model inference on the ml.g6.4xlarge instance type, real-time mode | $2.48 |
Vendor refund policy
Refunds to be processed under the conditions specified in EULA. Please contact aws-marketplace@mongodb.com for further assistance.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Amazon SageMaker model
An Amazon SageMaker model package is a pre-trained machine learning model ready to use without additional training. Use the model package to create a model on Amazon SageMaker for real-time inference or batch processing. Amazon SageMaker is a fully managed platform for building, training, and deploying machine learning models at scale.
Version release notes
MongoDB is excited to announce the release of voyage-code-3 on AWS Marketplace.
Additional details
Inputs
- Summary
- input: str or List[str] - Text(s)
- input_type: str, optional (default=None) - "query" or "document".
- truncation: bool, optional (default=True) - Truncate input.
- output_dimension: int, optional (default=None) - Dimensions for embeddings.
- output_dtype: str, optional (default="float") - Embedding data type
- encoding_format: str, optional (default=None) - Encoding (e.g., Base64)
- id: str, optional (default=None) - Batch request ID.
- Limitations for input type
- The maximum tokens for each text is 32K, the maximum length of the list is 128, and the total number of tokens in the list is at most 32K.
- Input MIME type
- text/csv, application/json, application/jsonlines
Input data descriptions
The following table describes supported input data fields for real-time inference and batch transform.
Field name | Description | Constraints | Required |
|---|---|---|---|
input | A single text string, or a list of texts as a list of strings. | Type: FreeText Limitations: The maximum tokens for each text is 32K, the maximum length of the list is 128, and the total number of tokens in the list is at most 32K. | Yes |
input_type | Type of the input text. Default to None. Other options: "query", "document". | Default value: None Type: FreeText | No |
truncation | Whether to truncate the input texts to fit within the context length. - If True, over-length input texts will be truncated to fit within the context length. - If False, an error will be raised if any given text exceeds the context length. | Default value: True Type: Categorical Allowed values: True, False | No |
output_dimension | The number of dimensions for resulting output embeddings. Options: 2048, 1024, 512, 256, `None`. If `None`, then output dimension is 1024. | Default value: None Type: Integer | No |
output_dtype | The data type for the resulting output embeddings. * "float": 32-bit single-precision floating-point numbers. This is provides the highest precision / retrieval accuracy. * "int8" and "uint8": 8-bit integers ranging from -128 to 127 and 0 to 255, respectively. * "binary" and "ubinary": 8-bit integers that represent bit-packed, quantized single-bit embedding values: int8 for binary and uint8 for ubinary. The length of the returned list of integers is 1/8 of output_dimension. | Default value: float Type: Categorical Allowed values: float, int8, uint8, binary, ubinary | No |
encoding_format | Format in which the embeddings are encoded. * None (default): embeddings are represented as a list of numbers in the data type specified by the output_dtype parameter (default is float); * "base64": embeddings are Base64-encoded NumPy array of (1) numpy.float32 for output_dtype=float, (2) numpy.int8 for output_dtype=int8, binary, and (3) numpy.uint8 for output_dtype=uint8, ubinary | Default value: None Type: Categorical Allowed values: base64, None | No |
id | Batch transform request ID. If specified, this will be returned in the output. | Default value: None Type: FreeText | No |
Support
Vendor support
Please email us at aws-marketplace@mongodb.com for inquiries and customer support. Join our Discord channel: https://discord.gg/zAU7GQEmvT https://docs.voyageai.com/docs/aws-marketplace-model-package .
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.
Similar products



