Explore Other Actions to Perform in the Prompt Playground¶
You can also perform other actions on the prompt page and use it for your reference. You can view the history of your experiment and restore the version of the prompt you like, export prompt data, and copy the experiment as a prompt or as an Gen AI node.
Copy a Prompt¶
You can copy a prompt experiment and use it for your reference for easy access to the other sections in the product.
You have 2 options to copy your prompt experiment:
- Copy as a Prompt: If you select the copy as a prompt option, then the user prompt, the few shot examples, and the system prompt are all copied.
- Copy as Gen AI node: If you select the copy as Gen AI node option, then along with the user prompt, the few shot examples, and the system prompt, the bookmarked model and the settings applied to the model are also copied. Once it is copied you can paste it as an Gen AI node in the Flow builder canvas.
Steps to copy a prompt:
-
On the Prompts experiment page, click Copy on the header of the page. A pop-up with options is displayed.
-
Click as prompt or as Gen AI node as per your requirement and the experiment is copied.
Restore a Prompt Version using the History¶
You can review the timeline of prompts and their corresponding generated outputs, complete with date and time stamps. Additionally, you can restore a prompt from this section, enabling you to utilize it and implement any necessary modifications, thereby saving considerable time compared to creating a new prompt from scratch.
Steps to restore a prompt:
-
On the Prompts experiment page, click the History icon on the header of the page.
The history section is displayed with the list of all the old prompt experiments you created.
-
Click the required old version of the experiment. The Restore option is displayed on the footer of the prompt experiment page.
-
Click Restore to work on the selected version of the prompt.
Export Prompt Data¶
You can download the prompt and the related experiment data and export it as a CSV file which can be used for later reference.
Steps to export a CSV file:
- On the Prompts experiment page, click the download icon on the header of the page.
The prompt experiment is downloaded as a CSV file successfully and is available in the downloads section of your computer.