Test a prompt using Prompt management - Amazon Bedrock

Test a prompt using Prompt management

To learn how to test a prompt you created in Prompt management, choose the tab for your preferred method, and then follow the steps:

Console
To test a prompt in Prompt management
  1. Sign in to the AWS Management Console using an IAM role with Amazon Bedrock permissions, and open the Amazon Bedrock console at Getting Started with the AWS Management Console.

  2. Select Prompt management from the left navigation pane. Then, choose a prompt in the Prompts section.

  3. Choose Edit in Prompt builder in the Prompt draft section, or choose a version of the prompt in the Versions section.

  4. (Optional) To provide values for variables in your prompt, you need to first select a model in the Configurations pane. Then, enter a Test value for each variable in the Test variables pane.

    Note

    These test values are temporary and aren't saved if you save your prompt.

  5. To test your prompt, choose Run in the Test window pane.

  6. Modify your prompt or its configurations and then run your prompt again as necessary. If you're satisfied with your prompt, you can choose Create version to create a snapshot of your prompt that can be used in production. For more information, see Deploy a prompt to your application using versions in Prompt management.

You can also test the prompt in the following ways:

API

You can test your prompt in the following ways: