Skip to content

Commit 126a808

Browse files
committed
✨ Update Index.razor for Bedrock AI integration
- Modified content to enhance the integration of Bedrock AI. - Improved structure and readability for better understanding. - Ensured compatibility with existing components and services. Generated by Copilot
1 parent 61c644a commit 126a808

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

TestArena/Blog/AI/Bedrock/Index.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ async Task ListAvailableModels(AmazonBedrockClient client)
204204
</CodeSnippet>
205205
</Section>
206206

207-
<Section Heading="5. InvokeModel vs. Converse API — Which Should You Use?" Level="5">
207+
<Section Heading="5b. InvokeModel vs. Converse API — Which Should You Use?" Level="5">
208208
<p>
209209
Before invoking your first model, it's important to know that Bedrock exposes two different APIs for calling foundation models:
210210
</p>
@@ -233,7 +233,7 @@ async Task ListAvailableModels(AmazonBedrockClient client)
233233
</CalloutBox>
234234
</Section>
235235

236-
<Section Heading="6. Invoking a Model (Anthropic Claude)" Level="5">
236+
<Section Heading="5c. Invoking a Model (Anthropic Claude)" Level="5">
237237
<p>Now let's invoke Claude to get useful output. The <code>BedrockService</code> class wraps the Invoke API. Here is the core logic from <a href="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockService.cs" target="_blank">BedrockService.cs</a>:</p>
238238
<CodeSnippet Language="csharp" Number="4">
239239
public async Task&lt;string&gt; GetMovieDetails(string movieQuery)
@@ -275,7 +275,7 @@ public async Task&lt;string&gt; GetMovieDetails(string movieQuery)
275275
</Section>
276276
</Section>
277277

278-
<Section Heading="7. Production Patterns: Batch Processing & Error Recovery" Level="5">
278+
<Section Heading="6. Production Patterns: Batch Processing & Error Recovery" Level="5">
279279
<p>
280280
Single queries are great for testing, but production systems need efficiency and resilience. Let's move beyond toy examples to a realistic scenario: <b>batch document summarization</b>.
281281
Imagine your SaaS platform ingests customer support tickets and needs to auto-summarize them in real-time. With a naive approach, you'd loop through tickets one-by-one—slow and expensive. Here's a production-ready approach that batches requests and handles failures gracefully.
@@ -440,7 +440,7 @@ Console.WriteLine($"Processed {results.Count} tickets, {successCount} succeeded"
440440
</Section>
441441
</Section>
442442

443-
<Section Heading="8. Summary" Level="4">
443+
<Section Heading="7. Summary" Level="4">
444444
<ul>
445445
<li><b>What:</b> AWS Bedrock is a managed service that abstracts vendor-specific AI APIs into a unified API interface (with C# SDK support).</li>
446446
<li><b>Why:</b> It reduces friction: unified auth (IAM), consistent error handling, and easy model switching.</li>
@@ -461,7 +461,7 @@ Console.WriteLine($"Processed {results.Count} tickets, {successCount} succeeded"
461461
</CalloutBox>
462462
</Section>
463463

464-
<Section Heading="9. References & Further Reading" Level="4">
464+
<Section Heading="8. References & Further Reading" Level="4">
465465
<ul>
466466
<li><a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html" target="_blank">AWS Bedrock Documentation</a></li>
467467
<li><a href="https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/" target="_blank">AWS SDK for .NET</a></li>

0 commit comments

Comments
 (0)