QuestionQ112
VerifiedTesting, Validation, and TroubleshootingA retail company operates an application that provides product recommendations to customers on its website. The application uses Amazon Bedrock to generate these recommendations by dynamically building prompts and sending them to foundation models (FMs).
A GenAI developer deploys an update to the application that instructs the FM to include a specific promotional message whenever it generates a response to prompts. During testing, the developer finds that:
- The promotional message does not always appear in the responses.
- When the promotional message does appear, it does not always flow smoothly with the rest of the text.
The GenAI developer needs to guarantee that the promotional message always appears in the FM's responses.
Which solution meets this requirement?
Community Discussion