1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Amazon Bedrock

Connected

Exercise

Creating age-appropriate content filters

Expanding your work with the healthcare platform, they're developing content for different age groups in their family wellness program. When creating content for the different age groups, they need to ensure their AI responses are appropriate. You'll create a function that checks Claude's responses based on the target audience's age.

The json and boto3 libraries are preloaded, as well as the moderate_content() function defined in the previous exercise.

Instructions

100 XP
  • Insert the "high" level of moderation to get the appropriate content check for the children's prompt.
  • Repeat for adults and teens, with gradually lower levels of moderations, and check the output.