Skip to content

Improve the Chat Mode with some tricks and considerations #353

Closed
@Belluxx

Description

@Belluxx

I noticed that often the interactive mode (used as a chat with for example the chat-with-bob.txt initial prompt) fails due to LLaMA trying to escape the chat (mainly with the expression \end{code}).

To avoid that it is possible to pass the argument -r "\end{code}" but since the expression doesn't get removed from the chat, LLaMA interprets it as the end of the chat, and all the previous dialog context (including what's inside chat-with-bob.txt) gets lost and LLaMA starts to behave weirdly.

So it would be cool to have a --chat option that detects expressions like \end{code}, removing them from the context and forcefully appending User: at the end of the chat so that it can continue without losing context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions