Hello. I am using Open AIs Chat Completion API to allow users on my Discord chat with an AI that aims to be supportive for my Discord bot (e.g. recognizing an issue the user has, and linking the correct docs). I also want them to have nice conversations or have a supportive bot right in Discord.
As of yet, everything is fine, however the model keeps failing following the rules.
i have some rules and every time the user asks something, I will include the rules in the message history as system before the user sends it. unfortunately, the model fails to stick to the rules. is it smarter to split this one giant message into smaller messages and include each in the "history"?
current json i send (i want to include previous messages of the model as well in the future additionally to the rules and user message to provide more natural conversations)
// current request json to the api
{
"model": "gpt-3.5-turbo",
"temperature": 1,
"messages": [
{
"role": "system", // the rules i include in every message.
"content": "the large amount of rules (361 words, 2.3k characters)"
},
{
"role": "user", // user input
"content": "Hello. What is your name?"
}
]
}
json that may work better? for example:
{
"model": "gpt-3.5-turbo",
"temperature": 1,
"messages": [
{
"role": "system", // rules split no. 1
"content": "first 120 words"
},
{
"role": "system", // rules split no. 2
"content": "second 120 words"
},
{
"role": "system", // rules split no. 3
"content": "last 121 words"
},
{
"role": "user", // user input
"content": "Hello. What is your name?"
}
]
}