4 ms·
I am endlessly frustrated every day that this is not a thing yet. I also don't want to send all of my emails to OpenAI though.
by kaibee 3y ago
I am endlessly frustrated every day that this is not a thing yet. I also don't want to send all of my emails to OpenAI though.
- samus 3y agoI recently did a Kaggle experiment and finetuned a LLM to classify SMS as SPAM or HAM. It was not so difficult; following the text classification example in the Hugginface transformers docs was enough. Without trying hard at all, accuracy was above 90%. Impressive even though even the messages marked as HAM seemed to be quite trash. The model itself was small - few hundred million parameters only. Models of this size run well on CPUs and an even smaller might have workd too. And non-neural classifiers might also do fine. You could do something similar and unleash it on your mailbox. The tricky part are integrations. At work, I don't even bother since interacting with the email system there is way more tricky than with GMail.
- jart 3y agoYou can configure Postfix to filter content based on a shell script. https://www.postfix.org/FILTER_README.html https://www.postfix.org/FILTER_README.html You can turn the email into plain text from your shell script using links and then ask Mistral if it's spam or political: https://justine.lol/oneliners/#url https://justine.lol/oneliners/#url You can use the grammar flag to force Mistral to only provide a YES or NO answer, which is easy to check from your script using an IF statement. Then boom, no more spam or politics.