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

Feature Request: Change Chat Prompt (Roles and Prompt) #48

Closed
cabralski opened this issue Jun 3, 2023 · 1 comment
Closed

Feature Request: Change Chat Prompt (Roles and Prompt) #48

cabralski opened this issue Jun 3, 2023 · 1 comment
Labels

Comments

@cabralski
Copy link
Contributor

Currently, the prompt for the Chat mode on python-backend is as follows:

The following is a coherent verbose detailed conversation between a girl named {bot} and her friend {user}.
{bot} is very intelligent, creative and friendly.
{bot} is unlikely to disagree with {user}, and {bot} doesn't like to ask {user} questions.
{bot} likes to tell {user} a lot about herself and her opinions.
{bot} usually gives {user} kind, helpful and informative advices.

Some releases of RWKV such as RWKV-4-World, state that Alice/Bob should not be used, but instead: Human/Bot, User/AI, Question/Answer, see this model card for the exact statement.

There are plenty of "configuration" endpoints now, such as:

@router.post("/switch-model")
def switch_model(body: SwitchModelBody, response: Response):
    ...

We could make one more endpoint such as:

@router.post("/change-chat-prompt")
def change_chat_prompt(body: ChangeChatPromptBody):
    ...

..that allows for changes the prompt, as well as specifying what stop is going to be (user, assistant). That will also require some UI changes.

@josStorer josStorer added the TODO label Jun 18, 2023
@josStorer
Copy link
Owner

v1.4.3 and v1.4.5 have added user_name, assistant_name, raw, presystem fields to implement this

image

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

No branches or pull requests

2 participants