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.
I noticed that often the interactive mode (used as a chat with for example the
chat-with-bob.txtinitial 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 insidechat-with-bob.txt) gets lost and LLaMA starts to behave weirdly.So it would be cool to have a
--chatoption that detects expressions like\end{code}, removing them from the context and forcefully appendingUser:at the end of the chat so that it can continue without losing context.