<?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 Palak Jain on Medium]]></title>
        <description><![CDATA[Stories by Palak Jain on Medium]]></description>
        <link>https://medium.com/@jainpalak9509?source=rss-e16e3979a168------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*adu63z2QE4v0iQqV</url>
            <title>Stories by Palak Jain on Medium</title>
            <link>https://medium.com/@jainpalak9509?source=rss-e16e3979a168------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:04:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jainpalak9509/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[The Story of ELIZA, the World’s First Chatbot (1966)]]></title>
            <link>https://medium.com/@jainpalak9509/the-story-of-eliza-the-worlds-first-chatbot-1966-e6dcab4c6aba?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6dcab4c6aba</guid>
            <category><![CDATA[eliza-chatbot]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 05:17:13 GMT</pubDate>
            <atom:updated>2025-08-21T05:17:13.331Z</atom:updated>
            <content:encoded><![CDATA[<p>When people think of chatbots today, they imagine Siri, Alexa, or advanced AI assistants like ChatGPT. But the <strong>first chatbot in history</strong> wasn’t powered by machine learning or neural networks. It was called <strong>ELIZA</strong>, created in the 1960s by MIT computer scientist <strong>Joseph Weizenbaum</strong>.</p><p>ELIZA was a simple program, but it changed the course of <strong>artificial intelligence history</strong>, proving that computers could simulate human-like conversations. More importantly, it revealed how humans emotionally respond to machines something we still see today with modern AI chatbots.</p><h3>Who Created ELIZA, the First Chatbot?</h3><p>The <strong>ELIZA chatbot</strong> was built in <strong>1966</strong> at the MIT Artificial Intelligence Laboratory by <strong>Joseph Weizenbaum</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*NZt704DxWPIYww8Q" /><figcaption><strong>Joseph Weizenbaum</strong></figcaption></figure><p>Weizenbaum named it after <strong>Eliza Doolittle </strong>from <strong><em>Pygmalion</em></strong><em> </em>play, highlighting how the program could “learn to speak” in a convincing way without truly understanding. His intention was to demonstrate the <strong>limitations of natural language processing</strong>. Ironically, ELIZA became famous not for its weaknesses, but for how convincingly human it felt to users.</p><h3>How Did ELIZA Work?</h3><p>Unlike today’s chatbots, which use <strong>large language models (LLMs)</strong> and deep learning, ELIZA was a <strong>rule-based chatbot</strong>. It relied on three main mechanisms:</p><ol><li><strong>Keyword Spotting</strong><br>ELIZA scanned the user’s text for keywords such as <em>mother</em>, <em>feel</em>, <em>dream</em>, or <em>family</em>. Each keyword had a <strong>priority level</strong> and triggered specific response templates.</li><li><strong>Decomposition Rules</strong><br>ELIZA used <strong>decomposition patterns</strong> to break apart the user’s sentence. For example:</li></ol><pre>(0 YOU ARE 0) → (WHAT MAKES YOU THINK I AM 2?)</pre><p>Here, 0 is a wildcard that captures extra words.<br>Input: <em>“You are not helpful.”<br></em>Output: <em>“WHAT MAKES YOU THINK I AM NOT HELPFUL?”</em></p><p>3. <strong>Reassembly Rules</strong><br>Once the input was decomposed, ELIZA <strong>reassembled</strong> the captured words into a response template. This gave the illusion of a personalized reply.</p><p>4. <strong>Fallback Prompts</strong><br>When no keywords matched, ELIZA defaulted to generic responses like:<br><em>* “Please go on.”<br>* “Tell me more about that.”<br>* “Why do you say that?”</em></p><p>This ensured conversations flowed, even when ELIZA didn’t understand.</p><h3>The DOCTOR Script: Why ELIZA Felt So Real</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*Bfs7FTaMzckeuIGN.png" /><figcaption>ELIZA chat as Psychotherapist</figcaption></figure><p>The most famous version of ELIZA was the <strong>DOCTOR script</strong>, which simulated a Rogerian psychotherapist. Rogerian therapy is based on <strong>non-directive questioning</strong>, reflecting the patient’s words back to them. This made ELIZA’s keyword-based replies surprisingly convincing.</p><p>Example:</p><ul><li>User: <em>“I feel sad.”</em></li><li>ELIZA: <em>“Do you often feel sad?”</em></li><li>User: <em>“My mother criticizes me a lot.”</em></li><li>ELIZA: <em>“TELL ME MORE ABOUT YOUR MOTHER.”</em></li></ul><p>For many users, this interaction felt deeply personal, even though the program had <strong>no memory or true understanding</strong>.</p><h3>Why ELIZA Was Revolutionary?</h3><p>ELIZA was groundbreaking for several reasons:</p><ol><li><strong>First AI Chatbot:</strong> It was the first time a computer convincingly simulated conversation.</li><li><strong>Human-Computer Interaction: </strong>ELIZA showed that language could be an interface, inspiring future chatbots.</li><li><strong>The ELIZA Effect: </strong>People projected emotions and intelligence onto the program, forgetting it was just pattern matching.</li></ol><h3>Technical Limitations of ELIZA</h3><p>From a modern <strong>chatbot development</strong> perspective, ELIZA had many limitations:</p><ul><li>❌ <strong>No memory</strong> of past conversations.</li><li>❌ <strong>No semantics</strong> — it didn’t understand meaning, just words.</li><li>❌ <strong>Brittle rules</strong> — unusual phrasing often broke the system.</li><li>❌ <strong>Script dependency</strong> — without the DOCTOR script, it was far less convincing.</li></ul><h3>Did ELIZA pass the Turing Test?</h3><p>The creation of ELIZA also revived discussions about the <strong>Turing Test</strong>, proposed by Alan Turing in 1950. The Turing Test is a thought experiment that asks: <em>Can a machine’s responses be indistinguishable from a human’s in conversation?</em></p><p><strong>ELIZA didn’t pass the Turing test. </strong>While ELIZA was far too simple to pass the test, it demonstrated how easily humans could be fooled into perceiving intelligence. Many users forgot they were speaking to a program, showing that the <strong>illusion of understanding</strong> was sometimes enough to create a sense of intelligence.<br>It didn’t think. It didn’t understand. But it <strong>felt human enough</strong> that people trusted it, confided in it, and sometimes forgot it was a machine.</p><h3>Restoration of ELIZA’s Code:</h3><p>For decades, Weizenbaum’s original ELIZA code (written in MAD‑SLIP ) was believed lost. In <strong>2021</strong>, <strong>Jeff Shrager</strong>, a cognitive scientist at Stanford, and <strong>Myles Crowley</strong>, an MIT archivist, discovered the long-lost printouts in MIT’s archives.</p><p>In <strong>December 21, 2024</strong>, a multidisciplinary team — including <strong>Rupert Lane, Anthony Hay, Arthur Schwarz, David M. Berry, and Jeff Shrager </strong>had <strong>reanimated ELIZA</strong>. They manually transcribed and debugged about 2,600 lines of printout, reconstructed missing functions, and ran the original code on a reconstructed <strong>MIT CTSS</strong> (Compatible Time-Sharing System) via an <strong>IBM 7094 emulator.</strong></p><p><a href="https://arxiv.org/html/2501.06707v1">ELIZA Reanimated: The world&#39;s first chatbot restored on the world&#39;s first time sharing system</a></p><p>Even after restoration, ELIZA’s limitations remained same.</p><p><a href="https://www.instagram.com/circuminds.ai">https://www.instagram.com/circuminds.ai</a></p><p>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way, perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6dcab4c6aba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building “AI Study Buddy”: An AI-Powered Tool for Learning, Quizzing, and Flashcards]]></title>
            <link>https://medium.com/@jainpalak9509/building-ai-study-buddy-an-ai-powered-tool-for-learning-quizzing-and-flashcards-d0821106444f?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0821106444f</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[gpt-5]]></category>
            <category><![CDATA[studybuddyai]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[streamlit]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 03:36:54 GMT</pubDate>
            <atom:updated>2025-08-14T00:21:10.291Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of digital education, <strong>AI-powered study tools</strong> are transforming how learners interact with content. I recently built a small project called <strong>AI Study Buddy</strong> to demonstrate how AI models like <strong>OpenAI’s GPT-5 </strong>combined with the lightweight Python framework <strong>Streamlit</strong> can be leveraged for educational purposes. It’s a lightweight, easy-to-use app that provides three core features:</p><ul><li><strong>Ask any question</strong> and get instant, accurate answers on any topic.</li><li><strong>Generate customized quizzes</strong> to test your knowledge on specific subjects.</li><li><strong>Create flashcards automatically</strong> for quick revision and memory retention.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*r4LqiAclOiitR7m0PjV6ug.png" /><figcaption>AI Study Buddy- User Interface</figcaption></figure><p>Though this is a simple demo project, it highlights practical ways to integrate powerful AI models using <strong>Streamlit</strong> as a web interface and GPT-5 as the backend. <br>This article explains the technical details of building this AI study tool and how you can create similar applications to enhance learning experiences using <strong>AI and natural language processing (NLP)</strong>.</p><h3>Technical Architecture: How AI Study Buddy Works</h3><p>At a high level, the architecture combines:</p><ul><li><strong>Frontend:</strong> Streamlit for a simple interactive UI, allowing users to interact seamlessly.</li><li><strong>Backend:</strong> OpenAI GPT-5 API toprocesses requests and generates content.</li><li><strong>Programming Language:</strong> Python 3.x, integrating API calls and UI.</li><li><strong>The workflow:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*ZIfWVqvvegO0jXGq6rZdkQ.png" /><figcaption>The workflow</figcaption></figure><p><strong>User Input:</strong> The user selects a mode (Q&amp;A, Quiz, Flashcards) and provides a question or topic via Streamlit’s UI components.</p><p><strong>Prompt Construction:</strong> Depending on the selected mode, the system dynamically constructs tailored prompts designed to elicit structured responses from GPT-5.</p><p><strong>API Request:</strong> The prompt is sent to the OpenAI GPT-5 API using the Python SDK’s chat completion endpoint.</p><p><strong>Response Handling:</strong> The raw text response is parsed and formatted appropriately for display (e.g., questions/options for quizzes, Q&amp;A pairs for flashcards).</p><p><strong>Display:</strong> Results are rendered on the Streamlit web page.</p><h3>Prompt Engineering for Three Core Features</h3><p>The key to getting high-quality outputs from GPT-5 is <strong>careful prompt design</strong>. Here’s how prompts differ by feature:</p><ol><li>Question Answering Mode: Simple direct prompts asking GPT-5 to answer the user’s question clearly and succinctly.<br><em>prompt — f”Answer the following student question clearly:\n{question}&quot;</em></li><li>Quiz Generation Mode: Prompts instruct GPT-5 to create multiple-choice questions with labeled options (A-D) and indicate correct answers explicitly. This ensures easier parsing and presentation in the UI.<br><em>prompt: f”Generate 5 multiple choice questions on the topic: {topic}. “<br> “For each question, provide 4 options labeled A, B, C, D and indicate the correct answer after \n .&quot;</em></li><li>Flashcard Generation mode: Prompts ask for a list of Q&amp;A pairs formatted with clear labels for easy display as flashcards.<br><em>prompt: f”Create 5 flashcards with question and answer pairs on the topic: {topic}.\n”<br> “Format as:\nQ: question\nA: answer”</em></li></ol><p>Here is a snippet of the core code calling GPT-5 API:</p><pre>from openai import OpenAI<br><br>client = OpenAI(api_key=&quot;YOUR_API_KEY&quot;)<br><br>def generate_response(prompt: str) -&gt; str:<br>    response = client.responses.create(<br>        model=&quot;gpt-5&quot;,<br>        input= input_prompt<br>    )<br>    return response</pre><p>This function is called with different prompts based on user selection.</p><p>Functions for all three features API call:</p><pre>def generate_quiz(topic, openai_api_key):<br>    prompt = (<br>        f&quot;Generate 5 multiple choice questions on the topic: {topic}. &quot;<br>        &quot;For each question, provide 4 options labeled A, B, C, D and indicate the correct answer after \n&quot;<br>    )<br>    client = OpenAI(api_key = openai_api_key)<br>    response = client.responses.create(<br>        model= &quot;gpt-5&quot;,<br>        input= prompt)<br><br>    cleaned_res = response.output_text.strip().split(&quot;\n\n&quot;)<br><br>    return cleaned_res<br><br>def generate_flashcards(topic, openai_api_key):<br>    prompt = (<br>        f&quot;Create 5 flashcards with question and answer pairs on the topic: {topic}.\n&quot;<br>        &quot;Format as:\nQ: question\nA: answer&quot;<br>    )<br>    client = OpenAI(api_key = openai_api_key)<br>    response = client.responses.create(<br>    model= &quot;gpt-5&quot;,<br>    input= prompt<br>    )<br><br>    cleaned_res = response.output_text.strip().split(&quot;\n\n&quot;)<br>    <br>    return cleaned_res<br><br>def answer_question(question, openai_api_key):<br>    prompt = f&quot;Answer the following student question clearly:\n{question}&quot;<br>    client = OpenAI(api_key = openai_api_key)<br>    response = client.responses.create(<br>    model= &quot;gpt-5&quot;,<br>    input= prompt<br>    )<br><br>    return response</pre><p>For step by step setup and code: visit github repository</p><p><a href="https://github.com/circuminds/AI-Study-Buddy">GitHub - circuminds/AI-Study-Buddy: GPT5 based AI Study Buddy</a></p><h3>Deployment and Performance Considerations</h3><ul><li>The app runs on <strong>Streamlit </strong>for simplicity, but can be containerized and deployed on cloud services like AWS, GCP, or Azure for scaling.</li><li><strong>Token limits and rate limits</strong> on the GPT-5 API require prompt optimization and caching strategies for cost-effectiveness.</li></ul><h3>Conclusion</h3><p>While AI Study Buddy is a simple project, it showcases practical <strong>technical integration of GPT-5 with Streamlit</strong> and the power of prompt engineering for creating dynamic educational tools. It serves as a solid foundation for anyone looking to build AI-driven learning applications quickly.</p><p>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0821106444f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Difference Between Generative AI, AI Agents, and Agentic AI]]></title>
            <link>https://medium.com/@jainpalak9509/understanding-the-difference-between-generative-ai-ai-agents-and-agentic-ai-182a3a423d96?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/182a3a423d96</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 06:03:32 GMT</pubDate>
            <atom:updated>2025-07-16T06:03:32.606Z</atom:updated>
            <content:encoded><![CDATA[<p>AI is moving fast, and we are hearing a lot of new terms. You might have heard people talk about <strong>Generative AI</strong>, <strong>AI Agents</strong>, or even <strong>Agentic AI</strong>. These are not just buzzwords. They represent different stages in how AI is evolving.</p><p>In this article, we’ll break down what each one means in simple terms, how they work, and where they’re being used. <br>If you prefer video explanation: Here it is:</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6PLfkTuyk0s&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6PLfkTuyk0s" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d363cd1ed9616084f294403c0e12dca/href">https://medium.com/media/7d363cd1ed9616084f294403c0e12dca/href</a></iframe><h3>What is Generative AI?</h3><p>Generative AI is what most people think of when they hear about AI today. It’s the kind of AI that creates something new, new content. This could be text, images, videos, music, or even code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*vstdE_IK6eX8rpp1lalHWg.png" /><figcaption>Gen AI</figcaption></figure><p>Tools like ChatGPT, Claude, Midjourney, and DALL·E are examples of generative AI. You give them a prompt, and they generate a result based on that prompt. At the core of these tools are large language models. These models are trained on a massive amount of data and learn patterns in language or images. When you give them a prompt, they predict what should come next, word by word or pixel by pixel. But Generative AI doesn’t have broader goals. It doesn’t plan. It just responds to what you give it.</p><p><strong><em>Example</em></strong><em>:<br>You ask ChatGPT: “Write a poem about the ocean.”<br>It writes the poem. But it doesn’t ask why you want it, or what you’ll do with it. It just completes the task.</em></p><h3>What are AI Agents?</h3><p>AI agents are a step ahead. Instead of just generating something, they can take action. You give them a task, and they do it.</p><p>Basic examples are voice assistants like Siri or Alexa. You say something, and they perform a single action like setting a timer or playing music. But modern AI agents are becoming smarter. They can now read emails, fetch information, control other tools, or even make decisions based on what they find.</p><p>An AI agent usually works in three steps:<br>1. <strong>It receives a task or input<br>2. It decides what action to take<br>3. It carries out that action</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*ZuCkF6-fip8_KAO70TohSQ.png" /><figcaption>AI Agents</figcaption></figure><p>Many of today’s agents use language models to understand commands better, but the key thing is that they act, not just reply.</p><p><strong><em>Example</em></strong><em>:<br>You say: “Send an email to my team saying the meeting is moved to 4 PM.”<br>An AI agent can actually write the email, connect to your inbox, and send it.</em></p><h3>What is Agentic AI?</h3><p>Agentic AI is where things get really interesting. It takes the idea of an AI agent much further.<br>These AI systems don’t just respond to a single command. They can take a big goal, break it into smaller steps, and figure out how to complete the whole thing on their own. They can also remember what they’ve done before, adapt when things go wrong, and keep going until they finish the task.</p><p>This is the kind of AI we see in tools like <strong>AutoGPT</strong>, <strong>AgentGPT</strong>, <strong>Open Interpreter</strong>, and <strong>Devin</strong> (an AI software engineer made by Cognition).</p><h3>What makes Agentic AI different?</h3><p>Agentic AI systems can:</p><ul><li>Make plans</li><li>Use tools like a calculator, browser, APIs or coding environment</li><li>Handle errors and retry if something fails</li><li>Work across many steps without constant human input</li></ul><p><strong><em>Example</em></strong><em>:<br> You say: “Research the top 5 competitors of Samsung and create a short report.”<br> An agentic AI could:</em></p><ul><li><em>Search the internet</em></li><li><em>Collect recent data. Find the competitors and research about them.</em></li><li><em>Compare stats</em></li><li><em>Write the report</em></li><li><em>Format it in a nice layout<br>And it would do all this by thinking through each step on its own.</em></li></ul><p>Agentic AI is not just a better version of ChatGPT. It’s a different way of thinking about AI. Instead of treating AI like a tool that responds to prompts, we start thinking of it as a teammate that can manage parts of your workflow.</p><p>Some companies are already using this in real products:</p><ul><li><strong>In software development</strong>: Tools like Devin can build and test apps</li><li><strong>In marketing</strong>: Agentic AIs can run campaigns and test what works best</li><li><strong>In research</strong>: They can collect sources, summarize findings, and organize data</li></ul><p>There are many frameworks like <strong>LangChain</strong>, <strong>LangGraph</strong>, and <strong>CrewAI</strong> that are helping developers build these kinds of systems, making it easier to connect AI models with tools, memory, and logic.</p><p>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=182a3a423d96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Euclidean vs Cosine Similarity vs Manhattan — Which One Works Better for Image Similarity?]]></title>
            <link>https://medium.com/@jainpalak9509/euclidean-vs-cosine-similarity-vs-manhattan-which-one-works-better-285af920c8f7?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/285af920c8f7</guid>
            <category><![CDATA[manhattan-distance]]></category>
            <category><![CDATA[image-similarity]]></category>
            <category><![CDATA[euclidean-distance]]></category>
            <category><![CDATA[image-embedding]]></category>
            <category><![CDATA[cosine-similarity]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 02:17:18 GMT</pubDate>
            <atom:updated>2025-07-12T19:45:41.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>Euclidean vs Cosine Similarity vs Manhattan — Which One Is Best for Image Similarity?</h3><p>Ever wondered how apps like Google Photos group similar pictures, or how e-commerce sites recommend visually similar products? These tools use a technique that converts images into numerical vectors. Once we have these vectors, we can measure how close they are using <strong>distance metrics</strong> like <strong>Euclidean distance</strong>, <strong>Cosine similarity</strong>, and <strong>Manhattan distance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*RkTXmhIVxzlBzleCJLMR3Q.png" /><figcaption>(i) Euclidean distance (ii) Cosine Similarity (iii) Manhattan distance</figcaption></figure><p>In this article, we’ll break down how these three popular similarity metrics work, how they compare, and which one is best for different scenarios.</p><h3><strong>What Are Image Embeddings?</strong></h3><p>Computers can’t see images like humans. To understand an image, a computer first converts it into a list of numbers , also called <strong>vector </strong>that captures the visual content. This process is called <strong>image embedding</strong>.</p><p>These embeddings come from deep neural networks like: <br>* ResNet<br>* EfficientNet<br>* FaceNet<br>* DeepFace<br>* CLIP</p><p>These models are trained to extract meaningful patterns and compress an image’s features into a compact, comparable vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jD7nrZipwdxQKcUtAC6NqA.png" /><figcaption>Image converted to embeddings/digital fingerprint</figcaption></figure><h3><strong>How Do We Compare Two Images?</strong></h3><p>Once two images are converted into vectors, the next step is to compare how similar these vectors are. This is done using <strong>distance or similarity metrics</strong>, which measure how far apart or aligned the vectors are.</p><p>The three most popular metrics are:</p><h4>1. Euclidean Distance</h4><p><strong>Definition</strong>: Measures the straight-line distance between two points in space.</p><p>If your embedding vectors are points in a multi-dimensional space, Euclidean distance tells you how far they are from each other. Exactly same as what we do with ruler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*xcO6wDY6eLZsQMoqDprcHg.png" /><figcaption>Euclidean distance formula</figcaption></figure><p><strong>When to use</strong>:</p><ul><li>Low-dimensional embeddings</li><li>When magnitude and scale matter</li></ul><h4>2. Cosine Similarity</h4><p><strong>Definition</strong>: Measures the angle between two vectors, focusing on their direction rather than their magnitude.</p><p>Imagine two arrows starting from the origin. Even if they have different lengths, if they point in the same direction, cosine similarity will consider them similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*DONyIJ4LbbEXYVWc-MdC4g.png" /><figcaption>Cosine similarity formula</figcaption></figure><p><strong>Value range</strong>: -1 to 1</p><ul><li>Closer to 1 = more similar</li></ul><p><strong>When to use</strong>:</p><ul><li>High-dimensional data</li><li>Image and text embeddings</li><li>NLP models</li></ul><h4>3. Manhattan Distance (L1 Norm)</h4><p><strong>Definition</strong>: Measures the total absolute difference between vector components.</p><p>Think of it as walking city blocks in a grid , you can’t cut diagonally, only move along the x and y axes. <br><em>Funfact: It’s named after the grid-like street layout of Manhattan in New York City</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*xvpswf-XGQjSXmrRIqA6cA.png" /><figcaption>Manhattan distance formula</figcaption></figure><p><strong>When to use</strong>:</p><ul><li>Sparse data</li><li>Grid-like structures</li><li>Interpretability over high performance</li></ul><h3>So, Which One Should You Use?</h3><p>There’s no universal best method. It depends on your use case.</p><ul><li>Use <strong>Cosine Similarity</strong> when working with <strong>high-dimensional embeddings</strong> like images or text from deep learning models.</li><li>Use <strong>Euclidean Distance</strong> when <strong>scale matters</strong> or for <strong>low-dimensional vectors</strong>.</li><li>Use <strong>Manhattan Distance</strong> when data is <strong>sparse</strong>, or when interpretability is key.</li></ul><p>In many real-world systems (like face recognition), cosine similarity is preferred due to its stability in high-dimensional spaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*7qGP8WKzeCP0fJbihZ5m9g.png" /></figure><p>Understanding metrics like <strong>Euclidean distance</strong>, <strong>Cosine similarity</strong>, and <strong>Manhattan distance</strong> is essential to how systems compare facial embeddings. If you’d like a visual walkthrough of how this process applies to real-world facial recognition, from detecting a face to comparing embeddings, here is the video!</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLdnJupgBInA&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLdnJupgBInA" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4269dc2182ef67ce2ca59819228c43e6/href">https://medium.com/media/4269dc2182ef67ce2ca59819228c43e6/href</a></iframe><p><em>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</em></p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=285af920c8f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Does My Package Arrive So Fast?]]></title>
            <link>https://medium.com/@jainpalak9509/how-does-my-package-arrive-so-fast-68e165c345b8?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/68e165c345b8</guid>
            <category><![CDATA[ai-in-logistics]]></category>
            <category><![CDATA[dhl]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[fedex]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 20:55:06 GMT</pubDate>
            <atom:updated>2025-08-21T05:19:46.299Z</atom:updated>
            <content:encoded><![CDATA[<h3>How does package delivery work? AI in Logistics</h3><p>Do you know when you order something online and it says the expected delivery time is Tomorrow between 6pm — 8pm, most probably it will get delivered successfully in that window. For any delivery, a lot of things happen in the background:</p><ul><li>A delivery route had to be planned</li><li>Traffic had to be avoided</li><li>The package had to be picked, packed, and loaded in a warehouse</li><li>And it all had to happen fast</li></ul><p>But how does that work?</p><p>Here is the related short video if you are interested in video explanation:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F633Os7ZSG_Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D633Os7ZSG_Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F633Os7ZSG_Q%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0fe548c5e7fe2c06ebc6d41e61845738/href">https://medium.com/media/0fe548c5e7fe2c06ebc6d41e61845738/href</a></iframe><p>Today’s delivery systems run like high-speed machines where <strong>timing, accuracy, and efficiency</strong> are everything. Logistics companies aren’t just trying to get packages from Point A to Point B , they’re racing against the clock while juggling rising fuel prices, customer expectations for same-day or next-day shipping, and tighter environmental rules.</p><p>Whether it’s a birthday gift, medical supply, or urgent business package, <strong>every second matters</strong>. A small delay in one part of the system can affect hundreds of deliveries. That’s why companies are turning to advanced technologies like AI to make sure everything runs smoothly, quickly, and sustainably.</p><p>In the past, deliveries would’ve relied on fixed schedules and human judgment. But today, it’s <strong>AI</strong> that’s running the show.<br>Companies like Amazon, UPS, and FedEx now use powerful AI systems that do more than just track packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eV7OWmKYreVqW891RPvQag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtAeUdbO6QoqSAH3VA_6iA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*ufPDTJR6dK6lHx2mOczNUA.png" /><figcaption>1. Amazon warehouse robot 2. Fedex delivery robot 3. DHL delivery robot</figcaption></figure><ul><li><strong>AI predicts traffic jams</strong> before they happen and finds better routes.</li><li>It <strong>adjusts for weather</strong> in real-time — rerouting drivers before the rain hits.</li><li>It <strong>controls warehouse robots</strong> that sort and move packages faster than humans ever could.</li></ul><p>One system alone saved UPS over <strong>100 million miles</strong> of travel per year. It’s called ORION (On-Road Integrated Optimization and Navigation system) that is used to optimize the delivery path.</p><p>But AI’s role in logistics doesn’t stop at optimizing routes. It’s also helping warehouse management. <br>Inside big warehouses and fulfillment centers, AI-powered robots are doing the heavy lifting. They sort, scan, and move thousands of packages every hour with amazing speed and accuracy. By reducing human error and speeding up the process, AI helps ensure that every item reaches the right truck at just the right time.</p><p>And this is only the beginning. As AI technology grows more powerful, we’re heading into a future where delivery vans might drive themselves, drones could fly over traffic, and small sidewalk robots could bring packages right to your doorstep.</p><p><strong>FedEx and DHL</strong> are already testing autonomous delivery robots that can safely navigate busy sidewalks and city streets. It’s not very far when your package will be picked up by a self-driving vehicle, will follow a smart, AI-optimized route, and then will be dropped off by a robot<strong> without a single human hand involved</strong>.</p><p>This is the future of logistics and we are getting closer and closer every day.</p><p><em>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</em></p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68e165c345b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantum Computing and AI]]></title>
            <link>https://medium.com/@jainpalak9509/quantum-computing-and-ai-2ee43866564e?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ee43866564e</guid>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 20:46:08 GMT</pubDate>
            <atom:updated>2025-01-15T20:46:08.836Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum computing has been a hot topic for years. Companies like Google, IBM, and Microsoft are spending billions on it indicating quantum supremacy.</p><p>The first thing that comes into our mind is how it is different from the computers have right now and will it replace all of the existing processors? Let’s explore it here.</p><p>If you want to see the video for the same topic, you can watch it here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJKDYS_oKhT4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJKDYS_oKhT4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJKDYS_oKhT4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e77f5e0ac92e22341776485aa0594e2b/href">https://medium.com/media/e77f5e0ac92e22341776485aa0594e2b/href</a></iframe><h3>Bit vs Qbit</h3><p>Here’s the thing: quantum computers don’t work like the devices we use every day. Instead of regular bits that can be either 0 or 1, they use <strong>qubits</strong>, which can be 0, 1, or both at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wBGwMOEhXTWp5QX7f8p3IA.gif" /><figcaption>Left side: Bit (0 or 1), Right side: Qbit (ranges between 0 and 1)</figcaption></figure><p>This is called <strong>superposition</strong>, and this ability combined with a phenomenon called <strong>entanglement </strong>where qubits connect in a way that measuring one instantly determines the state of the other, allows quantum computers to solve incredibly complex problems.</p><h3>Where Quantum Computing Shines?</h3><p>Quantum computers aren’t replacing your laptop, but they’re incredible at solving specific problems that requires high computation and combinations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wieRpISmPdGiGOCLTm8BtQ.png" /><figcaption>Best use cases for Quantum Computers</figcaption></figure><h3>Why Not Replace Traditional Computers?</h3><p>Quantum Computers will not replace our tradition computers because quantum computers are specialized for high computing cases. For everyday things like browsing the internet, writing a document, or playing games, your regular computer is way more practical. Quantum computers are like Formula 1 cars: great on a race track, but not the best option for your daily commute.</p><p>Here are few more examples where Quantum Computers can be useful and where it will not make sense:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZkhvYs653vV23cMlJHNkKg.png" /><figcaption>Use cases for Quantum Computing</figcaption></figure><p>Quantum computing is exciting, but it’s not here to replace traditional computers. Instead, it’s a complementary tool that is ready to tackle problems that once seemed unsolvable.</p><p>I also create YouTube videos that explain how different AI technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ee43866564e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Symbolic AI vs Predictive AI vs Generative AI vs Agentic AI — What’s the real difference?]]></title>
            <link>https://medium.com/@jainpalak9509/symbolic-ai-vs-predictive-ai-vs-generative-ai-vs-agentic-ai-whats-the-real-difference-ee0cbd4ae675?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0cbd4ae675</guid>
            <category><![CDATA[predictive-modeling]]></category>
            <category><![CDATA[aigents]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[generative]]></category>
            <category><![CDATA[symbolic-ai]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Fri, 10 Jan 2025 03:34:02 GMT</pubDate>
            <atom:updated>2025-01-10T03:34:02.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>Symbolic AI vs Predictive AI vs Generative AI vs Agentic AI — What’s the difference?</h3><p>Artificial Intelligence has evolved significantly in past years which led to the rise of multiple branches including <strong>Symbolic AI</strong>, <strong>Predictive AI</strong>, <strong>Generative AI</strong>, and <strong>AI Agents (Agentic AI). </strong>All of these methods are related to training machine but each of them address unique problem. While <strong>Symbolic AI</strong> excels in structured environments, <strong>Predictive AI</strong> dominates in forecasting. <strong>Generative AI </strong>works best for creative possibilities, and <strong>AI Agents</strong> makes automation easy without human interference.</p><p>Let’s go into details and explore the working, limitations and few examples to understand it in a better way.</p><p>Starting with the Symbolic AI,</p><h3><strong>Symbolic AI</strong></h3><p>It relies on explicitly defined rules and logic to perform reasoning and problem-solving. It uses structured data and symbolic representations to make decisions. (e.g., if-then rules).<br>For example: A chess-playing program following pre-defined rules for every possible move.</p><p><strong>Strength of Symbolic AI:</strong><br>It is highly explainable and works best for domains requiring structured reasoning.</p><p><strong>Limitations:</strong><br>It can’t deal with unstructured data like images or speech. It can’t learn from new data as well.</p><h3><strong>Predictive AI</strong></h3><p>Predictive AI focuses on analyzing historical data to forecast future outcomes. It uses machine learning models to identify patterns, trains on labeled datasets to make predictions about unseen data.<br>These models are excellent at tasks like risk assessment, fraud detection, or forecasting.</p><p><strong>Limitations:</strong><br>Restricted to predicting outcomes; cannot generate new content or act autonomously.</p><h3>Generative AI</h3><p>Generative AI creates new content — text, images, audio, or videos — based on learned patterns. It doesn’t just predict but generates entirely new data that mimics the original. It learns from large datasets to produce content similar to what it was trained on. These are based on advanced machine learning models like GANs (Generative Adversarial Networks) and transformers. For example: ChatGPT creating text or DALL·E generating images.</p><p><strong>Strength of Generative AI:</strong><br>It is highly creative which can produce human-like art, stories, or music. It works well with unstructured data and can synthesize unique outputs.</p><p><strong>Limitations:</strong><br>It can produce biased or inaccurate outputs if the training data is flawed.</p><h3>Agentic AI</h3><p>AI Agents/Agentic AI, are autonomous systems capable of setting goals, making decisions, and performing actions without direct human input. It learns and updates its strategies based on the environment and feedback. For example: A self-driving car navigating traffic autonomously.</p><p><strong>Strength of Agentic AI:</strong><br>It is capable of operating independently in dynamic, real-world scenarios and learn and improve through feedback (e.g., reinforcement learning).</p><p><strong>Limitations:</strong><br>It often requires significant computational resources.</p><p>For more details on Agentic AI, visit:</p><p><a href="https://medium.com/@jainpalak9509/agentic-ai-are-we-really-close-to-agi-91dd23bd682d">Agentic AI- Are we really close to AGI?</a></p><h3>Summary</h3><p>For the summary, here is the tabular representation of all the differences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C__K-PRia8lvjwtVaOLWEA.png" /></figure><p>I also create YouTube videos that explain how different technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0cbd4ae675" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI- Are we really close to AGI?]]></title>
            <link>https://medium.com/@jainpalak9509/agentic-ai-are-we-really-close-to-agi-91dd23bd682d?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/91dd23bd682d</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 22:49:34 GMT</pubDate>
            <atom:updated>2025-01-15T20:45:50.716Z</atom:updated>
            <content:encoded><![CDATA[<p>We are hearing the word “Agentic AI” a lot these days. CEOs of big companies and researchers are also stating that “Agentic AI” might replace SAAS(software as a service) and even the whole enterprises. But what does this actually mean?</p><p>The word agentic refers to the people who are proactive and self regulatory. In AI as well, it refers to something similar. Agentic AI is the technology that do not wait for you to tell what to do but could figure out stuff on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzSuAoNRU9aAeSAt8DKTwg.jpeg" /></figure><p>Agentic AI-<br>1. Acts autonomously without needing your input.<br>2. Make smart decisions to reach to the goal.<br>3. Adapts when the situation changes.</p><p>Basically it is the upgraded version of AI that can take initiative.</p><h3>How is it different from Regular AI?</h3><p><strong>Narrow AI:</strong><br>Regular AI is narrow AI that is designed for specific tasks with limited autonomy. It follows pre-programmed instructions or learnings based on the data it was trained on. <br>Characteristics — <br>1. It is task specific.<br>2. It responds to input but does not care about the end goal of project.<br>3. It relies on human direction to initiate actions or adapt to new contexts.<br>4. Example — Image classifiers labeling objects in photos, AI in autonomous cars recognizing pedestrians.<br>5. Advantage — It’s efficiency and reliability for the specific task.</p><p><strong>Agentic AI:</strong><br>It refers to systems with higher levels of autonomy, capable of setting goals, making decisions, and performing actions without direct human input.<br>Characteristics — <br>1. It is goal oriented.<br>2. It is like an autonomous workflow with multiple AI agents.<br>3. It learns and updates its strategies based on the environment and feedback.<br>4. Advantage — Greater flexibility, scalability, and ability to handle complex, multi-step tasks.<br>5. Example — AI systems managing supply chains dynamically, Autonomous drones carrying out complex missions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*VKT0QpuQT6DWzdtYwVo9vg.png" /><figcaption><strong>Difference between Regular AI and Agentic AI</strong></figcaption></figure><p><strong>General Example (Smart home assistants)<br></strong>Let’s again understand with the example of home assistant and see how these systems work?</p><p><strong>Regular AI: </strong>You say, “Turn off the lights” and it does.<br><strong>Agentic AI: </strong>It notices it’s bedtime, switches off the lights, locks the doors, and adjusts the thermostat because it knows you like it cooler at night.</p><p>See the difference? Agentic AI anticipates what you need. <strong>It saves you time.</strong> You don’t have to micromanage — it figures things out.<br>But at the same time, it comes with it’s own challenges.</p><h3>Challenges of Agentic AI</h3><ol><li><strong>Safety</strong>: What if it makes a wrong call?</li><li><strong>Control</strong>: How do we ensure it stays on track?</li><li><strong>Ethics</strong>: How do we make sure it plays by the rules?</li></ol><p>In conclusion, we can say that Agentic AI isn’t just another tech buzzword — it’s something that makes machines more helpful, proactive, and smart. Whether it’s making healthcare smarter or revolutionizing education, the possibilities are endless. The question now is: how far can we take this, are we heading towards AGI and how do we ensure it makes life better for everyone? The journey is exciting, and we’re just getting started!<br>Would love to know your thoughts as well!</p><p>I also create YouTube videos that explain how different AI technologies work in a simple, easy-to-understand way — perfect for those curious about tech but not looking for deep technical jargon. If you’re interested, check it out and join the journey!</p><p><a href="https://www.youtube.com/@Circuminds?sub_confirmation=1">Circuminds</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91dd23bd682d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text-to-text generation | Language Translation]]></title>
            <link>https://medium.com/@jainpalak9509/text-to-text-generation-language-translation-6a3929dc5309?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a3929dc5309</guid>
            <category><![CDATA[transformer-model]]></category>
            <category><![CDATA[sequence-model]]></category>
            <category><![CDATA[language-translation]]></category>
            <category><![CDATA[sequence-to-sequence]]></category>
            <category><![CDATA[text-to-text-generation]]></category>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 23:16:33 GMT</pubDate>
            <atom:updated>2024-10-29T23:16:33.293Z</atom:updated>
            <content:encoded><![CDATA[<p>Suddenly we are surrounded by so many resources for language translations. Not just applications on mobile phone, but also personal assistants like Siri, Alexa and even watches and now recently we have glasses as well. Meta and Ray-ban released smart glasses that supports real time language translations now. <br>Using these technology is great but we should be aware of how it is working in backend. <br>If you are interested in watching a video that I created on the same topic, here it is:<br>Also, if you like it, give it a thumbs up and subscribe to keep me motivated for making more such videos :D</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FUydTdY9w7Ls%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUydTdY9w7Ls&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FUydTdY9w7Ls%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d41fc9d97314debc50bd0ebad88978e/href">https://medium.com/media/7d41fc9d97314debc50bd0ebad88978e/href</a></iframe><p><strong>Part 1: Basic Idea</strong></p><p>Let’s first start with the very basic idea of speech translation. It consist of three components: <br>1. Listen: Machine listens to what’s being said. It is also called Speech Recognition.</p><p>2. Translate: Model converts the language into target language using different AI models.</p><p>3. Speak: Machine read out the translated sentence. It is known as Speech Synthesis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jV_XRxfu7YKLDkWv9sy5dQ.png" /></figure><p><strong>Part 2: Evolution of Language Translation in Machines</strong></p><p>The idea of language translation started in early 70s with very basic word for word translations. It’s like looking up dictionary for every single word and replacing it with the target language words. It also tried to include the grammar rules such as how the order of words works in both languages or how pluralization or negation works. But it was very limited to specific rules and cannot be generalize. And apart from that, every language has their own idioms, different way of using the same word and cultural context which can not be tackle by rule based methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sM2v3NI5N2mPm1B6ZLEHxA.png" /><figcaption>Example of Rule based translation</figcaption></figure><p>Therefore machine learning is important in this task. AI learns in very similar way as human brain but at very faster pace, sometime it process millions of data in minutes.</p><p>In 2013, sequence to sequence model came for generating text in target language based on input text.</p><p>It has two components: Encoder and Decoder. Encoder converts the input text into numbers (also called word embeddings) which is not specific to any word. It contains the gist of the whole sentence. Then Decoder convert those numbers into target language taking care of the cultural context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LciuETagA66RjYCcW26-YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSZMWESuxu3WaLWAGjMrtQ.png" /></figure><p>The drawback of this method is the long context. If the sentence is too long, it will lose context from words that are far apart.</p><p>Then, came the new model ‘Transformers’ in 2017. It works on the concept called Attention Mechanism which takes the whole sentence in one go and therefore, will not lose the context. <br>To understand this in more interactive manner, i suggest you to watch the video mentioned in the beginning of this post. It has a lot of animations to explain this better.</p><p>Below diagram will be useful for understanding the difference between these two models:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dg-mOkZ5eLKTRvLDJhzWQQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uj8zXYWi3hvK6mKSvv_oRw.png" /></figure><p>All popular tools like Chatgpt, Dall-e, Google translate, Meta AI, Claude etc. are based on the transformer models. So, it is one of the most solid technology as the base for so many tools.</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a3929dc5309" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Image Generation works? GAN vs Diffusion models]]></title>
            <link>https://medium.com/@jainpalak9509/how-ai-image-generation-works-high-level-explainer-ed2d96d7331e?source=rss-e16e3979a168------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed2d96d7331e</guid>
            <dc:creator><![CDATA[Palak Jain]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 06:34:23 GMT</pubDate>
            <atom:updated>2024-10-29T04:13:48.324Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, here is the short video explainer with a lot of animations and examples.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FC6Ho0QyQw1M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DC6Ho0QyQw1M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FC6Ho0QyQw1M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d77cf996feb377dbc720f907c226fca8/href">https://medium.com/media/d77cf996feb377dbc720f907c226fca8/href</a></iframe><p>We all are aware of current scenario of AI Image generation. What once took hours of artistic effort can now be done in seconds — just by typing a description!</p><p>We are surrounded by multiple AI tools such as Dall-e, midjourey, dreamstudio, ideogram, adobe firefly and so many more. Some of them are actually free and very easy to use.</p><p>But the question is: How does this actually works? Let’s understand this process without going too much into model architecture.</p><p><strong>PART 1: How AI sees Images?</strong></p><p>AI doesn’t see images like we do. We see shapes and colors, but AI sees patterns made of tiny dots called pixels. To generate new pictures, AI studies thousands of real images, learning how things like cars, trees, and people look. Once trained, AI can create brand-new images based on what it learned, even if that exact image has never existed before!</p><p><strong>PART 2: Basis of Image Generation tools</strong></p><p>There are multiple AI model architectures such as GANS, Diffusion based, hybrid models etc. While all these models are used for generating new images, they have distinct approaches and strengths.</p><p><strong>PART 3: GANs</strong></p><p>GANs, introduced by Ian Goodfellow in 2014, work by pitting two neural networks against each other: the <em>generator</em> and the <em>discriminator</em>.</p><p>The generator creates images from random noise, while the discriminator evaluates whether an image is real or generated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5t4iMf_yPek_APxSSa_Pw.png" /></figure><p>Over time, the generator improves, learning to produce more realistic images as it tries to fool the discriminator.</p><p><strong>How GANs Work:</strong></p><ol><li>The generator starts with random noise and tries to produce an image.</li><li>The discriminator assesses this image, comparing it to real images.</li><li>The generator and discriminator are trained together, where the generator’s goal is to create images the discriminator cannot distinguish from real ones.</li></ol><p>However, GANs are known for being tricky to train. They often suffer from <em>mode collapse</em>, where the generator keeps producing similar images instead of diverse ones.</p><p><strong>Part 4: Diffusion based models</strong></p><p>Diffusion models are a newer and more stable approach to image generation. Unlike GANs, diffusion models don’t rely on the competition between networks. Instead, they slowly transform random noise into an image by following a series of steps that reverse a “diffusion” process. This method adds noise to an image in a step-by-step fashion, then learns to reverse the process to create a new image.</p><p><strong>How Diffusion Models Work:</strong></p><ol><li>Start with random noise.</li><li>A model is trained to reverse the noise addition process by iteratively refining the noisy data, bringing out image-like structures.</li><li>Over time, a coherent image emerges from what initially looks like random static.</li></ol><p>Today, AI creates all kinds of images: realistic portraits, product designs, and even abstract art. Tools like DALL-E and Midjourney are leading this revolution, making AI-generated art look almost as real as something a human would create. These images are everywhere now, from ads and social media to movie scenes!</p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed2d96d7331e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>