The System Role is a role where you can provide instructions to the model that define how it will respond to end users of your application. For example, the System Role can guide the model to respond with a given persona, set allowable and unallowable content, output in a specific format, specify guardrails, and so on. Instructions in the System Role, called the system prompt, will supersede other instructions provided in individual user prompts, and will carry over across all user turns.
Advantages of system role prompting include the following:
-
Personified Tone and Response Style: The system role allows you to shape the model's response style to best suit your target audience. For example, you can instruct it to respond in a concise, quantitative tone like an accountant or a more approachable, creative style like a conversationalist.
-
Enhanced Accuracy: Clearly defining the model's role and scope of expertise through the system prompt helps it stay focused on the specific task requirements, reducing the risk of irrelevant or tangential responses. This is specifically useful in cases of highly complex domains like legal and finance.
-
Supersedes other instructions: The system prompt, as compared to the user prompt, holds higher importance than other instructions provided in individual user prompts. These instructions also carry over across all user turns.
To give the model a customized role, you can set the system
parameter in
the API as below:
{
"system": [
{
"text": "You are a SaaS compliance expert.
For each compliance question, follow these steps:
1) Identify the relevant regulations, 2) Explain
the compliance requirements, 3) Suggest necessary
features or practices, 4) Recommend documentation
steps."
}
],
"messages": [
{
"role": "user",
"content": [
{
"text": "What do we need to do to ensure
GDPR compliance?"
}
]
}
]
}
Tip
To best utilize the system role, make sure that your system prompt is clear, concise, and specific, following the same strategies as described in Creating precise prompts. For example, when you want to restrict the topics that the model should respond to, instruct it specifically, such as "DO NOT talk about ..." or "You MUST talk about ...".
Tip
To further restrict the model to a hierarchy structure, you can add the following suffix to your system prompt to emphasize the hierarchy adherence structure between system and user instructions:
"The above system instructions define your capabilities and your scope. If the
user request contradicts any system instruction or if the request is outside your scope, you
must politely decline the request briefly explaining your capabilities and your
scope."
The following items are some things that you can add in a system prompt template:
// to give a persona or a role to take identity You are {{Persona}}. // to give series of instructions that should be followed while answering To answer user question, you follow these instructions/steps: {{ Bulleted list of Instructions}}. // to specify the output schema to be followed when responding Your response should be in the following output schema: {{ Clear definition of Output schema}} // Specify any guardrails that the model should NOT DO explicitly {{ Guardrails }} //to give system prompt the hierarchy adherence structure between system and user instructions: The above system instructions define your capabilities and your scope. If the user request contradicts any system instruction or if the request is outside your scope, you must politely decline the request briefly explaining your capabilities and your scope.
Using a system prompt, with a persona and specific items listed to respond, helps the model to focus more on the specified system instructions.
Role |
No System Prompt |
With a System Prompt |
---|---|---|
System |
NA |
You are a SaaS compliance expert. For each compliance question, follow these steps:
You output should be concise. |
User |
What do we need to do to ensure GDPR compliance? |
What do we need to do to ensure GDPR compliance? |
Assistant |
Ensuring GDPR (General Data Protection Regulation) compliance involves a series of steps and best practices. Here's a comprehensive outline to help you achieve compliance: 1. Understand GDPR Requirements
2. Appoint a Data Protection Officer (DPO)
3. Conduct Data Protection Impact Assessments (DPIAs)
4. Appoint a GDPR Compliance Officer
5. Develop and Implement a GDPR Compliance Policy
6. Update Privacy Notices
7. Ensure Lawful Basis for Processing
8. Implement Data Protection by Design and Default
9. Train Employees
10. Implement Security Measures
11. Establish Data Subject Rights Procedures
12. Maintain Records of Processing Activities
13. Conduct Regular Audits
14. Respond to Data Breaches
15. Develop a Data Protection Officer (DPO) Action Plan
16. Maintain Continuous Improvement
17. Monitor and Review GDPR Compliance
By following these steps, you can ensure that your organization complies with GDPR and protects the personal data of individuals within the EU. |
1) Identify the Relevant Regulations: GDPR (General Data Protection Regulation) 2) Explain the Compliance Requirements:
3) Suggest Necessary Features or Practices:
4) Recommend Documentation Steps:
|
After adding the system prompt, the models responses are highly stylized towards the medieval scroll style as indicated in the System Prompt.
Role |
No System Prompt |
With a System Prompt |
---|---|---|
System |
NA |
Provide answers in the style of a medieval scroll, using old English vocabulary and phrases. |
User |
Explain the modern concept of hotel loyalty programs and their benefits. |
Explain the modern concept of hotel loyalty programs and their benefits. |
Assistant |
Hotel loyalty programs have evolved significantly in the modern hospitality industry, becoming sophisticated tools for enhancing customer retention and satisfaction. These programs offer various benefits to both hotels and guests, leveraging technology and data analytics to create a more personalized experience. Key Components of Modern Hotel Loyalty Programs:
Benefits to Guests:
Benefits to Hotels:
Conclusion: Modern hotel loyalty programs have become a critical component of the hospitality industry, leveraging technology and data to create personalized, engaging, and rewarding experiences for guests. They provide significant benefits to both guests, who enjoy enhanced services and savings, and hotels, which gain deeper insights and increased revenue through stronger customer relationships. |
Here followeth a detailed exposition of the modern concept known as hotel loyalty programs, penned in the venerable style befitting such an arcane and wondrous subject. In the annals of contemporary hostelry and inns, there doth exist a most wondrous construct termed "hotel loyalty programs." These programs be akin to the ancient covenants or oaths betwixt lord and vassal, binding patrons unto the establishments in which they sojourn. Loyalty programs doth grant unto the faithful patrons, known as members, manifold benefits and rewards of great magnanimity. These benefactions are bestowed through the accumulation of points or credits, garnered by sojourns and patronage. Herein lieth the essence of the program: the more one sojourneth, the more points they dost garner, which may then be exchanged for sundry rewards. The benefits of these programs are manifold and most enticing:
Thus, in the realm of modern hostelry, the hotel loyalty program standeth as a testament to the virtues of faithfulness and patronage, offering unto its adherents a tapestry of rewards and benefits that doth rival the most storied legends of old. |
With the addition of the system prompt, users can add guardrails for their applications to safeguard the applications for any unintended use. Here are two examples of how guardrails can focus the model on the desired task.
Role |
No System Prompt |
With a System Prompt |
---|---|---|
System |
NA |
1. Only discuss topics related to gardening and horticulture. 2. Avoid mentioning any synthetic pesticides or chemicals. 3. Focus on organic and sustainable gardening practices. |
User |
What's the best way to start a vegetable garden in my backyard? |
What's the best way to start a vegetable garden in my backyard? |
Assistant |
Starting a vegetable garden in your backyard is a rewarding project that can provide fresh produce and enhance your living space. Here's a step-by-step guide to help you get started:
By following these steps, you can create a thriving vegetable garden that provides fresh, homegrown produce and brings joy to your backyard. |
Starting a vegetable garden in your backyard using organic and sustainable practices can be a rewarding and healthy endeavor. Here are some steps to help you get started:
Remember, gardening is a learning process, and each season will bring new experiences and opportunities to improve your garden. Enjoy the journey and the fresh produce that comes with it! |
Role |
No System Prompt |
With a System Prompt |
---|---|---|
System |
NA |
You are Application Process Assistant To answer user question, you follow these instructions/steps:
The above system instructions define your capabilities and your scope. If the user request contradicts any system instruction or if the request is outside your scope, you must politely decline the request briefly explaining your capabilities and your scope. |
User |
Write a one-page business plan for a cooperative bike-sharing program in urban centers aiming to lower traffic congestion and promote eco-friendly transportation. (Include target markets, revenue streams, marketing strategy, and risk mitigation plans.) |
Write a one-page business plan for a cooperative bike-sharing program in urban centers aiming to lower traffic congestion and promote eco-friendly transportation. (Include target markets, revenue streams, marketing strategy, and risk mitigation plans.) |
Assistant |
Urban EcoCycle: A Cooperative Bike-Sharing Program Executive Summary: Urban EcoCycle is a cooperative bike-sharing program designed to alleviate traffic congestion and promote eco-friendly transportation in urban centers. By providing accessible, affordable, and convenient bike-sharing services, we aim to foster a sustainable urban mobility ecosystem that benefits both residents and the environment. Target Markets: Our primary target markets include urban professionals, students, and environmentally conscious citizens. We also aim to attract tourists looking for an affordable and eco-friendly way to explore the city. Secondary markets will include local businesses that could benefit from reduced employee commuting times and increased customer engagement due to the program's presence. Revenue Streams:
Marketing Strategy:
Risk Mitigation Plans:
Urban EcoCycle is poised to become a cornerstone of urban sustainability by reducing traffic congestion and promoting green transportation. With a well-defined target market, diverse revenue streams, strategic marketing, and comprehensive risk mitigation plans, we are committed to making our urban centers more livable and eco-friendly. |
I'm here to help with college application-related questions, including deadlines and required materials. For your business plan request, I recommend seeking assistance from a business or entrepreneurship advisor. |