Use Vertex AI Studio to design, test, and customize your prompts sent to Google's Gemini and PaLM 2 large language models (LLM). After an LLM processes your prompt, it sends you its response. To learn more about the Vertex AI Studio, see Experiment with models in Vertex AI Studio.
New to Google Cloud
Get set up on Google Cloud
If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers get $300 in free credits to run, test, and deploy workloads. The setup process is only three short steps:
Use the following button to create an account. After you're done, return to this page to complete this beginner tutorial. To use all features available on this site, sign in using your account.
Create an accountFor more information on getting set up on Google Cloud, see Get set up on Google Cloud.
Test a language model from the prompt gallery
- Go to the Vertex AI Studio page from the Vertex AI
section in the Google Cloud console.
Vertex AI Studio - Click Open on the Language model option.
- From the Language studio, navigate to the Prompt Gallery, and select Open
on the
Transcript Summarization
prompt example. The prompt, model, and parameters are prefilled with the values from the sample prompt. - Click Submit to get a response from the test model. Scroll down to see all of the results.
- To see different results, change the Model in the model drop-down, and adjust the parameters.
Design and test your prompt
You can create and test your prompts (inputs) for tasks that are relevant to your business use case, and generate responses. By adding inputs and outputs, the LLM is capable of learning in-context from the examples of responses.
You can create a prompt, which gives a precise instruction, and asks the LLM to complete a sentence for you or to answer one-time questions.
- Go to the Vertex AI Studio page from the Vertex AI
section in the Google Cloud console.
Vertex AI Studio - Click Open on the Language model option.
- Click Create Prompt. An untitled prompt opens.
- In the prompt box, add a clear and concise description of the task that you want the model to do.
- As an example, ask the model to
Suggest a name for a flower shop that sells bouquets of dried flowers
. - Click Submit.
- Responses appear in response box. If you want to view different results, adjust the parameters, and click Submit.
What's next
- Learn about designing text prompts and text chat prompts.
- Learn about text embeddings.
- Try to tune a language foundation model.
- Learn about responsible AI best practices and Vertex AI's safety filters.
- Learn about streaming responses from a model.