<?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: rishisingh007</title>
    <description>The latest articles on DEV Community by rishisingh007 (@rishisingh007).</description>
    <link>https://dev.to/rishisingh007</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%2F393416%2F42ee0c6c-4ac8-4d38-83e9-9bf069a2478c.png</url>
      <title>DEV Community: rishisingh007</title>
      <link>https://dev.to/rishisingh007</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rishisingh007"/>
    <language>en</language>
    <item>
      <title>From Prompt Perfection to Iteration: The New Way to Use AI as a Developer</title>
      <dc:creator>rishisingh007</dc:creator>
      <pubDate>Tue, 19 Aug 2025 10:46:40 +0000</pubDate>
      <link>https://dev.to/rishisingh007/from-prompt-perfection-to-iteration-the-new-way-to-use-ai-as-a-developer-1i59</link>
      <guid>https://dev.to/rishisingh007/from-prompt-perfection-to-iteration-the-new-way-to-use-ai-as-a-developer-1i59</guid>
      <description>&lt;p&gt;For years, people believed that writing a perfect prompt was the key to getting value out of AI tools like ChatGPT or Claude. But today’s reality is very different, with everyday advances in AI capabilities.&lt;/p&gt;

&lt;p&gt;Modern AI models are much more capable, and we get to know this once we start using them. Even basic prompts often return production-quality results. Let us use two different approaches to reach to desired results. First we will start with a basic prompt and then refine it with next prompt, and record the result. In second approach we will provide full requirement details in the first prompt itself and take the results. Then compare the results of two approaches. &lt;/p&gt;

&lt;p&gt;Let us start with our first approach. &lt;/p&gt;

&lt;h2&gt;
  
  
  First Approach
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GPT Prompt:&lt;/strong&gt; Write a function to check if a number is prime.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The result code in Python:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def is_prime(n: int) -&amp;gt; bool:
    """Check if a number is prime."""
    if n &amp;lt;= 1:
        return False
    if n &amp;lt;= 3:
        return True
    if n % 2 == 0 or n % 3 == 0:
        return False

    # Check divisibility up to sqrt(n)
    i = 5
    while i * i &amp;lt;= n:
        if n % i == 0 or n % (i + 2) == 0:
            return False
        i += 6
    return True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at the code is is already optimized code without ever mentioning in the prompt. Now let us ask GPT to give code for very large numbers in the next prompt to refine our result. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GPT Prompt:&lt;/strong&gt; Make it efficient for very large numbers and suggest if I should use probabilistic methods.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The result code below:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random

def is_probable_prime(n: int, k: int = 20) -&amp;gt; bool:
    """Miller-Rabin primality test with k iterations."""
    if n &amp;lt; 2:
        return False
    # Small primes
    for p in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]:
        if n % p == 0:
            return n == p

    # Write n-1 as d*2^s
    s, d = 0, n - 1
    while d % 2 == 0:
        s += 1
        d //= 2

    # Witness loop
    for _ in range(k):
        a = random.randrange(2, n - 1)
        x = pow(a, d, n)
        if x == 1 or x == n - 1:
            continue
        for _ in range(s - 1):
            x = pow(x, 2, n)
            if x == n - 1:
                break
        else:
            return False
    return True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Second approach
&lt;/h2&gt;

&lt;p&gt;Now let us combine above two prompts into one, thus making it a complex prompt first time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GPT Prompt:&lt;/strong&gt; Write a function to check if a number is prime. Make it efficient for very large numbers and suggest if I should use probabilistic methods.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The result code below:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random

def is_prime_miller_rabin(n: int, k: int = 10) -&amp;gt; bool:
    """Miller-Rabin primality test. 
       k = number of rounds (higher = more accuracy)."""
    if n &amp;lt; 2:
        return False
    if n in (2, 3):
        return True
    if n % 2 == 0:
        return False

    # Write n-1 as 2^r * d
    r, d = 0, n - 1
    while d % 2 == 0:
        r += 1
        d //= 2

    # Witness loop
    for _ in range(k):
        a = random.randrange(2, n - 1)
        x = pow(a, d, n)  # a^d % n
        if x == 1 or x == n - 1:
            continue
        for _ in range(r - 1):
            x = pow(x, 2, n)
            if x == n - 1:
                break
        else:
            return False
    return True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Observation:&lt;/strong&gt; Look at the result that we got when started with basic prompt and refined the result to suit our expectations and when we sent a complex two sentence prompt, the final output is identical (except for function name). &lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;Old belief: You must write perfect prompts, always with relevant context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New reality:&lt;/strong&gt; AI is smarter by default. Even basic prompts are solid, and you can add context iteratively to get desired results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;True superpower:&lt;/strong&gt; Iterating like you would with a human team mate — refine, adjust, collaborate.&lt;/p&gt;

