<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Amazon Transcribe Archives - The NOKIA Blog</title>
	<atom:link href="https://thenokiablog.com/tag/amazon-transcribe/feed/" rel="self" type="application/rss+xml" />
	<link>https://thenokiablog.com/tag/amazon-transcribe/</link>
	<description></description>
	<lastBuildDate>Wed, 04 Dec 2024 17:22:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://thenokiablog.com/wp-content/uploads/2024/03/cropped-Cjdowner-Cryptocurrency-Flat-ICON-ICX.512-32x32.png</url>
	<title>Amazon Transcribe Archives - The NOKIA Blog</title>
	<link>https://thenokiablog.com/tag/amazon-transcribe/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Reduce costs and latency with Amazon Bedrock Intelligent Prompt Routing and prompt caching (preview)</title>
		<link>https://thenokiablog.com/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/</link>
		
		<dc:creator><![CDATA[Mister Nokia]]></dc:creator>
		<pubDate>Wed, 04 Dec 2024 17:22:27 +0000</pubDate>
				<category><![CDATA[Nokia Mobile Phone]]></category>
		<category><![CDATA[Amazon Bedrock]]></category>
		<category><![CDATA[Amazon Bedrock Knowledge Bases]]></category>
		<category><![CDATA[Amazon Machine Learning]]></category>
		<category><![CDATA[Amazon Q]]></category>
		<category><![CDATA[Amazon Transcribe]]></category>
		<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[AWS re:Invent]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Generative AI]]></category>
		<category><![CDATA[Launch]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Storage]]></category>
		<guid isPermaLink="false">https://thenokiablog.com/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/</guid>

					<description><![CDATA[<p>December 5, 2024: Added instructions to request access to the Amazon Bedrock prompt caching preview.&#160; Today,...</p>
<p>The post <a href="https://thenokiablog.com/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/">Reduce costs and latency with Amazon Bedrock Intelligent Prompt Routing and prompt caching (preview)</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table id="amazon-polly-audio-table">
<tbody>
<tr>
<td id="amazon-polly-audio-tab">
<div id="amazon-polly-by-tab">
            <img decoding="async" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview.png" alt="Voiced by Polly" width="554" height="56">
           </div>
</td>
</tr>
</tbody>
</table>
<p><em><strong>December 5, 2024</strong>: Added instructions to request access to the Amazon Bedrock prompt caching preview.&nbsp;</em></p>
<p>Today, Amazon Bedrock has introduced in preview two capabilities that help reduce costs and latency for generative AI applications:</p>
<p><strong>Amazon Bedrock Intelligent Prompt Routing</strong> &ndash; When invoking a model, you can now use a combination of foundation models (FMs) from the same model family to help optimize for quality and cost. For example, with the Anthropic&rsquo;s Claude model family, Amazon Bedrock can intelligently route requests between Claude 3.5 Sonnet and Claude 3 Haiku depending on the complexity of the prompt. Similarly, Amazon Bedrock can route requests between Meta Llama 3.1 70B and 8B. The prompt router predicts which model will provide the best performance for each request while optimizing the quality of response and cost. This is particularly useful for applications such as customer service assistants, where uncomplicated queries can be handled by smaller, faster, and more cost-effective models, and complex queries are routed to more capable models. Intelligent Prompt Routing can reduce costs by up to 30 percent without compromising on accuracy.</p>
<p><strong>Amazon Bedrock now supports prompt caching</strong> &ndash; You can now cache frequently used context in prompts across multiple model invocations. This is especially valuable for applications that repeatedly use the same context, such as document Q&amp;A systems where users ask multiple questions about the same document or coding assistants that need to maintain context about code files. The cached context remains available for up to 5 minutes after each access. Prompt caching in Amazon Bedrock can reduce costs by up to 90% and latency by up to 85% for supported models.</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/html-element-select-envato-tuts/" class="template-2"><span class="cta">Read more</span><span class="postTitle">HTML Element: select | Envato Tuts+</span></a></div><p>These features make it easier to reduce latency and balance performance with cost efficiency. Let&rsquo;s look at how you can use them in your applications.</p>
<p><span><strong>Using Amazon Bedrock Intelligent Prompt Routing in the console<br></strong></span>Amazon Bedrock Intelligent Prompt Routing uses advanced prompt matching and model understanding techniques to predict the performance of each model for every request, optimizing for quality of responses and cost. During the preview, you can use the default prompt routers for Anthropic&rsquo;s Claude and Meta Llama model families.</p>
<p>Intelligent prompt routing can be accessed through the AWS Management Console, the AWS Command Line Interface (AWS CLI), and the AWS SDKs. In the Amazon Bedrock console, I choose <strong>Prompt routers</strong> in the <strong>Foundation models</strong> section of the navigation pane.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-92808" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-1.png" alt="Console screenshot." width="1465" height="676"></p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/skipping-the-whm-getting-started-wizard-cpanel-blog/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Skipping the WHM Getting Started Wizard | cPanel Blog</span></a></div><p>I choose the <strong>Anthropic Prompt Router</strong> default router to get more information.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-91863" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-2.png" alt="Console screenshot." width="1481" height="496"></p>
<p>From the configuration of the prompt router, I see that it&rsquo;s routing requests between Claude 3.5 Sonnet and Claude 3 Haiku using cross-Region inference profiles. The routing criteria defines the quality difference between the response of the largest model and the smallest model for each prompt as predicted by the router internal model at runtime. The fallback model, used when none of the chosen models meet the desired performance criteria, is Anthropic&rsquo;s Claude 3.5 Sonnet.</p>
<p>I choose <strong>Open in Playground</strong> to chat using the prompt router and enter this prompt:</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/gone-phishing-cpanel-blog/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Gone Phishing | cPanel Blog</span></a></div><p><code>Alice has N brothers and she also has M sisters. How many sisters does Alice&rsquo;s brothers have?</code></p>
<p>The result is quickly provided. I choose the new <strong>Router metrics</strong> icon on the right to see which model was selected by the prompt router. In this case, because the question is rather complex, Anthropic&rsquo;s Claude 3.5 Sonnet was used.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-90288" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-3.png" alt="Console screenshot." width="1476" height="447"></p>
<p>Now I ask a straightforward question to the same prompt router:</p>
<p><code>Describe the purpose of a 'hello world' program in one line.</code></p>
<p>This time, Anthropic&rsquo;s Claude 3 Haiku has been selected by the prompt router.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-91980" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-4.png" alt="Console screenshot." width="1615" height="365"></p>
<p>I select the <strong>Meta Prompt Router</strong> to check its configuration. It&rsquo;s using the cross-Region inference profiles for Llama 3.1 70B and 8B with the 70B model as fallback.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-91864" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-5.png" alt="Console screenshot." width="1481" height="491"></p>
<p>Prompt routers are integrated with other Amazon Bedrock capabilities, such as Amazon Bedrock Knowledge Bases and Amazon Bedrock Agents, or when performing evaluations. For example, here I create a model evaluation to help me compare, for my use case, a prompt router to another model or prompt router.</p>
<p><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-91856" src="https://thenokiablog.com/wp-content/uploads/2024/12/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview-6.png" alt="Console screenshot." width="1304" height="777"></p>
<p>To use a prompt router in an application, I need to set the prompt router Amazon Resource Name (ARN) as model ID in the Amazon Bedrock API. Let&rsquo;s see how this works with the AWS CLI and an AWS SDK.</p>
<p><span><strong>Using Amazon Bedrock Intelligent Prompt Routing with the AWS CLI<br></strong></span>The Amazon Bedrock API has been extended to handle prompt routers. For example, I can list the existing prompt routes in an AWS Region using <strong>ListPromptRouters</strong>:</p>
<div class="hide-language" readability="7">
<pre class="unlimited-height-code"><code class="lang-bash">aws bedrock list-prompt-routers</code></pre>
</div>
<p>In output, I receive a summary of the existing prompt routers, similar to what I saw in the console.</p>
<p>Here&rsquo;s the full output of the previous command:</p>
<pre><code class="lang-json">{
    "promptRouterSummaries": [
        {
            "promptRouterName": "Anthropic Prompt Router",
            "routingCriteria": {
                "responseQualityDifference": 0.26
            },
            "description": "Routes requests among models in the Claude family",
            "createdAt": "2024-11-20T00:00:00+00:00",
            "updatedAt": "2024-11-20T00:00:00+00:00",
            "promptRouterArn": "arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/anthropic.claude:1",
            "models": [
                {
                    "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.anthropic.claude-3-haiku-20240307-v1:0"
                },
                {
                    "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0"
                }
            ],
            "fallbackModel": {
                "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0"
            },
            "status": "AVAILABLE",
            "type": "default"
        },
        {
            "promptRouterName": "Meta Prompt Router",
            "routingCriteria": {
                "responseQualityDifference": 0.0
            },
            "description": "Routes requests among models in the LLaMA family",
            "createdAt": "2024-11-20T00:00:00+00:00",
            "updatedAt": "2024-11-20T00:00:00+00:00",
            "promptRouterArn": "arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/meta.llama:1",
            "models": [
                {
                    "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-8b-instruct-v1:0"
                },
                {
                    "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-70b-instruct-v1:0"
                }
            ],
            "fallbackModel": {
                "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-70b-instruct-v1:0"
            },
            "status": "AVAILABLE",
            "type": "default"
        }
    ]
}</code></pre>
<p>I can get information about a specific prompt router using <strong>GetPromptRouter</strong> with a prompt router ARN. For example, for the Meta Llama model family:</p>
<div class="hide-language" readability="8">
<pre class="unlimited-height-code"><code class="lang-bash">aws bedrock get-prompt-router --prompt-router-arn arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/meta.llama:1</code></pre>
</div>
<pre><code class="lang-json">{
    "promptRouterName": "Meta Prompt Router",
    "routingCriteria": {
        "responseQualityDifference": 0.0
    },
    "description": "Routes requests among models in the LLaMA family",
    "createdAt": "2024-11-20T00:00:00+00:00",
    "updatedAt": "2024-11-20T00:00:00+00:00",
    "promptRouterArn": "arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/meta.llama:1",
    "models": [
        {
            "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-8b-instruct-v1:0"
        },
        {
            "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-70b-instruct-v1:0"
        }
    ],
    "fallbackModel": {
        "modelArn": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-70b-instruct-v1:0"
    },
    "status": "AVAILABLE",
    "type": "default"
}
</code></pre>
<p>To use a prompt router with Amazon Bedrock, I set the prompt router ARN as model ID when making API calls. For example, here I use the Anthropic Prompt Router with the AWS CLI and the Amazon Bedrock Converse API:</p>
<div class="hide-language" readability="10">
<pre class="unlimited-height-code"><code class="lang-bash">aws bedrock-runtime converse 
    --model-id arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/anthropic.claude:1 
    --messages '[{ "role": "user", "content": [ { "text": "Alice has N brothers and she also has M sisters. How many sisters does Alice&rsquo;s brothers have?" } ] }]' </code></pre>
</div>
<p>In output, invocations using a prompt router include a new <code>trace</code> section that tells which model was actually used. In this case, it&rsquo;s Anthropic&rsquo;s Claude 3.5 Sonnet:</p>
<pre><code class="lang-json">{
    "output": {
        "message": {
            "role": "assistant",
            "content": [
                {
                    "text": "To solve this problem, let's think it through step-by-step:nn1) First, we need to understand the relationships:n   - Alice has N brothersn   - Alice has M sistersnn2) Now, we need to consider who Alice's brothers' sisters are:n   - Alice herself is a sister to all her brothersn   - All of Alice's sisters are also sisters to Alice's brothersnn3) So, the total number of sisters that Alice's brothers have is:n   - The number of Alice's sisters (M)n   - Plus Alice herself (+1)nn4) Therefore, the answer can be expressed as: M + 1nnThus, Alice's brothers have M + 1 sisters."
                }
            ]
        }
    },
    . . .
    "trace": {
        "promptRouter": {
            "invokedModelId": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0"
        }
    }
}</code></pre>
<p><span><strong>Using Amazon Bedrock Intelligent Prompt Routing with an AWS SDK<br></strong></span>Using an AWS SDK with a prompt router is similar to the previous command line experience. When invoking a model, I set the model ID to the prompt model ARN. For example, in this Python code I&rsquo;m using the Meta Llama router with the <strong>ConverseStream</strong> API:</p>
<pre><code class="lang-python">import json
import boto3

bedrock_runtime = boto3.client(
    "bedrock-runtime",
    region_name="us-east-1",
)

MODEL_ID = "arn:aws:bedrock:us-east-1:123412341234:default-prompt-router/meta.llama:1"

user_message = "Describe the purpose of a 'hello world' program in one line."
messages = [
    {
        "role": "user",
        "content": [{"text": user_message}],
    }
]

streaming_response = bedrock_runtime.converse_stream(
    modelId=MODEL_ID,
    messages=messages,
)

for chunk in streaming_response["stream"]:
    if "contentBlockDelta" in chunk:
        text = chunk["contentBlockDelta"]["delta"]["text"]
        print(text, end="")
    if "messageStop" in chunk:
        print()
    if "metadata" in chunk:
        if "trace" in chunk["metadata"]:
            print(json.dumps(chunk['metadata']['trace'], indent=2))
</code></pre>
<p>This script prints the response text and the content of the trace in response metadata. For this uncomplicated request, the faster and more affordable model has been selected by the prompt router:</p>
<div class="hide-language" readability="12">
<pre class="unlimited-height-code"><code class="lang-json">A "Hello World" program is a simple, introductory program that serves as a basic example to demonstrate the fundamental syntax and functionality of a programming language, typically used to verify that a development environment is set up correctly.
{
  "promptRouter": {
    "invokedModelId": "arn:aws:bedrock:us-east-1:123412341234:inference-profile/us.meta.llama3-1-8b-instruct-v1:0"
  }
}</code></pre>
</div>
<p><span><strong>Using prompt caching with an AWS SDK<br></strong></span>You can use prompt caching with the Amazon Bedrock Converse API. When you tag content for caching and send it to the model for the first time, the model processes the input and saves the intermediate results in a cache. For subsequent requests containing the same content, the model loads the preprocessed results from the cache, significantly reducing both costs and latency.</p>
<p>You can implement prompt caching in your applications with a few steps:</p>
<ol>
<li>Identify the portions of your prompts that are frequently reused.</li>
<li>Tag these sections for caching in the list of messages using the new <code>cachePoint</code> block.</li>
<li>Monitor cache usage and latency improvements in the response metadata <code>usage</code> section.</li>
</ol>
<p>Here&rsquo;s an example of implementing prompt caching when working with documents.</p>
<p>First, I download three decision guides in PDF format from the AWS website. These guides help choose the AWS services that fit your use case.</p>
<p>Then, I use a Python script&nbsp;to ask three questions about the documents. In the code, I create a <code>converse()</code> function to handle the conversation with the model. The first time I call the function, I include a list of documents and a flag to add a <code>cachePoint</code> block.</p>
<pre><code class="lang-python">import json

import boto3

MODEL_ID = "us.anthropic.claude-3-5-sonnet-20241022-v2:0"
AWS_REGION = "us-west-2"

bedrock_runtime = boto3.client(
    "bedrock-runtime",
    region_name=AWS_REGION,
)

DOCS = [
    "bedrock-or-sagemaker.pdf",
    "generative-ai-on-aws-how-to-choose.pdf",
    "machine-learning-on-aws-how-to-choose.pdf",
]

messages = []


def converse(new_message, docs=[], cache=False):

    if len(messages) == 0 or messages[-1]["role"] != "user":
        messages.append({"role": "user", "content": []})

    for doc in docs:
        print(f"Adding document: {doc}")
        name, format = doc.rsplit('.', maxsplit=1)
        with open(doc, "rb") as f:
            bytes = f.read()
        messages[-1]["content"].append({
            "document": {
                "name": name,
                "format": format,
                "source": {"bytes": bytes},
            }
        })

    messages[-1]["content"].append({"text": new_message})

    if cache:
        messages[-1]["content"].append({"cachePoint": {"type": "default"}})

    response = bedrock_runtime.converse(
        modelId=MODEL_ID,
        messages=messages,
    )

    output_message = response["output"]["message"]
    response_text = output_message["content"][0]["text"]

    print("Response text:")
    print(response_text)

    print("Usage:")
    print(json.dumps(response["usage"], indent=2))

    messages.append(output_message)


converse("Compare AWS Trainium and AWS Inferentia in 20 words or less.", docs=DOCS, cache=True)
converse("Compare Amazon Textract and Amazon Transcribe in 20 words or less.")
converse("Compare Amazon Q Business and Amazon Q Developer in 20 words or less.")</code></pre>
<p>For each invocation, the script prints the response and the <code>usage</code> counters.</p>
<div class="hide-language" readability="26">
<pre><code class="lang-bash">Adding document: bedrock-or-sagemaker.pdf
Adding document: generative-ai-on-aws-how-to-choose.pdf
Adding document: machine-learning-on-aws-how-to-choose.pdf
Response text:
AWS Trainium is optimized for machine learning training, while AWS Inferentia is designed for low-cost, high-performance machine learning inference.
Usage:
{
  "inputTokens": 4,
  "outputTokens": 34,
  "totalTokens": 29879,
  "cacheReadInputTokenCount": 0,
  "cacheWriteInputTokenCount": 29841
}
Response text:
Amazon Textract extracts text and data from documents, while Amazon Transcribe converts speech to text from audio or video files.
Usage:
{
  "inputTokens": 59,
  "outputTokens": 30,
  "totalTokens": 29930,
  "cacheReadInputTokenCount": 29841,
  "cacheWriteInputTokenCount": 0
}
Response text:
Amazon Q Business answers questions using enterprise data, while Amazon Q Developer assists with building and operating AWS applications and services.
Usage:
{
  "inputTokens": 108,
  "outputTokens": 26,
  "totalTokens": 29975,
  "cacheReadInputTokenCount": 29841,
  "cacheWriteInputTokenCount": 0
}</code></pre>
</div>
<p>The <code>usage</code> section of the response contains two new counters: <code>cacheReadInputTokenCount</code> and <code>cacheWriteInputTokenCount</code>. The total number of tokens for an invocation is the sum of the input and output tokens plus the tokens read and written into the cache.</p>
<p>Each invocation processes a list of messages. The messages in the first invocation contain the documents, the first question, and the cache point. Because the messages preceding the cache point aren&rsquo;t currently in the cache, they&rsquo;re written to cache. According to the <code>usage</code> counters, 29,841 tokens have been written into the cache.</p>
<div class="hide-language" readability="7">
<pre class="unlimited-height-code"><code class="lang-bash">"cacheWriteInputTokenCount": 29841</code></pre>
</div>
<p>For the next invocations, the previous response and the new question are appended to the list of messages. The messages before the <code>cachePoint</code> are not changed and found in the cache.</p>
<p>As expected, we can tell from the <code>usage</code> counters that the same number of tokens previously written is now read from the cache.</p>
<div class="hide-language" readability="7">
<pre class="unlimited-height-code"><code class="lang-bash">"cacheReadInputTokenCount": 29841</code></pre>
</div>
<p>In my tests, the next invocations take 55 percent less time to complete compared to the first one. Depending on your use case (for example, with more cached content), prompt caching can improve latency up to 85 percent.</p>
<p>Depending on the model, you can set more than one cache point in a list of messages. To find the right cache points for your use case, try different configurations and look at the effect on the reported usage.</p>
<p><span><strong>Things to know<br></strong></span>Amazon Bedrock Intelligent Prompt Routing is available in preview today in US East (N. Virginia) and US West (Oregon) AWS Regions. During the preview, you can use the default prompt routers, and there is no additional cost for using a prompt router. You pay the cost of the selected model. You can use prompt routers with other Amazon Bedrock capabilities such as performing evaluations, using knowledge bases, and configuring agents.</p>
<p>Because the internal model used by the prompt routers needs to understand the complexity of a prompt, intelligent prompt routing currently only supports English language prompts.</p>
<p>Amazon Bedrock support for prompt caching is available in preview in US West (Oregon) for Anthropic&rsquo;s Claude 3.5 Sonnet V2 and Claude 3.5 Haiku. Prompt caching is also available in US East (N. Virginia) for Amazon Nova Micro, Amazon Nova Lite, and Amazon Nova Pro. You can request access to the Amazon Bedrock prompt caching preview here.</p>
<p>With prompt caching, cache reads receive a 90 percent discount compared to noncached input tokens. There are no additional infrastructure charges for cache storage. When using Anthropic models, you pay an additional cost for tokens written in the cache. There are no additional costs for cache writes with Amazon Nova models. For more information, see Amazon Bedrock pricing.</p>
<p>When using prompt caching, content is cached for up to 5 minutes, with each cache hit resetting this countdown. Prompt caching has been implemented to transparently support cross-Region inference. In this way, your applications can get the cost optimization and latency benefit of prompt caching with the flexibility of cross-Region inference.</p>
<p>These new capabilities make it easier to build cost-effective and high-performing generative AI applications. By intelligently routing requests and caching frequently used content, you can significantly reduce your costs while maintaining and even improving application performance.</p>
<p>To learn more and start using these new capabilities today, visit the Amazon Bedrock documentation&nbsp;and send feedback to AWS re:Post for Amazon Bedrock. You can find deep-dive technical content and discover how our Builder communities are using Amazon Bedrock at community.aws.</p>
<p>&mdash; Danilo</p>
<p>       <!-- '"` --></p>
<p>The post <a href="https://thenokiablog.com/reduce-costs-and-latency-with-amazon-bedrock-intelligent-prompt-routing-and-prompt-caching-preview/">Reduce costs and latency with Amazon Bedrock Intelligent Prompt Routing and prompt caching (preview)</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>AWS Weekly Roundup: Agentic workflows, Amazon Transcribe, AWS Lambda insights, and more (October 21, 2024) &#124; Amazon Web Services</title>
		<link>https://thenokiablog.com/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services/</link>
		
		<dc:creator><![CDATA[Mister Nokia]]></dc:creator>
		<pubDate>Mon, 21 Oct 2024 18:51:26 +0000</pubDate>
				<category><![CDATA[Nokia Mobile Phone]]></category>
		<category><![CDATA[Amazon Bedrock]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Amazon Elastic Kubernetes Service]]></category>
		<category><![CDATA[Amazon OpenSearch Service]]></category>
		<category><![CDATA[Amazon Q]]></category>
		<category><![CDATA[Amazon Transcribe]]></category>
		<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[AWS Lambda]]></category>
		<category><![CDATA[AWS Supply Chain]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Generative AI]]></category>
		<category><![CDATA[Launch]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Week in Review]]></category>
		<guid isPermaLink="false">https://thenokiablog.com/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services/</guid>

					<description><![CDATA[<p>Agentic workflows are quickly becoming a cornerstone of AI innovation, enabling intelligent systems to autonomously handle...</p>
<p>The post <a href="https://thenokiablog.com/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services/">AWS Weekly Roundup: Agentic workflows, Amazon Transcribe, AWS Lambda insights, and more (October 21, 2024) | Amazon Web Services</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<table id="amazon-polly-audio-table">
<tbody>
<tr>
<td id="amazon-polly-audio-tab">
<div id="amazon-polly-by-tab">
            <img decoding="async" src="https://thenokiablog.com/wp-content/uploads/2024/10/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services.png" alt="Voiced by Polly" width="554" height="56">
           </div>
</td>
</tr>
</tbody>
</table>
<p>Agentic workflows are quickly becoming a cornerstone of AI innovation, enabling intelligent systems to autonomously handle and refine complex tasks in a way that mirrors human problem-solving. Last week, we launched Serverless Agentic Workflows with Amazon Bedrock, a new short course developed in collaboration with Dr. Andrew Ng and DeepLearning.AI.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-88394" src="https://thenokiablog.com/wp-content/uploads/2024/10/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services-1.png" alt="Serverless Agentic Workflows with Amazon Bedrock" width="2102" height="577"></p>
<p>This hands-on course, taught by my colleague Mike Chambers, teaches how to build serverless agents that can handle complex tasks without the hassle of managing infrastructure. You will learn everything you need to know about integrating tools, automating workflows, and deploying responsible agents with built-in guardrails on Amazon Web Services (AWS) with Amazon Bedrock.&nbsp;The hands-on labs provided with the course let you apply your knowledge directly in an AWS environment, hosted by AWS Partner Vocareum. Find more information and enroll for free on the DeepLearning.AI course page.</p>
<p>Now, let&rsquo;s turn our attention to other exciting news in the AWS universe from last week.</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/html-element-select-envato-tuts/" class="template-2"><span class="cta">Read more</span><span class="postTitle">HTML Element: select | Envato Tuts+</span></a></div><p><strong><span>Last week&rsquo;s launches<br></span></strong>Here are some launches that got my attention:</p>
<p><strong>Amazon Transcribe now supports streaming transcription in 30 additional languages</strong> &ndash; Amazon Transcribe has expanded its support to include 30 additional languages, bringing the total number of supported languages to 54. This enhancement helps you reach a broader global audience and improves accessibility across various industries, including contact centers, broadcasting, and e-learning. The expanded language support allows for more efficient content moderation, improved agent productivity, and automatic subtitling for live events and meetings.</p>
<p><strong>AWS Lambda console now surfaces key function insights and supports real-time log analytics</strong> &ndash; The AWS Lambda console now features a built-in Amazon CloudWatch Metrics Insights dashboard and supports CloudWatch Logs Live Tail, providing instant visibility into critical function metrics and real-time log streaming. You can now identify and troubleshoot errors or performance issues for your Lambda functions without leaving the console, as well as view and analyze logs in real time as they become available. You can reduce context switching and accelerate the development and troubleshooting processes for serverless applications. Check out the launch post for more details.</p>
<p><strong>Amazon Bedrock Model Evaluation now supports evaluating custom model import models</strong> &ndash; You can now evaluate custom models you&rsquo;ve imported to Amazon Bedrock using the model evaluation feature. This helps you to complete the full cycle of selecting, customizing, and evaluating models before deploying them. To evaluate an imported model, select the custom model from the list of models to evaluate in the model selector tool when creating an evaluation job.</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/skipping-the-whm-getting-started-wizard-cpanel-blog/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Skipping the WHM Getting Started Wizard | cPanel Blog</span></a></div><p><strong>Amazon Q in AWS Supply Chain</strong> &ndash; You can now use Amazon Q, an interactive AI assistant, to analyze your supply chain data in AWS Supply Chain and get insights to operate your supply chain more efficiently. Amazon Q can answer your supply chain questions by diving into your data. This reduces the time spent searching for information and streamlines finding answers to improve your supply chain operations.</p>
<p>       For a full list of AWS announcements, be sure to keep an eye on the What&rsquo;s New at AWS page. </p>
<p><strong><u>Other AWS news<br></u></strong>Here are some additional news items and posts that you might find interesting:</p>
<p>New Amazon OpenSearch Service YouTube channel &ndash; The channel offers bite-sized tutorials, curated content, and organized playlists on topics such as log analytics, semantic search, vector databases, and operational best practices. You can also provide feedback to influence future channel content and the OpenSearch Service roadmap. Check out the launch post for more details and subscribe to the Amazon OpenSearch Service YouTube channel.</p>
<div class="internal-linking-related-contents"><a href="https://thenokiablog.com/gone-phishing-cpanel-blog/" class="template-2"><span class="cta">Read more</span><span class="postTitle">Gone Phishing | cPanel Blog</span></a></div><p>Deploying Generative AI Applications with NVIDIA NIM Microservices on Amazon Elastic Kubernetes Service (Amazon EKS)&nbsp;&ndash; This post shows you how to use&nbsp;Amazon EKS&nbsp;to orchestrate the deployment of pods containing&nbsp;NVIDIA NIM microservices, to enable quick-to-setup and optimized large-scale large language model (LLM) inference on Amazon EC2 G5 instances. It also demonstrates how to scale (both pod and cluster) by monitoring for custom metrics through Prometheus, and how you can load balance using an Application Load Balancer.</p>
<p>Instant Well-Architected CDK Resources with Solutions Constructs Factories &ndash; You can now create well-architected AWS resources such as Amazon Simple Storage Service (Amazon S3)&nbsp;buckets and AWS Step Functions state machines with a single function call using the new AWS Solutions Constructs Factories. These factories handle all the best practices configuration for you while still allowing customization. Try using a Constructs factory the next time you need to deploy one of the supported resources.</p>
<p><strong><u>Upcoming AWS events</u></strong><br>Check your calendars and sign up for these AWS events:</p>
<p><strong><img decoding="async" loading="lazy" class="alignright size-full wp-image-88401" src="https://thenokiablog.com/wp-content/uploads/2024/10/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services-2.png" alt="AWS GenAI Lofts" width="200" height="130">AWS GenAI Lofts</strong> &ndash; AWS GenAI Lofts are about more than just the tech, they bring together startups, developers, investors, and industry experts. Whether you&rsquo;re looking to gain deep insights, or get your questions answered by generative AI pros, our GenAI Lofts have you covered and provide everything you need to start building your next innovation. Join events in London (through October 25), Seoul (October 30&ndash;November 6), S&atilde;o Paulo (through November 20), and Paris (through November 25).</p>
<p><strong><img decoding="async" loading="lazy" class="alignright wp-image-85137 size-full" src="https://thenokiablog.com/wp-content/uploads/2024/10/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services-3.png" alt="AWS Community Days" width="200" height="78">AWS Community Days</strong> &ndash; Join community-led conferences that feature technical discussions, workshops, and hands-on labs led by expert AWS users and industry leaders from around the world: Malta (November 8), Chile (November 9), and Kochi, India (December 14).</p>
<p><strong> <img decoding="async" loading="lazy" class="alignright size-full wp-image-88407" src="https://thenokiablog.com/wp-content/uploads/2024/10/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services-4.png" alt="AWS re:Invent 2024" width="200" height="79">AWS re:Invent</strong> &ndash; Registration is now open for the annual tech extravaganza, taking place December 2&ndash;6 in Las Vegas. At re:Invent 2024, you&rsquo;ll get a front row seat to hear real stories from customers and AWS leaders about navigating pressing topics, such as generative AI. Learn about new product launches, watch demos, and get behind-the-scenes insights during five headline-making keynotes.</p>
<p>You can browse all upcoming in-person and virtual events.</p>
<p>That&rsquo;s all for this week. Check back next Monday for another Weekly Roundup!</p>
<p>&mdash;&nbsp;Antje</p>
<p><em>This post is part of our&nbsp;Weekly Roundup&nbsp;series. Check back each week for a quick roundup of interesting news and announcements from AWS!</em></p>
<p>       <!-- '"` --></p>
<p>The post <a href="https://thenokiablog.com/aws-weekly-roundup-agentic-workflows-amazon-transcribe-aws-lambda-insights-and-more-october-21-2024-amazon-web-services/">AWS Weekly Roundup: Agentic workflows, Amazon Transcribe, AWS Lambda insights, and more (October 21, 2024) | Amazon Web Services</a> appeared first on <a href="https://thenokiablog.com">The NOKIA Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
