<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zubair Naseem</title>
    <description>The latest articles on DEV Community by Zubair Naseem (@xubaer).</description>
    <link>https://dev.to/xubaer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F209267%2Fa227099a-9b65-4e1e-9170-d37f29f92419.jpg</url>
      <title>DEV Community: Zubair Naseem</title>
      <link>https://dev.to/xubaer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xubaer"/>
    <language>en</language>
    <item>
      <title>AI comment moderator</title>
      <dc:creator>Zubair Naseem</dc:creator>
      <pubDate>Sun, 14 Apr 2024 20:41:37 +0000</pubDate>
      <link>https://dev.to/xubaer/ai-comment-moderator-1ano</link>
      <guid>https://dev.to/xubaer/ai-comment-moderator-1ano</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/devteam/join-us-for-the-cloudflare-ai-challenge-3000-in-prizes-5f99"&gt;Cloudflare AI Challenge&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://cf-challenge-comment-system.pages.dev/" rel="noopener noreferrer"&gt;https://cf-challenge-comment-system.pages.dev/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Xubaer/cf-challenge-comment-system" rel="noopener noreferrer"&gt;https://github.com/Xubaer/cf-challenge-comment-system&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;I never knew how powerful cloudflare really can be and it has pages and workers functionality.&lt;br&gt;
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 :D &lt;br&gt;
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.&lt;/p&gt;

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

</description>
      <category>cloudflarechallenge</category>
      <category>devchallenge</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
