AI comment moderator

This is a submission for the Cloudflare AI Challenge.

What I Built

I built a comment system moderated by AI, eliminating the need for a human intervention and saving countless hours on reading useless comments full of spam or profanity.

Demo

https://cf-challenge-comment-system.pages.dev/

My Code

https://github.com/Xubaer/cf-challenge-comment-system

Journey

I never knew how powerful cloudflare really can be and it has pages and workers functionality.
I used cloudflare Ai to moderate comments from users using two different models, one to moderate the comments and the other for sentiment analysis which helps showing the up/down vote counts 😀
I hope to make this as a white label project which can be integrated and injected into different websites and apps. It would work as plug and play.

Multiple Models and/or Triple Task Types
Used "@hf/thebloke/openhermes-2.5-mistral-7b-awq" to moderate comments and receive a json format about the comment.
"@cf/huggingface/distilbert-sst-2-int8" for sentiment analysis that helps me add count to the up/down votes for the overall comments.


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top