discord-ai-bot
discord-ai-bot copied to clipboard
SYSTEM="" Is prompted as a literal reply to the user
SYSTEM prompt is replied to the user with no context even when asked not to.
To Reproduce Steps to reproduce the behavior:
- Write on SYSTEM="DO NOT WRITE THIS you are an assistant"
- Use the .env system by marking USE_SYSTEM as true and USE_MODEL_SYSTEM as false
- npm run
- If you say something that the bot doesnt recognice properly, they will start prompting what you asked them not to prompt
Expected behavior Bot using SYSTEM prompt as INFO on how to act
Screenshots
Device
- OS: Windows 10
- Repo is latest (i downloaded as zip -> c6af204)
- Ollama version 0.1.29 (windows preview)
I experienced the same, however I think this is more due to the llm than the bot. If you use the bot system prompt feature, what is happening is just that you are sending that as a prompt, so there’s a chance that the llm will take it from the context window and spit it out.
I disabled the feature and instead rebuilt the model with my own system prompts using modelfiles, and since then I have never experienced this issue.
okok tysm
well i tried doing that but my bot now acts dry asf, like no personality at all, idk what that means
It means you have to enrich the system prompt in the modelfile. Also make sure you set USE_SYSTEM_PROMPT=TRUE in the bot and that you are running the new model you just created.
yeah
what model are you using? some people have had issues with some models but llama2 seems to work for me
I also cannot reproduce it (llama3). Closing for now