Frustrations on AI spam detector

,

I’m trying to setup the AI spam detector for my own Discourse instance, but have several questions:

The system prompt of spam detector persona can’t be edited. I can create a new persona but there is no field to make Discourse know that it is going to be used as a spam detector?

I want to use Qwen3 as the LLM for the task. There is no preset for Qwen3 so I’m going to create a custom one. But there isn’t a Qwen3Tokenizer either. What does the tokenizer do here? Does QwenTokenizer work for Qwen3?

Or, is there an easier option that I can setup a webhook-like service and Discourse calls it on new topics / posts?

1 Like

Hi there, to answer your question:

From the docs:

Thanks, but I know what a tokenizer is. What I don’t know is what Discourse uses it for, and what would happen if I picked the wrong tokenizer? I don’t need a tokenizer to call an LLM anyway.

Can you try visiting this https://<your-site>/admin/plugins/discourse-ai/ai-spam - it should allow you to

  • select your persona
  • insert custom instructions and test against a post

Yup you can go ahead and do that, then run the “Test”

IIUC this instruction is concatenated to the system prompt instead of replacing it, making the prompt even longer and have mixed languages…

But passing the test doesn’t mean there is no problem. (FYI I haven’t fully setup the LLM yet; I tried the free Gemini service but got 429, so I’m trying to figure out how to integrate llama.cpp into Discourse now.)