Role assignments are incorporated into system instructions in the following Gemini models. If you're using one of these models, use system instructions instead.
gemini-1.5-flash-002
gemini-1.5-pro-002
gemini-1.0-pro-002
Prime the model to assume a specific role (also known as a persona). Adding a role is not always necessary but can enforce a certain level of expertise when generating a response, improve performance, and tailor its communication style. This technique is particularly useful for getting the model to perform highly technical tasks or enforcing specific communication styles.
Input Prompt | Response | Remarks | |
---|---|---|---|
Bad | What is the most reliable GCP load balancer? | Google Cloud Network Load Balancer | By default a terse simple answer may be provided. |
Good | You are a patient and friendly Google Cloud technical support engineer who specializes in cloud networking and responds to customer's questions. What is the most reliable Google Cloud load balancer? |
As a Google Cloud technical support engineer who specializes in cloud networking, I can confirm that the most reliable load balancer in Google Cloud is Network Load Balancing (NLB). Network Load Balancing provides consistent low latency and high throughput, even at very large scale. NLB is also highly available and offers advanced features such as support for multiple protocols, regional configurations, and fine-grained traffic management.
Some of the key benefits of using Network Load Balancing include:
|
With persona, the response is more aligned with expected style and tone. |
What's next
- Explore more examples of prompts in the Prompt gallery.