Debian Codegraph @

test/functional/configs/neural_llm.conf

raw
1 options = {
2 url_tld = "{= env.URL_TLD =}"
3 pidfile = "{= env.TMPDIR =}/rspamd.pid"
4 lua_path = "{= env.INSTALLROOT =}/share/rspamd/lib/?.lua"
5 filters = [];
6 explicit_modules = ["settings"];
7 }
8
9 logging = {
10 type = "file",
11 level = "debug"
12 filename = "{= env.TMPDIR =}/rspamd.log"
13 log_usec = true;
14 }
15 metric = {
16 name = "default",
17 actions = {
18 reject = 100500,
19 add_header = 50500,
20 }
21 unknown_weight = 1
22 }
23 worker {
24 type = normal
25 bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_NORMAL =}"
26 count = 1
27 task_timeout = 10s;
28 }
29 worker {
30 type = controller
31 bind_socket = "{= env.LOCAL_ADDR =}:{= env.PORT_CONTROLLER =}"
32 count = 1
33 secure_ip = ["127.0.0.1", "::1"];
34 stats_path = "{= env.TMPDIR =}/stats.ucl"
35 }
36
37 modules {
38 path = "{= env.TESTDIR =}/../../src/plugins/lua/"
39 }
40
41 lua = "{= env.TESTDIR =}/lua/test_coverage.lua";
42
43 neural {
44 rules {
45 default {
46 train {
47 learning_rate = 0.001;
48 max_trains = 1;
49 max_iterations = 250;
50 }
51 symbol_spam = "NEURAL_SPAM";
52 symbol_ham = "NEURAL_HAM";
53 ann_expire = 86400;
54 watch_interval = 0.5;
55 providers = [{ type = "llm"; model = "dummy-embed"; url = "http://127.0.0.1:18080"; weight = 1.0;
56 #reply_trim_mode = "replies"; # always|none|replies
57 }];
58 fusion { normalization = "none"; }
59 roc_enabled = false;
60 }
61 }
62 allow_local = true;
63 }
64
65 redis {
66 servers = "{= env.REDIS_ADDR =}:{= env.REDIS_PORT =}";
67 expand_keys = true;
68 }
69
70 lua = "{= env.TESTDIR =}/lua/neural.lua";