&lt;p&gt;So do not stress too much over “prompt hacks.” Start simple, then iterate.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Real AI vs. Automation: What Developers Need to Know</title>
      <dc:creator>rishisingh007</dc:creator>
      <pubDate>Sat, 02 Aug 2025 07:16:00 +0000</pubDate>
      <link>https://dev.to/rishisingh007/real-ai-vs-automation-what-developers-need-to-know-3526</link>
      <guid>https://dev.to/rishisingh007/real-ai-vs-automation-what-developers-need-to-know-3526</guid>
      <description>&lt;p&gt;&lt;strong&gt;As AI continues to dominate headlines, more and more products are marketing themselves as “AI-powered” — from productivity tools to CRMs, chatbots to ecommerce platforms. But when you look under the hood, many of these so-called “AI features” are little more than automated workflows or scheduled scripts.&lt;br&gt;
So it is the time that we ask the hard question: What really counts as AI, and what is just an automation?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Overuse of “AI”&lt;/strong&gt;&lt;br&gt;
Today, you’ll find companies claiming to use AI for things like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sending a discount offer when sales drop below a threshold.&lt;/li&gt;
&lt;li&gt;Triggering an alert when stock is low or creating Purchase order.&lt;/li&gt;
&lt;li&gt;Auto-sending a WhatsApp message after a payment fails.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are useful features, but they are not artificial intelligence. They are plain IF-THEN rules in a computer program, scheduled logic/cron-jobs, or filters that run at set times or conditions.&lt;/p&gt;

&lt;p&gt;This is automation. And there’s nothing wrong with it, but we shall not mislabel it as “AI” to ride the hype.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Real AI?
&lt;/h2&gt;

&lt;p&gt;True AI, especially the kind that powers modern breakthroughs, includes technologies like:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;LLMs (Large Language Models) : like GPT, Claude, or Mistral&lt;/li&gt;
&lt;li&gt;Generative AI : text, image, video, audio generation&lt;/li&gt;
&lt;li&gt;Machine Learning: models that learn from data patterns&lt;/li&gt;
&lt;li&gt;Computer Vision : models that interpret visual data&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What sets real AI apart?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real AI does at least one of the following:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Understands messy, unstructured input&lt;/li&gt;
&lt;li&gt;Learns or adapts from new patterns&lt;/li&gt;
&lt;li&gt;Generates context-aware output&lt;/li&gt;
&lt;li&gt;Infers new knowledge insights into data based on interrelationship&lt;/li&gt;
&lt;li&gt;Perform data summarization&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Automation vs AI: A Clear Comparison
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmxynkyuw9rxiins3xp8b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmxynkyuw9rxiins3xp8b.jpg" alt=" " width="738" height="388"&gt;&lt;/a&gt;&lt;br&gt;
Automation is powerful, reliable, fast, and rule-based. But AI is much beyond these rules. For instance, it can reason, infer, summarise and adapt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why It Matters
&lt;/h2&gt;

&lt;p&gt;Calling everything AI is more than just misleading as it affects:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;User trust: When people expect intelligence and see simple triggers, trust is lost.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Team clarity: Developers, PMs, and stakeholders can misunderstand what’s actually being built.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Funding misuse: Investors may fund startups thinking they’re buying deep tech when it’s just logic wrapped in buzzwords.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your product uses GPT or other LLMs to summarize contracts, generate content, or answer questions in context — that is real AI. If it just does things on a timer or after a condition is met, that is plain logic. It is useful, but let’s call it what it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where AI Should Be Used
&lt;/h2&gt;

&lt;p&gt;Instead of forcing AI into every feature, let’s focus on where it really adds value:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Document understanding (contracts, policies, research, legal)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Customer service (contextual replies, not just question answer pair responses)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Summarization and analysis of text or numerical data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Personalized content generation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Intelligent search over data&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In these areas, AI is not just a marketing layer, it solves the real business problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary and Final Thoughts
&lt;/h2&gt;

&lt;p&gt;AI is transforming the software landscape, but let us not dilute its meaning. Not every useful feature is intelligent. And not every intelligent type looking tool is using AI, it could just be a plain automation based on plain software logical steps.&lt;/p&gt;

&lt;p&gt;We as builders, founders, and developers, we have responsibility to our users and to ourselves, to stay honest and clear.&lt;/p&gt;

&lt;p&gt;Let automation do what it is good at, and let AI get it’s due respect where it makes a difference.&lt;/p&gt;

&lt;p&gt;Written by : Rishi Pal Singh&lt;/p&gt;

&lt;p&gt;Please feel free to share your thoughts on this, as where have you seen “fake AI” being hyped? And where do you think real AI adds the value?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connect with me on my LinkedIn&lt;/strong&gt;: &lt;a href="http://www.linkedin.com/in/rishi-singh-b8674751" rel="noopener noreferrer"&gt;www.linkedin.com/in/rishi-singh-b8674751&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
    </item>
    <item>
      <title>AI Ticket Summarizer: How to Add AI Features to Your Web or SaaS App (Without Training a Model)</title>
      <dc:creator>rishisingh007</dc:creator>
      <pubDate>Fri, 25 Jul 2025 01:25:23 +0000</pubDate>
      <link>https://dev.to/rishisingh007/ai-ticket-summarizer-how-to-add-ai-features-to-your-web-or-saas-app-without-training-a-model-242l</link>
      <guid>https://dev.to/rishisingh007/ai-ticket-summarizer-how-to-add-ai-features-to-your-web-or-saas-app-without-training-a-model-242l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Imagine your support dashboard could instantly condense lengthy tickets into sharp summaries — without hiring extra staff or writing any AI models from scratch. Here’s how to make it real.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🔍 The Problem
