# Prompt Optimization on Amazon Bedrock and Multi-Adapter Inference with SageMaker _

Users can optimize prompts across multiple models with a single API call.

Dynamic loading of adapters based on requests, facilitating hyper-personalized solutions in various industries.

_ **Published:** 2024-11-30 **Source:** https://www.startuphub.ai/ai-news/ai-research/2024/prompt-optimization-on-amazon-bedrock-and-multi-adapter-inference-with-sagemaker --- Amazon Web Services (AWS) continues to push the boundaries of Generative AI with two recent advancements: Prompt Optimization on Amazon Bedrock and the Multi-Adapter Inference feature for Amazon SageMaker. Both features aim to streamline the deployment and performance of Generative AI applications, catering to businesses seeking efficiency, scalability, and customization. ## Prompt Optimization on Amazon Bedrock AWS introduced Prompt Optimization on its Amazon Bedrock platform, simplifying the prompt engineering process for LLM applications. This feature eliminates the need for time-intensive manual prompt tuning, allowing users to optimize prompts for multiple foundation models with just a single API call or a few clicks on the console. ### Key Features: - **Ease of Use:** Reduce manual experimentation by automating prompt optimization. - **Model Support:** Includes Anthropic’s Claude 3 series, Meta’s Llama 3 models, Mistral’s Large model, and Amazon’s Titan Text Premier model. - **Performance Gains:** Significant improvements across tasks: **18% improvement** in summarization tasks. - **8% improvement** in dialog continuation tasks. - **22% improvement** in function calling accuracy. **Version Control:** Optimized prompts can be saved and managed, facilitating deployment across various use cases. Practical Applications include using the Prompt Optimization feature for call-transcript analysis, as demonstrated by the AWS team. The optimized prompts delivered explicit instructions, resulting in accurate classifications and formatted outputs, showcasing how this feature can streamline real-world AI tasks. ## Efficient Multi-Adapter Inference in Amazon SageMaker AWS also unveiled the Efficient Multi-Adapter Inference feature in Amazon SageMaker, enabling organizations to manage hundreds of fine-tuned Low-Rank Adaptation (LoRA) adapters dynamically. This innovation is tailored for companies needing hyper-personalized AI solutions across industries like healthcare, finance, and marketing. ### Key Features: - **Dynamic Loading:** LoRA adapters can be registered with a base model and loaded from GPU, CPU, or local disk in milliseconds, ensuring rapid response times. - **Atomic Operations:** Adapters can be added, updated, or deleted without redeploying the endpoint. - **Cost-Effective Customization:** By leveraging Parameter-Efficient Fine-Tuning (PEFT), organizations can adapt large models quickly and affordably. - **Scalability:** SageMaker’s inference components simplify managing multiple adapters, allocating computational resources efficiently. Real world applications include a marketing company using LoRA adapters to personalize content based on a client’s preferences, or a healthcare firm could dynamically switch between models tailored for diagnosing medical conditions or detecting financial fraud. AWS reported substantial accuracy improvements, with fine-tuned adapters showing over 50% increases in key performance metrics like METEOR and ROUGE scores. --- Original analysis from [startuphub.ai](https://www.startuphub.ai), the #1 AI startup directory.