by transitivebs · 3y ago · 0 comments
So if you're struggling to get the chat completions API to follow instructions, don't rely on the system message alone.
(I'm the author of the `chatgpt` npm package and run a community of 10k+ ChatGPT hackers, so we've run into a lot of these kinks and found that this method works much better than using the "system" message exclusively. It's even mentioned in their official chat completions guide as something that they will be improving in future versions)
You say here that the simple message should be really simple. So, further instructions should be in a user message? Any idea what constitutes a "simple" system message?
I've had success with a simple system method that is one sentence defining how we are extending chatgpt.
"You are AcmeCoBot an extension of ChatGPT which we have enabled <x, y, z features> to assist users <goal>."
Then a user message with the actual instructions on what you want/need - this is much closer prompting for gpt-3.
user msg 1: Translate the following to German for me... some text assistant msg 1: an example translation
new user msg: Translate the following to German for me...
The model completes these interactions well. We may run 1-10 of these completions before using chatgpt for the last mile message that actually gets sent to a user. It takes a while to wrap your head around using the chatgpt api for a non-chat completion.