# Role:assistant vs role:user - major differences?

**URL:** <https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526>\
**Category:** Prompting\
**Tags:** chatgpt\
**Created:** [March 24, 2024, 11:20am UTC](https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526 "2024-03-24T11:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiseduckling](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/wiseduckling/32/338959_2.png) [@wiseduckling](https://community.openai.com/u/wiseduckling)\
**Post date:** [March 24, 2024, 11:20am UTC](https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526/1 "2024-03-24T11:20:43Z")

</div>

I m using chatGPT to extract content from text and create questions from the text.

Recently I was struggling to get good results in terms of the output.

1. I need to have an array of objects, each with a question and answer → Most of the time I was getting a single object back instead of an array.
2. My prompts are quite complex and heavily customized → inconsistent responses - for example if I ask for the results in a different language than the original language the api only complies about 50% of the time.
3. Inconsistent formatting. → I would get responses like {“responses”:[… or {“questions”:[ or ```JSON …

I tried many things to ensure better and more consistent responses. I was using 3.5 turbo originally.

I tried GPT4 preview → results were more or less than same as 3.5  
GPT4 → better responses but its too expensive for my use case  
Fine tuned GPT3.5 → surprisingly this gave me WORSE results. I fine tuned it with responses that were arrays of objects, always containing multiple objects, and yet the responses I got were always a single object.

I also played around with asking for the response to be in json\_format, this somewhat works but again often ended up in the situation where I only had one item instead of a whole array.

I also couldn’t figure out why when using the playground I was getting great results compared to the API. Well it turns out that in the API I was feeding my prompt in as a message with the role “user”. In the playground the role is “assistant”. After changing it in my code to “assistant” the responses seem much better. (that said I went back to the playground and tried sending the content with “user” and the results good)

I need to keep testing but it has anybody had this experience? I dont understand why it would be the case. From the documentation I can’t see what impact the role would have here.

---

<div class="post-metadata">

**Author:** ![justin.hsu](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@justin.hsu](https://community.openai.com/u/justin.hsu)\
**Post date:** [March 26, 2024, 9:48am UTC](https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526/2 "2024-03-26T09:48:37Z")

</div>

Have the same question similar to yours in terms of role name in using API.

Human/User  
Assistant/System  
Message/Question/Answer

Hope there’s experienced experts to help us figure out what is behind…

---

<div class="post-metadata">

**Author:** ![ardens.candidus](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ardens.candidus/32/173198_2.png) [@ardens.candidus](https://community.openai.com/u/ardens.candidus)\
**Post date:** [March 31, 2024, 11:41am UTC](https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526/3 "2024-03-31T11:41:47Z")

</div>

they are not roles as in a users permission is admin. it’s roles of the message sent in order to use some as requests and others as context.  
user system is to set behavior rules in the gpt asking to act different. can be used by he chat too btw.  
assistant is providing query to answer and should be looked at as how the massager is acting if the chat is asked to retrieve information from the user it will act assistant  
message is responding with a result

---

<div class="post-metadata">

**Author:** ![patrick.lanquetin](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@patrick.lanquetin](https://community.openai.com/u/patrick.lanquetin)\
**Post date:** [April 9, 2024, 7:58am UTC](https://community.openai.com/t/role-assistant-vs-role-user-major-differences/695526/4 "2024-04-09T07:58:24Z")

</div>

@wiseduckling  
A beginning of answer is to read 2404.05624 paper on arxXiv  
This paper submitted to arXiv on yesterday April 8th '24 try to test and compare different roles settings, tag combinations and prompts to tag named entities in sentences using GPT 3.5 API.  
It use metrics (P, R, F1 ) and systematic benchmarking with datasets. Source code of the study is available on Github.

Conclusions of the paper about Named entities tagging:

1. Named enties tagging is not a Chat task, it’s a text augmentation task =\> in the API call, put everything in role:assistant (AAA in the paper)
2. More shots give better results=\>30 shots!
3. Some tag combinations for the output are better=\> authors obtain better results with ##Entry##Label (eg ##FRANCE##LOC)

Others LLMs API could be better for some extraction but not for others. So, it’s recommanded to test it for each extraction workflow and uses cases with your own test dataset
