Amazon Sagemaker
Amazon SageMaker is a fully-managed platform that enables developers and data scientists to quickly and easily build, train, and deploy machine learning models at any scale. With Amazon SageMaker, all the barriers and complexity that typically slow down developers who want to use machine learning are removed. The service includes models that can be used together or independently to build, train, and deploy your machine learning models.

voyage-code-2 Embedding Model Free trial
By:
Latest Version:
v1.0.1
Text embedding model optimized for code retrieval and AI applications. 16K context length.
Product 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-2 is optimized for retrieving code and code-related texts from both natural language and code queries. It excels in AI applications like semantic code retrieval, code completion, and general code assistants. On 11 code retrieval tasks, voyage-code-2 shows a 14.52% improvement over alternatives, including OpenAI v3 large and Cohere English v3. Additionally, it averages a 5.21% enhancement over general-purpose corpora compared to BAAI/bge, OpenAI, and Cohere English v3. 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-2 here: https://blog.voyageai.com/2024/01/23/voyage-code-2-elevate-your-code-retrieval/
Key Data
Version
Show other versions
Type
Model Package
Highlights
Optimized for code retrieval. On 11 code retrieval tasks,
voyage-code-2
has a significant 14.52% improvement over any alternatives, including OpenAI v3 large and Cohere English v3.Superior general-purpose capability and consistent enhancements, averaging 5.21%, across general-purpose corpora over alternatives, including BAAI/bge, OpenAI and Cohere English v3.
16K token context length, well-suited for applications on long documents. 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.
Not quite sure what you’re looking for? AWS Marketplace can help you find the right solution for your use case. Contact us
Pricing Information
Use this tool to estimate the software and infrastructure costs based your configuration choices. Your usage and costs might be different from this estimate. They will be reflected on your monthly AWS billing reports.
Contact us to request contract pricing for this product.
Estimating your costs
Choose your region and launch option to see the pricing details. Then, modify the estimated price by choosing different instance types.
Version
Region
Software Pricing
Model Realtime Inference$1.6901/hr
running on ml.g6.xlarge
Model Batch Transform$2.2725/hr
running on ml.g5.2xlarge
Infrastructure PricingWith Amazon SageMaker, you pay only for what you use. Training and inference is billed by the second, with no minimum fees and no upfront commitments. Pricing within Amazon SageMaker is broken down by on-demand ML instances, ML storage, and fees for data processing in notebooks and inference instances.
Learn more about SageMaker pricing
With Amazon SageMaker, you pay only for what you use. Training and inference is billed by the second, with no minimum fees and no upfront commitments. Pricing within Amazon SageMaker is broken down by on-demand ML instances, ML storage, and fees for data processing in notebooks and inference instances.
Learn more about SageMaker pricing
SageMaker Realtime Inference$1.1267/host/hr
running on ml.g6.xlarge
SageMaker Batch Transform$1.515/host/hr
running on ml.g5.2xlarge
About Free trial
Try this product for 7 days. There will be no software charges, but AWS infrastructure charges still apply. Free Trials will automatically convert to a paid subscription upon expiration.
Model Realtime Inference
For model deployment as Real-time endpoint in Amazon SageMaker, the software is priced based on hourly pricing that can vary by instance type. Additional infrastructure cost, taxes or fees may apply.InstanceType | Realtime Inference/hr | |
---|---|---|
ml.g6.16xlarge | $6.369 | |
ml.g6.2xlarge | $1.833 | |
ml.g5.xlarge | $2.112 | |
ml.g5.8xlarge | $4.59 | |
ml.g6.4xlarge | $2.481 | |
ml.g5.2xlarge | $2.2725 | |
ml.g5.4xlarge | $3.045 | |
ml.g6.8xlarge | $3.777 | |
ml.g5.16xlarge | $7.68 | |
ml.g6.xlarge Vendor Recommended | $1.6901 |
Usage Information
Model input and output details
Input
Summary
input
:str
orList[str]
- Single text or list of texts.input_type
:str
, optional (default=None
) - May also be"query"
or"document"
.truncation
:bool
, optional (default=True
) -True
: Truncates.False
: raises error if any given text exceeds the context length.encoding_format
:str
, optional (default=None
) - Embedding format.None
: float list;"base64"
: compressed encoding.id
:str
, optional (default=None
) - Batch transform request ID.
Limitations for input type
The maximum number of tokens for each text is 16K, 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/jsonlinesSample input data
Output
Summary
The API will respond with a JSON object containing a list of embedding objects, along with other information such as model name and token usage.
Output MIME type
application/json, text/csv, application/jsonlinesSample output data
Sample notebook
Additional Resources
End User License Agreement
By subscribing to this product you agree to terms and conditions outlined in the product End user License Agreement (EULA)
Support Information
voyage-code-2 Embedding Model
Please email us at contact@voyageai.com for inquiries and customer support. Join our Discord channel: https://discord.gg/zAU7GQEmvT
AWS Infrastructure
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.
Learn MoreRefund Policy
Refunds to be processed under the conditions specified in EULA. Please contact contact@voyageai.com for further assistance.
Customer Reviews
There are currently no reviews for this product.
View allWrite a review
Share your thoughts about this product.
Write a customer review