Listing Thumbnail

    voyage-code-3 Embedding Model

     Info
    Deployed on AWS
    Text embedding model for code retrieval and AI applications. 32K context length. Multiple output dimensions and embedding quantization.

    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

    Delivery method

    Latest version

    Deployed on AWS

    Unlock automation with AI agent solutions

    Fast-track AI initiatives with agents, tools, and solutions from AWS Partners.
    AI Agents

    Features and programs

    Financing for AWS Marketplace purchases

    AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
    Financing for AWS Marketplace purchases

    Pricing

    voyage-code-3 Embedding Model

     Info
    Pricing is based on actual usage, with charges varying according to how much you consume. Subscriptions have no end date and may be canceled any time.
    Additional AWS infrastructure costs may apply. Use the AWS Pricing Calculator  to estimate your infrastructure costs.

    Usage costs (11)

     Info
    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?

    We'd like to hear your feedback and ideas on how to improve this page.
    We'd like to hear your feedback and ideas on how to improve this page.

    Legal

    Vendor terms and conditions

    Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA) .

    Content disclaimer

    Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.

    Usage information

     Info

    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.

    Deploy the model on Amazon SageMaker AI using the following options:
    Deploy the model as an API endpoint for your applications. When you send data to the endpoint, SageMaker processes it and returns results by API response. The endpoint runs continuously until you delete it. You're billed for software and SageMaker infrastructure costs while the endpoint runs. AWS Marketplace models don't support Amazon SageMaker Asynchronous Inference. For more information, see Deploy models for real-time inference  .
    Deploy the model to process batches of data stored in Amazon Simple Storage Service (Amazon S3). SageMaker runs the job, processes your data, and returns results to Amazon S3. When complete, SageMaker stops the model. You're billed for software and SageMaker infrastructure costs only during the batch job. Duration depends on your model, instance type, and dataset size. AWS Marketplace models don't support Amazon SageMaker Asynchronous Inference. For more information, see Batch transform for inference with Amazon SageMaker AI  .
    Version release notes

    MongoDB is excited to announce the release of voyage-code-3 on AWS Marketplace.

    Additional details

    Inputs

    Summary
    1. input: str or List[str] - Text(s)
    2. input_type: str, optional (default=None) - "query" or "document".
    3. truncation: bool, optional (default=True) - Truncate input.
    4. output_dimension: int, optional (default=None) - Dimensions for embeddings.
    5. output_dtype: str, optional (default="float") - Embedding data type
    6. encoding_format: str, optional (default=None) - Encoding (e.g., Base64)
    7. 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
    https://github.com/voyage-ai/voyageai-aws/blob/main/sample_embedding_input.json
    https://github.com/voyage-ai/voyageai-aws/blob/main/sample_batch_input_embedding.jsonl

    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

    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

    Customer reviews

    Ratings and reviews

     Info
    0 ratings
    5 star
    4 star
    3 star
    2 star
    1 star
    0%
    0%
    0%
    0%
    0%
    0 AWS reviews
    No customer reviews yet
    Be the first to review this product . We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.