aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/redis_scripts/bayes_learn.lua
Commit message (Collapse)AuthorAgeFilesLines
* [Fix] Increase/decrease hash_key value for tokens depending on is_unlearn aduernberger2024-04-181-2/+2
| | | | | | | | When relearning a message, this script is called twice: 1. With `is_unlearn` true and the old `is_spam` value 2. With `is_unlearn` false and the new `is_spam` value If `is_unlearn` is true, the code should not increase the value of the hash_key. Decreasing it ensures that it behaves like a fresh learn with the new is_spam value.
* [Fix] Fix storing of the bayes tokensVsevolod Stakhov2024-01-221-1/+1
|
* [Project] Implement text tokens storage on C++ sideVsevolod Stakhov2023-12-311-6/+8
|
* [Project] Add store tokens support in new bayes learnVsevolod Stakhov2023-12-311-1/+19
|
* [Project] Try to do strings concatenation in CVsevolod Stakhov2023-12-141-2/+1
|
* [Rework] Use strings for int64_tVsevolod Stakhov2023-12-081-2/+2
| | | | | | It seems there is no easy way to use int64 in Redis Lua, hence, we have to use strings. It's much more expensive but still some advantage over the previous schema.
* [Project] Add some basic learningVsevolod Stakhov2023-12-071-2/+2
|
* [Project] Add bayes learn scriptVsevolod Stakhov2023-12-071-0/+25