<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prakashperumal on Medium]]></title>
        <description><![CDATA[Stories by Prakashperumal on Medium]]></description>
        <link>https://medium.com/@prakashperumal123?source=rss-17086885373e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-Gm-fhjj3BWit3br</url>
            <title>Stories by Prakashperumal on Medium</title>
            <link>https://medium.com/@prakashperumal123?source=rss-17086885373e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:21:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prakashperumal123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Are We Seeing Diminishing Returns by Scaling LLMs, and Do We Need a New Architecture Beyond…]]></title>
            <link>https://medium.com/@prakashperumal123/are-we-seeing-diminishing-returns-by-scaling-llms-and-do-we-need-a-new-architecture-beyond-87c32adf4ccd?source=rss-17086885373e------2</link>
            <guid isPermaLink="false">https://medium.com/p/87c32adf4ccd</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[scalling-llm]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-bubble]]></category>
            <category><![CDATA[jepa]]></category>
            <dc:creator><![CDATA[Prakashperumal]]></dc:creator>
            <pubDate>Thu, 23 Apr 2026 10:02:34 GMT</pubDate>
            <atom:updated>2026-04-23T10:02:34.041Z</atom:updated>
            <content:encoded><![CDATA[<h3>Are We Seeing Diminishing Returns by Scaling LLMs, and Do We Need a New Architecture Beyond Transformers?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*UBDnVOVTMJ9sVBPQnwBFkw.jpeg" /></figure><h3><strong>Why we started building AI in the first place</strong></h3><p>Since the 1970s, we’ve been trying to build a system that stores and thinks like us, but with far better memory and processing speed. We tried to mimic the brain as closely as possible using electricity and semiconductors. That’s where neural networks came in, layers of nodes just like neurons, connected to each other. Based on input and output, the parameters change. It’s not fixed. It learns from data. But the problem was it needed enormous amounts of computing power and training data, and neither existed back then.</p><h3>The transformer changed everything</h3><p>Even when we had the compute and storage in the 2010s, we still didn’t know how to get a model to understand the context of each word well. That changed in 2017 when Google published a paper called Attention Is All You Need. The idea was to take one word and correlate it with every other word before it. Based on those weights, predict the next word. This model is called a transformer, and ChatGPT literally stands for Generative Pre-trained Transformer.</p><h3>How a transformer actually works</h3><p>Tokenisation is the first step. Every word or part of a word becomes a token. English has about 50,000 tokens.</p><p>Then each token gets converted into a vector, a point in a space with thousands of dimensions. We’re talking 12,000 plus. We can’t visualise this because we’re only wired for three.</p><p>Each vector then gets embedded with its position in the sentence using sine and cosine functions, so the model knows where each word sits. This is called positional encoding.</p><p>Then comes the attention block. Each vector gets updated based on the verb, the context, all the surrounding tokens. You can have 10 or more attention heads running in parallel, each picking up different relationships.</p><p>After that come the feed-forward layers. This is where all the information is actually stored and trained. The weights live here.</p><p>Finally the numbers get decoded back into words and the model predicts the next token. The same process applies to images, just split into pixels, coded as numbers, and processed the same way.</p><h3>Every company is doing the same thing</h3><p>Once the transformer worked, every company used the same basic blueprint: predict the next token better. The only differences are the attention mechanism and how the model gets fine-tuned with different prompts. The architecture is the same. The race is just about doing it at bigger scale with more data.</p><h3>The real limits of LLMs</h3><p>The context window is the first hard limit. Because everything runs as matrix multiplication, you can only focus on a fixed number of words at a time. Every time you call the model, the context is fresh. No persistent memory. And even within the context window it can lose track of things mid-conversation.</p><p>Because it processes token by token, it can’t back up if it goes wrong mid-thought and it can’t run multiple reasoning paths at once.</p><p>Everything is trained on words, but the world is not just words. A four-month-old child has already processed the equivalent of 4 trillion tokens just through what they’ve seen and heard, roughly matching the entire internet’s text data, and their brain isn’t predicting the next word.</p><h3>Why we are hitting diminishing returns</h3><p>LLMs are exceptionally good at storing and retrieving information when you ask the right question. But they’re not good at thinking or reasoning in the way we need them to. They can’t create something genuinely new. They can’t discover a scientific principle that wasn’t already in the training data.</p><p>From GPT-3 to GPT-5, the improvements have been real but the step change is shrinking. And right now most of these companies aren’t making money, because the scenarios where LLMs actually replace real work are narrower than the hype suggests. If we keep pushing the transformer architecture and the returns keep falling, we’re heading for an AI bubble, and when that bursts the economic fallout will be significant.</p><h3>What comes next — JEPA and world models</h3><p>JEPA stands for Joint Embedding Predictive Architecture. It comes from Yann LeCun and the Meta AI research team, and the core idea is fundamentally different from transformers.</p><p>A transformer is trained to predict the next token. JEPA doesn’t predict raw output at all. Instead it learns by predicting the representation of something, not the thing itself.</p><p>When you look at a room and someone covers part of it, you don’t reconstruct every pixel behind that cover. Your brain builds an internal model of what kind of thing is probably there based on everything you’ve understood about rooms. JEPA tries to do the same thing. It takes two parts of the same image or video, encodes both into abstract representations, and trains the model to predict one representation from the other. It never tries to reconstruct the actual pixels.</p><p>This matters because predicting pixels forces a model to memorise low-level details that don’t actually help it understand the world. JEPA skips that and pushes the model to learn structure, relationships, and concepts instead. It’s closer to how a child builds a mental model of gravity by dropping things, not by memorising every trajectory.</p><p>Transformers are passive. They learn from text written by humans describing the world. JEPA-style models are designed to be active learners that can build internal representations from raw experience, video, sensor data, physical interaction, not just language. That’s why LeCun calls this the path toward machines that actually understand the world rather than machines that are very good at pattern matching on text.</p><h3>The shift that actually matters</h3><p>JEPA is not a finished product. It’s a research direction. But it represents the kind of architectural rethink that’s actually needed. The LLM era gave us something genuinely useful and showed the world what neural networks can do at scale. The next step isn’t a bigger transformer. It’s a different question entirely. Instead of asking what word comes next, ask what the world looks like and how it works. That’s the shift that could actually get us past diminishing returns.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87c32adf4ccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an AI That Writes and Sends Personalised Emails Using Google Search and Gemini]]></title>
            <link>https://medium.com/@prakashperumal123/how-i-built-an-ai-that-writes-and-sends-personalised-emails-using-google-search-and-gemini-030edc9c8ff8?source=rss-17086885373e------2</link>
            <guid isPermaLink="false">https://medium.com/p/030edc9c8ff8</guid>
            <category><![CDATA[google-custom-search]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[google-gemini-ai]]></category>
            <dc:creator><![CDATA[Prakashperumal]]></dc:creator>
            <pubDate>Sat, 18 Oct 2025 11:14:22 GMT</pubDate>
            <atom:updated>2025-10-18T11:14:22.476Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last few days, I started working on a small side project — an AI tool that can write and send personalised emails automatically.</p><p>The idea was simple.<br> I already had a list of people and companies I wanted to contact. But writing each email manually takes a lot of time, and I didn’t want to send the same generic message to everyone.</p><p>So, I thought — what if I could use <strong>Google Search</strong> to learn about each company and then use <strong>Gemini AI</strong> to write a message that feels personal?</p><p>Here is the whole code which done it for me. Just a heads up The idea is given by me and code is written by chatgpt. So please don’t confuse your mind to figure out whether it is chatgpt ot not.</p><pre>import os<br>import smtplib<br>import google.generativeai as genai<br>from email.mime.text import MIMEText<br>from email.mime.multipart import MIMEMultipart<br>from googleapiclient.discovery import build<br><br># --- GOOGLE SEARCH ---<br>def google_search(query, api_key, cse_id, num=5):<br>    service = build(&quot;customsearch&quot;, &quot;v1&quot;, developerKey=api_key)<br>    res = service.cse().list(q=query, cx=cse_id, num=num).execute()<br>    return res.get(&quot;items&quot;, [])<br><br># --- FIND CONTACT INFO ---<br>def find_contact_email(company_name):<br>    query = f&quot;{company_name} manager email&quot;<br>    results = google_search(query, os.environ[&quot;GOOGLE_API_KEY&quot;], os.environ[&quot;GOOGLE_CSE_ID&quot;], num=5)<br>    snippets = &quot; &quot;.join([r.get(&quot;snippet&quot;, &quot;&quot;) for r in results])<br>    return snippets<br><br># --- GENERATE EMAIL CONTENT USING GEMINI ---<br>def generate_email_content(company_name, contact_context):<br>    genai.configure(api_key=os.environ[&quot;GOOGLE_API_KEY&quot;])<br>    model = genai.GenerativeModel(&quot;gemini-2.0-flash&quot;)<br><br>    prompt = f&quot;&quot;&quot;<br>    keep the whole mail like huma written with simple words and friendly and funny<br>    You are an expert marketing writer creating a fully ready-to-send professional outreach email.<br><br>Context:<br>- Your name is Prakash Kaliyaperumal from *****.<br>- your company* provides what your company does*.<br>- Target company: {company_name}<br>- Public information found: {contact_context}<br><br>Write a concise, natural, and personalized outreach email.<br>It should:<br>- give introduction about what the company does by googles research<br>---give detailed information about the company<br>- Use the company name naturally.<br>- Not include any placeholders like [Recipient Name], [Your Name], or [Your Website].<br>- Sound human and warm, not robotic.<br>- Include a clear subject line and body.<br><br>Output only the final email text, no brackets or extra notes.<br>    &quot;&quot;&quot;<br>    response = model.generate_content(prompt)<br>    return response.text.strip()<br><br># --- SEND EMAIL ---<br>def send_email(to_email, subject, body):<br>    msg = MIMEMultipart()<br>    msg[&quot;From&quot;] = os.environ[&quot;GMAIL_USER&quot;]<br>    msg[&quot;To&quot;] = to_email<br>    msg[&quot;Subject&quot;] = subject<br><br>    msg.attach(MIMEText(body, &quot;plain&quot;))<br><br>    with smtplib.SMTP_SSL(&quot;smtp.gmail.com&quot;, 465) as server:<br>        server.login(os.environ[&quot;GMAIL_USER&quot;], os.environ[&quot;GMAIL_PASS&quot;])<br>        server.send_message(msg)<br>    print(f&quot;✅ Email sent to {to_email}&quot;)<br><br># --- MAIN LOGIC ---<br>def contact_company(company_name, receiver_email):<br>    print(f&quot;🔍 Searching contact info for {company_name}...&quot;)<br>    context = find_contact_email(company_name)<br><br>    print(&quot;🧠 Generating email content...&quot;)<br>    email_body = generate_email_content(company_name, context)<br><br>    print(&quot;📤 Sending email...&quot;)<br>    send_email(receiver_email, f&quot;Support for {company_name}&quot;, email_body)<br><br>    print(&quot;✅ Process completed.&quot;)<br><br><br># Example<br><br></pre><p>Step 1: Getting Information About the Company</p><p>The first step was to find what each company does.<br> I used the <strong>Google Custom Search API</strong>, which lets you run searches programmatically.</p><p>For example, if I want to email Go-Pak Group, the script searches for:</p><pre>Go-Pak Group site:go-pak.co.uk OR Go-Pak Group news</pre><p>Step 2: Using Gemini to Write the Email</p><p>Once the search info is ready, I send it to <strong>Google’s Gemini model</strong> (I used gemini-2.0-flash).</p><p>I ask it to:</p><pre>“Write a short, professional outreach email from KPSD Services introducing our <br>AI Consulting and Managed Services expertise. <br>Keep the tone friendly and helpful.”</pre><p>Step 3: Sending the Email</p><p>To complete the flow, I connected the script to <strong>Gmail SMTP</strong>.<br> Once Gemini finishes writing, it automatically sends the message through my Gmail account.</p><p>For security, I use environment variables like:</p><pre>GOOGLE_API_KEY  <br>GOOGLE_CSE_ID  <br>GMAIL_USER  <br>GMAIL_PASS</pre><h3>Full Workflow Overview</h3><ol><li>Input: company name + contact email</li><li>Google Custom Search finds company info</li><li>Gemini writes a personalised email</li><li>Gmail sends the message automatically</li></ol><p>So with one function call like this:</p><pre>contact_company(&quot;Go-Pak Group&quot;, &quot;manager@acme.com&quot;)</pre><p>What’s Next</p><p>This project already saves me a lot of time, but it’s only the beginning.<br> Next, I plan to connect it with a <strong>Google Sheet</strong> or a <strong>HubSpot CRM export</strong>, so it can automatically send personalised emails to a whole list of contacts.</p><p>I’m also exploring ways to let Gemini analyse LinkedIn pages, recent news, or company updates — to make every email even more specific and relevant.</p><h3>Final Thoughts</h3><p>This small experiment showed how easy it is to combine APIs like <strong>Google Search</strong>, <strong>Gemini</strong>, and <strong>Gmail</strong> to create something powerful.</p><p>It’s not just about sending emails — it’s about using AI to understand context and make communication feel more human.</p><p>Even with a few lines of code, AI can now do the research, write the message, and send it — all in a few seconds.</p><p>That’s the future of outreach, and this is just the start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=030edc9c8ff8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>