英文:
What is the use case of System role
问题
The system role message is used to set the behavior or persona of the AI, and it doesn't have to be just a greeting message. You can use it to define the AI's persona or role in the conversation. For example, you can say:
- "You're a professional assistant" to make the AI behave in a professional manner.
- "You're a funny assistant" to make the AI act in an entertaining or humorous way.
So, you can use the system role message to establish the desired personality or behavior for the AI in the conversation.
英文:
This is from the official documentation from ChatGPT chat completion:
openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
My first understanding for the system role is a message that just to greeting the user. But it doesn't make sense to greet user by 'You are a helpful assistant.'.And it also explains:
> The system message helps set the behavior of the assistant. In the example above, the assistant was instructed with "You are a helpful assistant."
So do I write the behavior of the AI in the system role like: You're professional assistant
if I want the AI to be a pro or I can write in the role like: You're a funny assistant
if I would like it to be a interesting AI.
Or it simply just a greeting message?
答案1
得分: 2
这不是用于问候用户的,而是用来说明ChatGPT应该如何行动。网上有很多示例提示。在这里,您将找到一些用于系统提示的示例:https://github.com/f/awesome-chatgpt-prompts
英文:
It's not for greeting the user but to say how ChatGPT should act. There are a lot of sample prompts in the web. Here you'll find some samples for those system prompts: https://github.com/f/awesome-chatgpt-prompts
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论