Skip to content

confused about PendingChat.fork and system prompt vs user prompt #8

@evilsocket

Description

@evilsocket

Hi, I've started out from your bandit CTF example in order to create something slightly different and play with it. In the example, I see that there are two prompts, one referred as the system prompt which is used for the base chat object, and then the bigger state/context prompt that is used to fork the base PendingChat object (if I understood correctly).

According to the docs:

PendingChat.fork will clone the current pending chat and let you maintain both the new and original object for continued processing.

But it is not clear if the state prompt is added as a second system prompt, or as a user prompt.

In this piece of code, the get_prompt() return value would match the str type, in which case it seems like the context prompt is only passed as user prompt and not system. Am I correct? If that is the case, is this the desired behaviour? I'm curious if/how the system can improve if both prompts are provided as system prompts.

Thank you for your answer and great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions