Amazon Bedrock introduces new advanced prompt optimization and migration tool

Amazon Bedrock has launched Advanced Prompt Optimization, a tool that automates the refinement of prompts across multiple models. It supports multimodal inputs and offers three evaluation methods to ensure high-quality AI responses.
Amazon Bedrock introduces new advanced prompt optimization and migration tool
Today, we’re announcing Amazon Bedrock Advanced Prompt Optimization, a new tool that you can use to optimize your prompts for any model on Amazon Bedrock, while comparing your original prompts to optimized prompts across up to 5 models simultaneously. With the new prompt optimization, you can migrate to a new model or improve performance from your current model. You can test them to make sure they see no regressions on known use cases and also improve on underperforming tasks.
The new prompt optimizer takes in your prompt template, example user inputs for the variable values, ground truth answers, and an evaluation metric to use as a guide. You can even use this with multimodal user inputs – it supports png, jpg, and pdf as inputs to your prompt templates so you can optimize prompts for tasks like document and image analysis.
You can also provide an AWS Lambda function, LLM-as-a-judge rubric, or a short natural language description to guide the optimization. The prompt optimizer works in a metric-driven feedback loop to optimize the prompt and resulting model responses for the evaluation metric, and outputs the original and final prompt templates with evaluation scores, cost estimates, and latency.
Bedrock Advanced Prompt Optimization in action
To get started with the new prompt optimization, choose Create prompt optimization on the Advanced Prompt Optimization page of the Amazon Bedrock console.
Pick up to 5 inference models for which to optimize your prompts. You can use this if you are migrating to a new model or just want to get better performance on your current model. If you’re changing models, you can select your current model as a baseline and up to 4 other models. If you aren’t changing models, then just select your current model to see before and after optimization.
You should prepare your prompt templates in JSONL format with example user data, ground truth answers, and an evaluation metric or rewriting guidance. For .jsonl files, each JSON object must be on a single line.
Amazon Bedrock automatically sends your prompt templates and example data with optional ground truth to your inference models, evaluates the responses with your evaluation metric, then rewrites the prompt in a feedback loop to optimize it for your inference models. You’ll see evaluation results based on your provided metric and your final optimized prompts.
Three ways to evaluate prompt quality
As noted, you can evaluate prompt quality in three ways:
- Lambda function— If you have a concrete metric (accuracy, F1, execution accuracy, structured-JSON match, etc.), you can deploy a Lambda function containing your custom scoring logic. The core is a compute_score implementation that programmatically compares model outputs against reference responses.
- LLM-as-a-Judge— If your task is open-ended (summarization, generation, reasoning explanations) and you want a rubric-based score, you can define named metrics with structured instructions and a rating scale. A Bedrock judge model (default is Claude Sonnet 4.6) evaluates each prompt-response pair and returns a score with reasoning.
- Steering criteria— If you know the qualities you want (brand voice, format, safety constraints) but don’t want to author a full judge prompt, you can provide free-form natural language criteria that the LLM judge evaluates holistically.
Now available
Amazon Bedrock Advanced Prompt Optimization is available today in multiple regions including US East, US West, Asia Pacific, Canada, Europe, and South America. You are charged based on the Bedrock model-inference tokens consumed during optimization, at the same per-token rates as regular Bedrock inference.
Source: AWS News Blog















