Have you taken a look at Agents? Perhaps the Forum Researcher or Forum Helper Agents would be a better fit, as they are tuned to work with the forum specifically. Or is that what you are already using?
Thanks for the question! Since you asked on a Discourse support channel, I’ll answer in the context of how language models power Discourse’s AI features — but let me know if you actually meant a general technical explanation of how LLMs work, and I can point you elsewhere for that.
Someone round here must know how that catch was made.
Although prompts can influence an agent’s behavior, they aren’t always reliable. I was able to trick the agent at ask.discourse.com into answering a few off-topic questions.
Yeah, after a conversation gets deep and you chain it, you can get it to keep on going. Not a worry for us as we host the models ourselves, so we don’t pay per token anyway. We also analyze all conversations on Ask daily and can ban any bad actors. The forum moderation flow is still the same.
If you want even more control than what the system prompt gives you, you can try some approaches:
Workflows
Our new workflow plugin would allow you to do a 2-pass on every message, first with an agent evaluating if a message should be replied to, then another conditionally replying.
Fine-tuned models
The most surefire way to control is to deploy a model that is actually trained with the behavior you want.
This is easy with Discourse AI, as we allow you to pick and choose LLMs for each agent.