Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System prompts supporting #33

Open
mccoysc opened this issue May 10, 2023 · 10 comments
Open

System prompts supporting #33

mccoysc opened this issue May 10, 2023 · 10 comments

Comments

@mccoysc
Copy link

mccoysc commented May 10, 2023

as the title

@Leask
Copy link
Owner

Leask commented May 10, 2023

Ask for more detail.

@mccoysc
Copy link
Author

mccoysc commented May 10, 2023

The request structure for any ChatGPT query is as follows: n user queries (with the role attribute set as "user") + n system prompts (with the role attribute set as "system").
System prompts are not visible to the user and do not count towards the token limit (ChatGPT has a token limit per query, where a token refers to a segmented word in a sentence).
If only user queries are submitted, ChatGPT will only use its known model and the user query to respond.
However, if previous user queries and ChatGPT's responses are submitted together as system prompts, ChatGPT will use the system prompts (such as previous conversation content) to respond, giving the impression that ChatGPT knows what the user has previously asked and how it has responded, avoiding inconsistencies.
Therefore, to achieve this effect, it is necessary to store all conversation content locally or elsewhere, and to provide the ability to reset the current or specified conversation,means "delete" the stored querys and responses

@mccoysc
Copy link
Author

mccoysc commented May 10, 2023

System prompts (i.e. content with the "system" role attribute) were designed by ChatGPT specifically for displaying prompt information, and there is no need to mix prompt information with user queries.

@Leask Leask changed the title conversation mode need to be added System prompts supporting May 10, 2023
@Leask
Copy link
Owner

Leask commented May 10, 2023

Yes, I have a local branch supported the System prompts. I will update this issue when the branch is fully ready. The problem is that in the real-world, the system prompt does not work well on ChatGPT 3.5. In the v4 engine, the system prompts work a lot better. But I still need v4 API access, so I did not thoroughly test the codes and get them ready.

@Leask
Copy link
Owner

Leask commented May 10, 2023

I will keep this open for tracking. Thanks.

@mccoysc
Copy link
Author

mccoysc commented May 10, 2023

Additionally, a toggle should be designed to allow users to choose between conversation mode or single query mode.

@mccoysc
Copy link
Author

mccoysc commented May 10, 2023

in conversation mode,first i query "2+3 equal what?" and then i ask "what's my last question?",chatGPT will know what i said.
but in non-conversation mode,chatGPT always do not know what is my last question.

@Leask
Copy link
Owner

Leask commented May 10, 2023

I don't think that should name conversation mode, but the system prompt will be supported. Please come back to this issue when it is ready.

@Leask
Copy link
Owner

Leask commented May 10, 2023

in conversation mode,first i query "2+3 equal what?" and then i ask "what's my last question?",chatGPT will know what i said. but in non-conversation mode,chatGPT always do not know what is my last question.

Yes.

@mccoysc
Copy link
Author

mccoysc commented May 10, 2023

I don't think that should name conversation mode, but the system prompt will be supported. Please come back to this issue when it is ready.

do not only "system promt",but add all user querys and chatGPT response to system promt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants