You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
<SectionHeading="6. Invoking a Model (Anthropic Claude)"Level="5">
236
+
<SectionHeading="5c. Invoking a Model (Anthropic Claude)"Level="5">
237
237
<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 <ahref="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockService.cs"target="_blank">BedrockService.cs</a>:</p>
238
238
<CodeSnippetLanguage="csharp"Number="4">
239
239
public async Task<string> GetMovieDetails(string movieQuery)
@@ -275,7 +275,7 @@ public async Task<string> GetMovieDetails(string movieQuery)
275
275
</Section>
276
276
</Section>
277
277
278
-
<SectionHeading="7. Production Patterns: Batch Processing & Error Recovery"Level="5">
278
+
<SectionHeading="6. Production Patterns: Batch Processing & Error Recovery"Level="5">
279
279
<p>
280
280
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>.
281
281
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.
0 commit comments