This document describes how to use the AI assistant in Vertex AI Studio to help you refine and generate prompts. AI assistant can speed up your prompt writing process.
Refine prompts
The AI assistant in Vertex AI Studio can help you refine your prompts based on your targeted results.
To refine prompts, do the following:
Go to the Freeform page in the Google Cloud console.
An untitled prompt opens.
In the prompt box, add your prompt.
Click Submit.
A response appears in the response box. Take note of what you would like to change about the response.
Click auto_fix Refine prompt.
The Refine prompt dialog opens.
Enter feedback about what you'd like to change about the model's response to your prompt, or select one or more of the following prefilled feedback options:
- Make shorter
- Maker longer
- More professional
- More casual
Click Apply and run.
Vertex AI runs the new prompt.
Repeat the process until you're satisfied with the model's response.
Generate prompts
Use the Vertex AI Studio AI prompt assistant to generate your prompts. Generating prompts can help you speed up the prompt-writing process.
To generate prompts, do the following:
Go to the Freeform page in the Google Cloud console.
An untitled prompt opens.
In the prompt box, click Help me write.
The Help me write dialog opens.
Enter a description of what you would like your prompt to achieve. For example,
Music recommendation bot
.Click Generate prompt.
The AI prompt assistant suggests a prompt based on your instructions.
Click Insert.
Vertex AI copies the generated prompt to the Prompt section on the Freeform page.
Click Submit.
If you aren't satisfied with the model's response, delete the prompt then repeat the process.
What's next
- Learn more about prompting strategies.
- Explore examples of prompts in the Prompt gallery.
- Learn about responsible AI best practices and Vertex AI's safety filters.