&lt;/h2&gt;

&lt;p&gt;Customer support teams often deal with long, detailed tickets. Developers and product managers must scan multiple conversations to understand what’s going on. This wastes time and slows decision-making.&lt;/p&gt;

&lt;p&gt;What if your system could summarize these tickets using AI, instantly?&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ The Solution: Plug-in AI Ticket Summarizer API
&lt;/h2&gt;

&lt;p&gt;Using just Node.js + Express, and integrating with OpenAI or OpenRouter, I built a minimalistic, ready-to-use backend that:&lt;/p&gt;

&lt;h2&gt;
  
  
  🔁 Accepts long ticket text via a POST request
&lt;/h2&gt;

&lt;p&gt;✂️ Returns a short, intelligent summary using gpt-3.5, gpt-4, or mistral&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚙️ Works with either OpenAI or OpenRouter.ai
&lt;/h2&gt;

&lt;p&gt;🔐 API-key protected, portable, and extensible&lt;br&gt;
No frontend? No problem. You can call this API from your own app, chatbot, CRM, or even a spreadsheet tool.&lt;/p&gt;
&lt;h2&gt;
  
  
  🚀 Quick Demo
&lt;/h2&gt;

&lt;p&gt;Here’s a sample cURL request: (remove back slash and new line while running on command prompt)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -X POST http://localhost:3000/summarize \
  -H "Content-Type: application/json" \
  -d '{"ticket": "Hi team, the dashboard takes 30+ seconds to load after the update. Blocking client reporting. Tried cache clearing but didn’t help."}'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  And response:
&lt;/h2&gt;

&lt;p&gt;{&lt;br&gt;
  "summary": "Dashboard is very slow after update, affecting reporting. Issue confirmed by multiple users."&lt;br&gt;
}&lt;/p&gt;

&lt;h2&gt;
  
  
  🧩 Tech Stack:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Node.js + Express&lt;/li&gt;
&lt;li&gt;OpenAI API or OpenRouter (fallback support)&lt;/li&gt;
&lt;li&gt;.env file for secrets&lt;/li&gt;
&lt;li&gt;Supports both gpt-3.5-turbo and open-source models like mistral-7b-instruct&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🛠 Setup in 2 Minutes
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/rishisingh007/ai-ticket-summarizer
cd ai-ticket-summarizer
npm install
cp .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Then choose either:
&lt;/h2&gt;

&lt;h1&gt;
  
  
  Use OpenAI (needs API key)
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;node index.js&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Or use OpenRouter (free options available)
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;node index-openrouter.js&lt;/code&gt;&lt;br&gt;
More setup details in the README: &lt;a href="https://github.com/rishisingh007/ai-ticket-summarizer/blob/main/README.md" rel="noopener noreferrer"&gt;https://github.com/rishisingh007/ai-ticket-summarizer/blob/main/README.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2u89ozb8tuhzyl5dn4bv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2u89ozb8tuhzyl5dn4bv.jpg" alt=" " width="777" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🧩 How This Works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;User submits ticket text&lt;/li&gt;
&lt;li&gt;Backend sends it to OpenAI GPT&lt;/li&gt;
&lt;li&gt;Prompt asks: “Summarize this ticket briefly”&lt;/li&gt;
&lt;li&gt;AI returns a clean summary&lt;/li&gt;
&lt;li&gt;Frontend shows the output&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔄 Coming soon:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🌐 React frontend to upload batches of tickets&lt;/li&gt;
&lt;li&gt;💾 Export summaries to file or DB&lt;/li&gt;
&lt;li&gt;⚠️ Auto fallback if OpenAI quota fails&lt;/li&gt;
&lt;li&gt;📬 Slack/email integration for auto-posting&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  📦 Why This Is Useful
&lt;/h2&gt;

&lt;p&gt;If you’re a developer or team lead:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🎯 Add AI summarization to your support portal or ERP in &amp;lt;10 minutes&lt;/li&gt;
&lt;li&gt;🧪 Great for experiments and proof-of-concept demos&lt;/li&gt;
&lt;li&gt;🛡️ Fully local, secure, and customizable&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  👨‍💻 About the Author
&lt;/h2&gt;

&lt;p&gt;I’m Rishi Pal Singh, a Director-level technologist and builder of AI-integrated enterprise tools.&lt;/p&gt;

&lt;p&gt;🔗 LinkedIn — &lt;a href="https://www.linkedin.com/in/rishi-singh-b8674751" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/rishi-singh-b8674751&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;💻 GitHub — rishisingh007&lt;/p&gt;

</description>
      <category>ai</category>
      <category>openai</category>
      <category>openrouter</category>
      <category>gpt4</category>
    </item>
  </channel>
</rss>
