Amazon Bedrock Studio is in preview release and is subject to change.
Modify a prompt with Prompt Management
You can modify the current draft prompt or modify previous versions of a prompt. To modify a prompt, you select the version of the prompt (or current working draft prompt) that you want to modify. You then work on a draft update of the prompt. You can change the configuration for different versions of a prompt. For example, different versions of a prompt can use different Amazon Bedrock Studio models or use different inference parameters.
After testing the draft prompt, you can then save the draft as a new version of the prompt. If you want to use a new version of a prompt in a Prompt Flows app, update the version of the prompt in the app configuration. For more information, see Add a prompt to your Prompt Flows app.
For more information about the changes you can make, see Create a prompt with Prompt Management.
To modify a prompt
-
Open your Amazon Bedrock Studio workspace.
-
Make sure that you are in Build mode, by choosing Build at the top right of the page.
-
In the Project dropdown list, choose the project that contains the prompt that you want to modify.
-
Open the navigation pane by choosing the menu at the top left of the page.
-
In Project details choose Prompts.
In Prompts, select the prompt that you want to modify.
In the Drafts and versions pane, do one of the following:
If you want to modify the current draft prompt, choose View and edit in the working draft tile.
-
If you want to edit a previous version of the prompt, choose Restore in the tile for the prompt version. If the current draft prompt isn't already saved, Amazon Bedrock Studio offers to save the draft as new version of the prompt. To save the the draft, select Save the current working draft as a version. If you don't save the draft, the current draft prompt becomes the version of the prompt that you chose to edit. Amazon Bedrock Studio deletes the previous draft prompt.
If you want to try the prompt without making changes, choose View to open the prompt. You can't modify the prompt, but you can test and delete the prompt.
-
In Configs make changes to the model and inference parameters.
-
For Prompt message, use the text box to make changes to the prompt message.
-
(Optional) Choose Save draft to save a draft of your prompt.
-
In Test enter values for the prompt variables and choose run to test your changes.
-
When you are satisfied with your changes, choose Create version to create a new version of your prompt.