News for hackers. Stuff that matters.
Re:Latest ChatGPT 4 System prompt (1,700 tokens) by wongarsu on Wednesday February 07, 2024 @11:03AM (#39290166)
Exactly. Basically when you have a ChatGPT conversation, under the hood this is put at the start of the conversation as "system" instructions to the model.

So a typical input might look like

    <system> [this prompt]
    <user> [what you typed]
    <assistant>
And then the LLM is allowed to fill in what the assistant is supposed to say.
Re:Latest ChatGPT 4 System prompt (1,700 tokens) by therm0 on Wednesday February 07, 2024 @11:15AM (#39290337)
So when the context window rolls over, this system prompt is reinserted?
Re:Latest ChatGPT 4 System prompt (1,700 tokens) by wongarsu on Wednesday February 07, 2024 @11:31AM (#39290579)
I'd think of it more as keeping state in a separate object, and reassembling the prompt each time as system prompt + the most recent user/assistent conversation pairs + current user prompt. Then you can just shorten the conversation history in the middle to fit your context window. If you are fancy you add a summary of everything you have cut, but I'm not sure if ChatGPT does that.
Re:Latest ChatGPT 4 System prompt (1,700 tokens) by immibis on Wednesday February 07, 2024 @11:29AM (#39290541)
It's more likely that it truncates the user prompt.
Re:Latest ChatGPT 4 System prompt (1,700 tokens) by ShamelessC on Wednesday February 07, 2024 @02:55PM (#39293418)
Yes. It's present in every request made.