<?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 Josna Cardoza on Medium]]></title>
        <description><![CDATA[Stories by Josna Cardoza on Medium]]></description>
        <link>https://medium.com/@josna.cardoza_81503?source=rss-19347512be70------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AAIYEpLki3a8bRhj</url>
            <title>Stories by Josna Cardoza on Medium</title>
            <link>https://medium.com/@josna.cardoza_81503?source=rss-19347512be70------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:43:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@josna.cardoza_81503/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[AI as a Multi Talented Personal Assistant]]></title>
            <link>https://medium.com/@josna.cardoza_81503/ai-as-a-multi-talented-personal-assistant-bdcf6d868d79?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdcf6d868d79</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[ai-assistant]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 10:03:11 GMT</pubDate>
            <atom:updated>2026-04-11T10:03:11.551Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever had a great idea but it got dismissed because you couldn’t explain it properly? Or maybe people didn’t trust it because it wasn’t backed by something concrete?</p><p>Well, that problem is slowly going away.</p><p>You now have a multi-talented personal assistant ‘AI’ that can take your idea and turn it into something real. Something you can show, demo, and present as a deliverable instead of just a thought.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*12-VA1j4gjfYyTpP.jpg" /><figcaption>Image Source: k2view.com</figcaption></figure><h3><strong>From Doubt to Demo</strong></h3><p>I recently saw this happen in real life.</p><p>A friend shared an idea, and honestly, I didn’t take it seriously. I thought it was just something to pass time. I even told him it might not work.</p><p>But he didn’t argue.</p><p>He just sat with AI for a few days and came back with a working application. Not just a basic version, something more advanced than what we originally discussed.</p><p>That’s when it hit me.</p><p>We are so busy worrying about AI taking our jobs that we are missing what it can do to make us better at our jobs.</p><h3>The Shift</h3><p>AI is no longer optional. It’s already becoming a required skill in many roles. Even job descriptions are changing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*2WmPyv7fuUIAL1Z7C2555w.png" /><figcaption>Microsoft’s JD</figcaption></figure><p>The new expectation is not just <em>developer</em>, but <em>AI-native developer </em>or a<em> Forward Deployed Engineer. </em>someone who spends less time writing code and debugging, instead spends more time thinking, planning, and building ideas.</p><p>Startups are already launching products with almost no traditional dev teams. People are building apps over a weekend and putting them live.</p><h3><strong>What’s really happening?</strong></h3><p>On a global level there is a shift happening. There has been an AI Startups explosion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DfxkYnjtWP7no90WT-4y2Q.png" /><figcaption>AI generated image</figcaption></figure><p>AI is becoming the foundation for many new buisinesses. The mobile app creation once slowed down, now it’s rising again. According to statistics, in 2024, ~500,000 new apps were launched, in 2025, the number rised to ~600,000 and in 2026, it’s expected to reach ~700,000.</p><h3>The Real Skill: Working with AI</h3><p>AI is only as powerful as your ability to work with it. The impact of prompting and agentic coding is undeniable. What you ask, and how you ask it, directly shapes what you get back. It’s about feeding the right context, refining your intent, and turning AI from a simple chatbot into a true thinking partner.</p><p>When used well, you can spin up multiple agents and sub-agents to handle routine, mundane tasks, freeing yourself to act as the chief orchestrator of agents. That shift, from doing the work to directing it, is where the real leverage lies. And it’s not theoretical anymore, companies are already using AI agents to build and ship production code. In the following video we can see Colin Jarvis, Head of Forward Deployed Engineering at OpenAI explains how they put Codex agents to work and built a evaluation system.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcBD7_R-Cizg%3Ffeature%3Doembed%26start%3D424&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcBD7_R-Cizg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcBD7_R-Cizg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/87325cb108199a1684f9bc23348b6c2c/href">https://medium.com/media/87325cb108199a1684f9bc23348b6c2c/href</a></iframe><h3>Conclusion</h3><p>AI can be your thinking partner, a prototype generator, or a builder. Developing robust secure end to end CI CD might still require the professional developer. However, to start your idea, to present it as a demo to your client or manager AI can be of great assistance.</p><p>With the right tooling, you can orchestrate multiple agents working in parallel across tasks, compressing what used to take days into hours. The real shift is in how you work: step back, let AI handle the heavy lifting, then return to review, refine, and apply your judgment. You’re not replaced, you’re elevated, focusing on direction, quality, and the final touch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdcf6d868d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hallucinations in Generative AI: Why Models Make Things Up and How We Can Fix It]]></title>
            <link>https://medium.com/@josna.cardoza_81503/hallucinations-in-generative-ai-why-models-make-things-up-and-how-we-can-fix-it-d8862925dc5b?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8862925dc5b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-hallucination]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Thu, 11 Sep 2025 11:37:46 GMT</pubDate>
            <atom:updated>2025-09-11T11:37:46.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhhI8K95R1UteT9NiGb5mw.png" /><figcaption>Image source: Getty Images</figcaption></figure><p>You’ve probably heard a lot about AI hallucinations. There have been many instances where Generative AI tools gave <strong>false results with absolute confidence,</strong> sometimes even causing real harm.</p><p>For example, in a recent high-profile case, lawyers for MyPillow creator Mike Lindell were fined after submitting a legal filing <strong>filled with AI-generated hallucinations</strong>.</p><p><a href="https://www.npr.org/2025/07/10/nx-s1-5463512/ai-courts-lawyers-mypillow-fines">A recent high-profile case of AI hallucination serves as a stark warning</a></p><blockquote>What is AI Hallucination?</blockquote><blockquote><strong>AI hallucination </strong>is a response generated by AI that contains false, non-existing or misleading information presented as fact.</blockquote><p>Because AI models are designed to respond in a <strong>fluent, confident, human-like tone</strong>, it’s easy to trust them, even when they’re wrong.</p><h3>Where Did the Term “Hallucination” Come From?</h3><p>The term “hallucination” in AI was first used casually by <strong>Andrej Karpathy</strong> in his 2015 blog post <em>The Unreasonable Effectiveness of Recurrent Neural Networks</em>. He described how his neural network would “hallucinate” creative but false outputs. The word stuck, and it’s now one of the most widely recognized challenges in Generative AI.</p><p><a href="https://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of Recurrent Neural Networks</a></p><h3>Why Do AI Models Hallucinate?</h3><p>There are multiple reasons as to why AI models hallucinate, but the baseline is this: <strong>AI doesn’t know the answer.</strong> Instead, it fills in gaps using patterns it has seen in training. Let’s now look into the possible reasons:</p><ul><li><strong>Lack of training data<br> </strong>The backbone of any AI system is the data it is trained on. While much attention is given to the design and power of the model itself, the quality of the underlying data is just as critical. AI models learn patterns, relationships, and behaviors directly from this data. If the training data is biased, corrupted, or inconsistent, the model will internalize those flaws, leading to inaccurate or misleading outputs. In such cases, the AI may produce false information, a phenomenon often referred to as “hallucination.”<br> For example, if a facial recognition system is trained primarily on images of people from one specific ethnic group, it may struggle to accurately identify individuals from other ethnicities. This bias in the data can lead to higher error rates or even outright misidentifications when the AI is used in real-world applications.</li><li><strong>Generalized patterns</strong> <br> If a task follows a generalizable pattern, the AI model is more likely to learn that pattern and apply it when performing the task, without verifying if the specific instance is correct. In other words, the model may focus on replicating the pattern rather than confirming its accuracy in the given context.<br> For example, on many social platforms, user profiles follow a consistent structure. If an AI model is asked about a non-existent user, it might still generate content as though that user exists, simply following the pattern it has learned. This leads to “hallucination”, where the AI produces plausible but incorrect information.</li><li><strong>Outdated Information</strong><br> AI models are trained periodically, but they are not updated in real-time. This means the knowledge they contain is only as current as the time of their last training session. As a result, there may be significant gaps between the information the model was trained on and the most up-to-date data available. <br> New discoveries, advances, or shifts in understanding may not be reflected, leaving the model unaware of the latest developments. This can lead to the AI generating outdated or incorrect information, essentially, an example of “AI hallucination.”<br> For instance, in research fields, staying current is crucial. If a researcher relies on AI-generated data that hasn’t been updated, they might end up repeating previous work or overlooking the latest advancements, which could hinder their progress or lead to inaccurate conclusions.</li><li><strong>Contextual Gaps<br> </strong>Large Language Models (LLMs) are trained to predict the next word based on the preceding words, identifying patterns from vast amounts of text data. However, when these models encounter insufficient context or ambiguity, they may struggle to determine the correct meaning. In such cases, the AI fills in the gaps by selecting the most probable word based on its training, which can lead to inaccuracies or “hallucinations.”<br> For example, consider the word “bank.” It could refer to the side of a river or a financial institution, depending on the context. If the AI model lacks enough surrounding information, it might choose the wrong interpretation, generating false or misleading content. This is a common issue when the model misinterprets or fails to fully capture the nuances of the context.</li></ul><p><em>The following OpenAI’s paper is a great deep dive into this problem:</em> <a href="https://openai.com/index/why-language-models-hallucinate/">https://openai.com/index/why-language-models-hallucinate/</a></p><h3>How Do Hallucinations Impact the Real World?</h3><p>Generative AI is no longer just a research toy, it’s in the hands of millions. And while its answers feel personal and convincing, hallucinations can have <strong>serious consequences</strong>.</p><p>There have been numerous instances where individuals blindly trusted AI decisions, only to find themselves in dangerous situations. When first interacting with AI tools, especially Large Language Models (LLMs), users typically start with simple, well-known queries, where the models are well-trained and can respond accurately. The AI’s tone, reasoning style, and ability to personalize its responses often create a sense of trust and familiarity, making users feel comfortable and even attached.</p><p>However, as conversations become more complex and nuanced, the risk increases. If the AI “hallucinates” during a serious discussion or provides advice that lacks professional expertise, users may unknowingly follow inaccurate or even harmful guidance. Blindly trusting AI in such cases without critical evaluation can result in significant consequences, potentially even endangering lives.</p><p>One tragic case: parents of a teenager sued OpenAI, alleging that ChatGPT responses contributed to their son taking his own life.</p><p><a href="https://www.bbc.co.uk/news/articles/cgerwp7rdlvo">Parents of teenager who took his own life sue OpenAI</a></p><h3>Why Hallucinations Matter in Real-World Applications</h3><p>AI hallucinations can be particularly harmful in fields where accurate information is critical. It’s worth noting that not all creativity is bad. after all, humans themselves are creative by nature.</p><p>When AI is tasked with creative work, such as generating stories or designing imaginative images, the goal is to innovate, not to produce factual content. In these cases, what might seem like “making things up” is actually a valid exercise in creativity. This is not hallucination. There is a distinction between “creativity” and “hallucination”.</p><p><em>Hallucination specifically refers to when an AI system is asked to provide factual information or perform specific tasks but instead generates incorrect or misleading content while presenting it as accurate.</em></p><p>For instance, in fields that demand up-to-date and accurate information, hallucinations can be dangerous.</p><ul><li>In <strong>healthcare</strong>, a hallucinated diagnosis could risk lives.</li><li>In <strong>law</strong>, a fabricated case citation could mislead a court.</li><li>In <strong>finance</strong>, incorrect predictions could cause massive losses.</li><li>In <strong>research</strong>, fabricated theories or scientists could derail entire projects.</li></ul><h3>Where Is Current Research Headed?</h3><p>Researchers and practitioners are actively exploring ways to reduce hallucinations. A notable approach is the integration of retrieval-augmented generation (RAG), where LLMs cross-reference user queries with external, up-to-date sources (e.g., web search or document databases). This reduces the likelihood of models fabricating non-existent entities or events.</p><p>LLMs have become better at recognizing when they might be generating non-existent or inaccurate information, making them less likely to confidently present false facts. You might have seen AI responding in the subtle way to indicate uncertainty or a potential error in the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*kNVFkOg0uqdT_554oLMQog.png" /></figure><p>However, you might still encounter hallucinated responses. Some of the key directions in controlling hallucinations include:</p><ul><li><strong>Retrieval-Augmented Generation (RAG)</strong><br> RAG is a technique that enhances LLMs by enabling them to access real-time external knowledge bases or search engines to ground answers in factual documents.<br> Without external knowledge, LLMs might provide outdated or incorrect answers. For example, if you ask an AI about the latest research in a field like quantum computing, the model might give you outdated information because it was trained on old data. By integrating a real-time search engine or knowledge base, RAG helps ensure that the AI can provide its answers in current, factual documents.</li><li><strong>Human-in-the-Loop Training (RLHF and beyond)</strong><br> Human-in-the-Loop Training, especially through <strong>Reinforcement Learning from Human Feedback (RLHF)</strong>, involves humans giving feedback on AI behavior to ensure that their responses align with human expectations and discourage made-up answers.<br> While AI models can learn from vast amounts of data, they sometimes misinterpret human intent or generate factually incorrect content. RLHF corrects this by incorporating human judgement into the learning loop, ensuring that the model behaves in a way that is more in line with real-world human understanding.</li><li><strong>Model Architecture Tweaks</strong><br> This approach involves adjusting the model’s architecture or designing new training objectives (like factual consistency) or adding guardrails that penalize unsupported claims. <strong>Factual consistency</strong> becomes a primary focus during training in this method. By tweaking the model’s architecture, we can steer it toward generating more reliable information. Guardrails help prevent the AI from wandering too far off when answering questions.</li><li><strong>Uncertainty Estimation</strong><br> Uncertainty Estimation is teaching models to identify and flag when they are uncertain, rather than confidently producing false answers. The AI is taught to acknowledge its uncertainty and either ask for clarification or provide a less definitive response. The model becomes more cautious when it doesn’t have sufficient facts.</li><li><strong>Evaluation Frameworks</strong><br> Evaluation frameworks are systematic tools and methodologies designed to assess and measure the performance of AI models. These frameworks include developing better benchmarks to measure and detect hallucinations systematically.<br> It’s essential to have a way to measure how well these models are reducing hallucinations and improving the quality of their answers. Robust evaluation to test how well a model handles factual accuracy, whether it can recognize gaps in its knowledge, and how it manages to provide reliable information in complex scenarios help developers identify weak points in the model, guide improvements, and ensure that models are delivering the highest possible quality responses.</li></ul><h3>Conclusion</h3><p>Hallucinations in AI are not just quirky mistakes, they’re a <strong>fundamental challenge</strong> that can undermine trust, safety, and reliability. As AI becomes woven into critical areas like healthcare, law, and finance, solving this problem is urgent.</p><p>By incorporating the strategies like RAG, RLHF, model architecture tweaks, uncertainty estimation, and robust evaluation frameworks, the AI models can be trained to minimize hallucinations, providing more reliable, accurate, and useful responses.</p><p><em>But is it really possible to get rid of AI hallucinations completely?</em></p><p>The path forward isn’t about eliminating hallucinations entirely (that may be impossible), but about <strong>managing them</strong>: grounding models in real data, designing better feedback loops, and building transparency into AI outputs.</p><p>Until then, the best safeguard is human judgment: <strong>verify, question, and don’t blindly trust AI</strong>. Like any powerful tool, it’s only as safe as the care with which we use it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8862925dc5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI: From GPT to Diffusion Models — How They Work and Differ]]></title>
            <link>https://medium.com/@josna.cardoza_81503/generative-ai-from-gpt-to-diffusion-models-how-they-work-and-differ-8d885f69ebb3?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d885f69ebb3</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[diffusion-models]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 11:05:48 GMT</pubDate>
            <atom:updated>2025-09-04T11:05:48.084Z</atom:updated>
            <content:encoded><![CDATA[<h3>Generative AI: From GPT to Diffusion Models — How They Work and Differ</h3><p>When we say <em>Generative AI</em>, the first thought that comes to most people is language models like <strong>ChatGPT, Copilot, Gemini</strong>, etc. However, generative AI isn’t just about large language models. Two of the most powerful paradigms are <strong>Transformer-based LLMs</strong> and <strong>Diffusion Models</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/0*IHkjbkYRuuQjbtl-" /></figure><p>Generative AI models can be separated both by <strong>application domain</strong> and by <strong>underlying architecture</strong>.</p><h4>Generative AI Models by Domain</h4><ul><li><strong>Language Models (LLMs)</strong> → GPT, LLaMA, etc.<br> <em>(mainly Transformer-based autoregressive models for text generation)</em></li><li><strong>Vision Models</strong> → Stable Diffusion, Imagen, StyleGAN, DALL·E, etc.<br> <em>(mainly Diffusion models and GANs for image/video generation)</em></li><li><strong>Speech &amp; Audio Models</strong> → AudioLM, MusicLM, Jukebox, etc.<br> <em>(autoregressive and diffusion-based models for audio and music generation)</em></li><li><strong>Multimodal Models</strong> → Gemini, GPT-4o, CLIP + diffusion hybrids, etc.<br> <em>(combine multiple modalities like text, image, and audio using Transformer-based architectures)</em></li></ul><h3>Generative AI Models by Architecture</h3><ul><li><strong>Transformer-based Models<br></strong>(Mainly used in Text (LLMs like GPT), images, music, etc.)</li><li><strong>Diffusion Models<br></strong>(Mainly used in Image, video, and audio generation)</li><li><strong>Generative Adversarial Networks (GANs)<br></strong>(Mainly used in Image generation, video synthesis, deepfakes)</li><li><strong>Variational Autoencoders (VAEs)<br></strong>(Mainly used in Image generation, anomaly detection)</li></ul><p>Today, <strong>transformers dominate language tasks</strong> like chatbots, summarization, and code generation. For <strong>visual art, design, and storytelling images</strong>, diffusion models are the go-to choice.</p><p>Let’s now explore these two paradigms in detail.</p><h3>Transformer-Based LLMs:</h3><blockquote>What is a transformer model?</blockquote><blockquote>The transformer model is a type of <a href="https://www.ibm.com/think/topics/neural-networks">neural network</a> architecture that excels at processing sequential data, most prominently associated with <a href="https://www.ibm.com/think/topics/large-language-models">large language models (LLMs)</a>.</blockquote><p>Think of it like teaching a child to finish your sentences:</p><p>If you say, <em>“Once upon a…”</em> the child will likely respond, <em>“…time.”</em><br> That’s what LLMs do at scale — they predict the next word.</p><p>The key innovation is the <strong>attention mechanism</strong>. Just as we highlight important phrases while reading, transformers highlight the most relevant parts of text by assigning “weights” to input tokens. This allows them to understand context far better than older models.</p><p>The image below shows the high level representation of the transformer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P1efWQfZKNuHFis5J3owBQ.png" /></figure><p><strong>What the attention mechanism does:</strong><br> For each word in a sequence, the model:</p><ol><li><strong>Calculates how much attention</strong> it should pay to every other word in the sequence.</li><li><strong>Uses these attention scores</strong> to create a rich, context-aware representation of the word.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/0*8pODVQA2ByqRVhIr.png" /><figcaption>Image source: leewayhertz.com</figcaption></figure><p>LLMs are trained on <strong>billions of words</strong> from books, articles, code, and the web. With huge compute power (thousands of GPUs for weeks or months), they learn statistical patterns to generate text that feels fluent, reasoning-like, and human.</p><h3>Challenges</h3><p>LLMs come with challenges:</p><ul><li><strong>Hallucinations</strong><br> LLMs can sometimes generate confident but incorrect or nonsensical answers. This happens because they are trained to predict the next word based on patterns in data — not to verify facts. When there’s a gap between training data and real-world information, the model fills it with the most statistically likely continuation, which can lead to fabricated responses.</li><li><strong>Factual Inaccuracies</strong><br> One major issue is the lack of a built-in source of truth. Since LLMs generate responses based on training data rather than retrieving verified facts, they can provide information that is outdated, imprecise, or just wrong.</li><li><strong>Biases</strong><br> LLMs can reflect or even amplify biases present in their training data. These biases may come from the content the model was trained on or from decisions made during development, potentially leading to skewed or unfair outputs.</li></ul><p>Mitigation techniques include:</p><ul><li><strong>Retrieval-Augmented Generation (RAG):</strong> grounding answers in real documents.</li><li><strong>Reinforcement Learning from Human Feedback (RLHF):</strong> aligning outputs with human values for usefulness, politeness, and accuracy.</li></ul><h3>Diffusion Models</h3><blockquote>What are diffusion models?</blockquote><blockquote>Diffusion models are generative models used primarily for image generation and other computer vision tasks. Diffusion-based <a href="https://www.ibm.com/topics/neural-networks">neural networks</a> are trained through <a href="https://www.ibm.com/topics/deep-learning">deep learning</a> to progressively “diffuse” samples with random noise, then reverse that diffusion process to generate high-quality images.</blockquote><p>When trained on <strong>image–text pairs</strong>, these models can take a user’s prompt and generate a brand-new image by starting from random noise and “denoising” toward the intended result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/0*bAOxVPj4xDIP7BeO.png" /><figcaption>Image source: leewayhertz.com</figcaption></figure><p>They excel at producing <strong>rich, creative imagery</strong>, making them ideal for visual art, design mockups, storytelling, and even medical imaging. In essence, they materialize human imagination into tangible outputs.</p><p>They are widely used in various domains like computer vision (CV), image synthesis, scene generation, 3D vision, video modeling, medical image diagnosis, audio generation etc.</p><h3>Challenges</h3><p>Diffusion models have their own drawbacks:</p><ul><li><strong>Slow Generation</strong><br> Image generation is relatively slow, especially for complex outputs. The step-by-step denoising process is computationally intensive, making real-time generation challenging.</li><li><strong>High Computational Costs</strong><br> Diffusion models are expensive to train and deploy. They require significant compute resources, both in terms of hardware and energy consumption.</li><li><strong>Limited Text Understanding</strong><br> Compared to large language models (LLMs), diffusion models often struggle with nuanced or complex text prompts. This can lead to inaccurate or incomplete visual interpretations.</li><li><strong>Legal and Ethical Risks</strong><br> These models raise concerns around copyright infringement, unauthorized use of artists’ styles, and potential misuse in generating deceptive or harmful content such as deepfakes.</li></ul><p>For example, the <strong>2024 U.S. elections</strong> saw fake AI-generated images of Black voters with Trump circulating online, a stark reminder of their disinformation potential.</p><p><a href="https://www.bbc.co.uk/news/world-us-canada-68440150">Trump supporters target black voters with faked AI images</a></p><h3>Conclusion</h3><p>Generative AI has moved far beyond being just a buzzword — it now powers real tools that write, paint, compose, and even reason. At the heart of this revolution are <strong>Transformer-based LLMs</strong> and <strong>Diffusion models</strong>, each excelling in different domains.</p><ul><li><strong>LLMs</strong> give us the ability to converse with machines, generate code, and summarize knowledge, but they struggle with hallucinations and bias.</li><li><strong>Diffusion models</strong> let us visualize our ideas in stunning detail, but they come at the cost of compute intensity, slower output, and ethical risks.</li></ul><p>Together, they represent two sides of the same coin: one focused on <strong>language and reasoning</strong>, the other on <strong>vision and creativity</strong>. The next frontier lies in <strong>multimodal systems</strong>, where these paradigms converge to generate text, images, audio, and video seamlessly.</p><p>Understanding how these models work — and how they differ — isn’t just useful for researchers and developers. It’s essential for anyone who wants to engage critically with AI, harness its power responsibly, and anticipate the challenges it will continue to bring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d885f69ebb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Black Box: Why Explainable AI Builds Trust]]></title>
            <link>https://medium.com/@josna.cardoza_81503/beyond-the-black-box-why-explainable-ai-builds-trust-d52eb0713598?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52eb0713598</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[trustworthy-ai]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 08:01:37 GMT</pubDate>
            <atom:updated>2025-08-28T08:01:37.437Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23mk8e1dH-zTFP71LOGRlQ.jpeg" /><figcaption>Image source: ai4science.caltech.edu</figcaption></figure><p>AI is often seen as a “black box” — it gives an answer, but we don’t always know <em>why</em>.</p><p>For example, if a loan issuing company uses AI to calculate credit risk and the AI rejects a loan application, we’d want to know the reason. As I mentioned in one of my earlier articles, <a href="https://medium.com/@josna.cardoza_81503/bias-in-ai-why-fairness-in-machine-learning-matters-80bc7fce765b">bias can creep into these systems</a>. Without transparency, a financially responsible applicant might still be unfairly rejected. This is exactly where <strong>Explainable AI (XAI)</strong> comes in.</p><blockquote>What is explainable AI?</blockquote><blockquote>Explainable <a href="https://www.ibm.com/think/topics/artificial-intelligence">artificial intelligence</a> (XAI) is a set of processes and methods that allows human users to comprehend and trust the results and output created by <a href="https://www.ibm.com/think/topics/machine-learning">machine learning</a> algorithms.</blockquote><p>We often interact with AI and get results without knowing how those results were produced. Let’s look at two simple scenarios:</p><ul><li><strong>Student Example:</strong> Imagine a child using AI to solve math homework. The AI gives the right solution, the child copies it, and scores high. But the child still doesn’t understand <em>how</em> it was solved. When faced with a similar problem in an exam without AI, they struggle.</li><li><strong>Business Example:</strong> A business leader asks AI for suggestions to improve their company. The AI provides ideas, but without explaining its reasoning, the leader risks implementing something unsuitable. AI only sees the data it was fed, while the business leader has broader context that the AI may have overlooked.</li></ul><p>Another real-world case: The following article shows an HR team was fired after a director discovered that their system was <strong>auto-rejecting all applicants</strong> — even qualified ones. Without explainability, such flaws can remain hidden until it’s too late.</p><p><a href="https://www.linkedin.com/posts/arsab%C3%AD-betizagasti_this-headline-says-it-all-an-entire-hr-team-activity-7360935656493121537-e4WR?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAABLQ6dUB0BZUmKG8aZowAFyvXb1vRxHAZFo">HR team fired for auto-rejecting applicants, including director. The power of human connections in creative careers. | Arsabí Betizagasti posted on the topic | LinkedIn</a></p><p>The point is: AI should not just provide results — it must also <strong>show its reasoning</strong>, so humans can verify, challenge, and improve its outputs. The path to becoming <a href="https://addyo.substack.com/p/the-ai-native-software-engineer">AI-native</a> demands discernment — blindly following the system could prove disastrous.</p><h3>Why AI needs to be Accountable?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xxuk39NfgrBynAqG8YBgw.png" /><figcaption>AI generated image</figcaption></figure><p>As AI becomes part of daily life, accountability is critical — especially in <strong>healthcare, law, and finance</strong>, where decisions have serious consequences.</p><p>Transparency builds trust and also makes it easier to detect mistakes or biases. Every major technology has gone through phases before becoming reliable — airplanes, cars, even computers. But AI is unique: it learns from <strong>feedback loops</strong>, meaning once it absorbs bias, it’s hard to “unlearn.” That makes early accountability and explainability all the more important.</p><p>XAI ensures that AI’s decisions are not only accurate but also <strong>understandable</strong>.</p><h3>Inside the Black Box: What AI Should Tell Us</h3><p>AI systems involve numerous complex processes, many of which are highly technical and difficult for the average person to grasp. However, there are certain aspects that can be simplified and explained to improve transparency and trust. Below are a few such elements:</p><ul><li><strong>Feature Importance: </strong>This refers to the significance of the input features provided by the user. AI systems can identify which inputs contributed most to a decision and which had minimal impact, along with reasons for both. Since users often supply these inputs, understanding their influence becomes more intuitive.<br> <em>Example:</em> If a doctor inputs symptoms and test results into an AI system, and it predicts a malignant tumor, it’s important to know which inputs led to that prediction. This helps the medical professional evaluate the AI’s reasoning and ensure appropriate treatment. Misinterpretation could risk patient health.</li><li><strong>Visualization Tools: </strong>Visualization techniques like heatmaps and highlighted overlays help explain AI decisions in image-based tasks. These tools show which parts of an image influenced the outcome, providing intuitive insight into the AI’s thought process.<br> <em>Example:</em> In facial recognition, a heatmap could highlight facial regions used to determine gender. This makes the AI’s decision more transparent and helps detect any possible bias or errors.</li><li><strong>Simplified Models and Explanations: </strong>AI models can be complex and difficult for non-experts to understand. Simplifying their structure and providing clear explanations of the most influential factors helps users engage with the system more confidently.<br> <em>Purpose:</em> This makes the AI’s logic more accessible, enabling better trust, validation, and decision-making — especially in critical areas like healthcare or finance.</li></ul><h3>Challenges in XAI</h3><p>While Explainable AI sounds ideal, making it practical is not easy:</p><ul><li><strong>Complex Models:</strong> Deep learning models with millions of parameters are hard to unpack. Explaining every detail could overwhelm users with noise instead of clarity.</li><li><strong>Right Level of Explanation:</strong> Not every explanation is useful. A doctor, lawyer, or business manager each needs a different level of detail. Striking the right balance between simplicity and technical accuracy is challenging.</li><li><strong>Risk of Oversimplification:</strong> Simplifying explanations may hide important nuances. Too much simplification can be misleading.</li><li><strong>Performance Trade-offs:</strong> Sometimes, models built for better explainability are less powerful than “black box” models. Balancing accuracy and explainability is a constant struggle.</li><li><strong>Evolving Systems:</strong> AI systems learn and adapt over time, meaning explanations must also evolve. Keeping explanations consistent and up to date is a big challenge.</li></ul><h3>Conclusion</h3><p>AI’s ultimate promise is not just accuracy — but <strong>trustworthy accuracy</strong>. Explainable AI (XAI) bridges the gap between raw machine intelligence and human understanding.</p><p>By making AI transparent and accountable, XAI ensures we can trust its decisions, detect errors, and prevent hidden biases from shaping critical outcomes.</p><p>In short:</p><ul><li><strong>AI makes predictions.</strong></li><li><strong>Explainable AI makes those predictions understandable.</strong></li></ul><p>And only when AI is understandable, can it truly be <strong>trusted and reliable</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52eb0713598" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bias in AI: Why Fairness in Machine Learning Matters]]></title>
            <link>https://medium.com/@josna.cardoza_81503/bias-in-ai-why-fairness-in-machine-learning-matters-80bc7fce765b?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/80bc7fce765b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[bias]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[bias-in-ai]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Thu, 21 Aug 2025 08:25:12 GMT</pubDate>
            <atom:updated>2025-08-21T08:25:12.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R5IpQjtsspu1C9Kf.jpg" /><figcaption>Image source: Tidal Equality</figcaption></figure><blockquote>What is AI bias?</blockquote><blockquote>Artificial intelligence bias, or <strong>AI bias</strong>, refers to systematic discrimination embedded within AI systems that can reinforce existing biases, and amplify discrimination, prejudice, and stereotyping.</blockquote><p>One well-known example is the bias in <strong>facial recognition systems</strong>. Studies have shown that these systems are often far less accurate for people with darker skin tones. In fact, a 2019 U.S. government report found that many facial recognition algorithms performed significantly worse at identifying African-American and Asian faces compared to Caucasian faces.</p><p><a href="https://www.bbc.co.uk/news/technology-50865437">Facial recognition fails on race, government study says</a></p><p>And bias isn’t just in older systems. A 2024 study of ChatGPT’s image generator showed a tendency to depict <strong>CEOs as men</strong> and <strong>secretaries as women</strong>, reinforcing traditional gender stereotypes.</p><p><a href="https://nypost.com/2024/04/26/tech/chatgpt-overwhelmingly-depicts-financiers-ceos-as-men-and-women-as-secretaries-study/">ChatGPT overwhelmingly depicts financiers, CEOs as men - and women as secretaries: study</a></p><h3>Why This Matters More Today</h3><p>As AI becomes part of our <strong>daily lives and work</strong>, it’s more important than ever to pay attention to bias. AI learns from feedback. If people ignore biased outputs, the system may assume they’re acceptable. If users respond with anger or abusive language, the model might learn toxic behavior instead.</p><p>This means <strong>every interaction matters</strong> — and the consequences can ripple far beyond individual use cases.</p><h3>How Does Bias Enter Model Design</h3><p>Bias in AI can emerge from several sources:</p><ul><li><strong>Data Bias</strong> — Training data that doesn’t represent all groups fairly. For example if IVR is trained on one English accent, it may struggle to understand the people across the globe.</li><li><strong>Algorithmic Bias</strong> — When model design or feature selection amplifies inequality. For example the loan applicants might get rejected because of regionality even if the applicants are financially responsible.</li><li><strong>Human Bias</strong> — Developers assumptions and decisions that get baked into the system. For example if the developer assumes that the CEO is more likely to be male, the system might generate more images of male CEOs.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQ3bdXctq7DM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQ3bdXctq7DM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQ3bdXctq7DM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/348c45f4647eb79a620aeb1f7e5720c3/href">https://medium.com/media/348c45f4647eb79a620aeb1f7e5720c3/href</a></iframe><h3>Consequences Of AI Bias</h3><p>The consequences of bias in AI can be severe:</p><ul><li>In <strong>healthcare</strong>, even a small bias can lead to misdiagnosis and incorrect treatment plans.</li><li>In <strong>law enforcement</strong>, biased AI tools could lead to false identifications, unfair punishments, and loss of trust in the justice system.</li></ul><p>Since AI lacks empathy or human judgment, blindly following biased systems can create <strong>unfair, unsafe, and unequal outcomes in society</strong>.</p><h3>Improving Fairness in AI Systems</h3><p>Reducing bias is a shared responsibility, but <strong>algorithm developers carry the heaviest weight</strong>.</p><ul><li><strong>Preventing human bias</strong> — Developers must carefully design systems to avoid encoding their own assumptions. Brainstorming and having a different set of eyes review the algorithm before deployment can bring multiple perspectives. Thorough research into the dataset and a deep understanding of the domain also help reduce the risk of human bias creeping in.</li><li><strong>Better data practices</strong> — Training on diverse, representative datasets reduces bias from the start. To ensure datasets are comprehensive, in-depth research should be done to collect as much quality training data as possible. Once data is gathered, multiple rounds of verification are important — for example, checking the ratio of samples across categories. If Category A has 100 samples while Category B has only 5, the dataset is clearly unbalanced. Ensuring categories are more evenly distributed is crucial for fair outcomes.</li><li><strong>Continuous monitoring</strong> — AI systems should be regularly audited and improved as they receive feedback. Users often provide valuable input, so building a streamlined process to capture and act on that feedback ensures it isn’t lost in daily interactions. In addition, continuous testing, auditing, and comparing results over time helps track and mitigate bias as it emerges.</li></ul><p>Because AI works on a <strong>feedback loop</strong>, even a small bias in one decision-making process can grow into much larger problems for society. That’s why fairness must be treated as a core design principle, not an afterthought.</p><h3>Conclusion</h3><p>AI has the power to transform industries and improve lives — but it also has the power to <strong>amplify inequalities</strong> if we don’t address bias.</p><p>Bias can come from data, algorithms, or human decisions, and its consequences can be dangerous in healthcare, justice, and everyday life. To build <strong>trustworthy AI</strong>, we must ensure fairness through diverse training data, ethical model design, and ongoing human oversight.</p><p>In the end, AI is not neutral — it reflects the values and choices of the people who build and use it. Making those choices fair and responsible is the only way forward.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80bc7fce765b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Role of Data in Machine Learning: How Data Shapes AI Success]]></title>
            <link>https://medium.com/@josna.cardoza_81503/the-role-of-data-in-machine-learning-how-data-shapes-ai-success-399a8dc84b82?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/399a8dc84b82</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-quality]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 14:40:14 GMT</pubDate>
            <atom:updated>2025-08-15T14:40:14.731Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrhJLWuqDuDsS4iqSZGdcg.png" /><figcaption>AI generated image</figcaption></figure><p>Artificial Intelligence runs on data. No matter how good your algorithm is, if the data you feed it is garbage, the model is bound to fail.</p><p>One well-known example is Microsoft’s AI chatbot <em>Tay</em>, launched on Twitter in 2016. Tay was designed to entertain and engage people on the platform. However, after learning from toxic online content, it began producing offensive messages and had to be taken down within 24 hours.</p><p><a href="https://www.bbc.co.uk/bbcthree/article/80c259b4-83bd-4125-9047-2ded299f58b1">How the internet destroyed Microsoft&#39;s Twitter bot</a></p><p>In this article, I’ll walk through some of the key data components that make data the foundation of AI’s success — or its failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4gIPs3CWNSltf2dgy7CXQ.png" /><figcaption>AI generated image</figcaption></figure><p><strong>Data Quality vs. Data Quantity in AI</strong></p><p>When training AI models, we often need large amounts of data — but more doesn’t always mean better. In fact, AI models fail due to data issues more often than you might think.</p><p>Training data should be <strong>accurate, relevant, diverse, and consistent</strong>. Raw data rarely comes ready to use, so it’s crucial to <strong>collect, clean, and prepare it</strong> — handling missing values, removing noise, balancing datasets, and minimizing bias.</p><p>Key aspects of data quality include:</p><p><strong>Accuracy —</strong> Since machines learn to make decisions from this data, accuracy is essential for producing reliable predictions.</p><p><strong>Timeliness</strong> — Many AI systems, especially in research or healthcare, require real-time or near-real-time data so decisions reflect the most up-to-date information.</p><p><strong>Completeness</strong> — Missing data can cause AI models to “hallucinate,” leading to unreliable or even dangerous results.</p><p><strong>Data Security</strong></p><p>With the rise of personal AI tools, users are increasingly feeding models their sensitive information. This makes <strong>data safety</strong> more important than ever.</p><ul><li><strong>Encryption</strong> — AI agents often handle user credentials, bank details, or other personal data to complete tasks. Without encryption, this information could be exposed to hackers.</li><li><strong>Auditing</strong> — Regular security audits help ensure that protocols are followed and potential breaches are prevented.</li></ul><p><strong>Data Governance</strong></p><p>Data governance protocols have existed for decades — and they’re just as critical when working with AI.</p><ul><li><strong>Policies and Procedures</strong> — Following governance guidelines ensures data security, quality, and compliance.</li><li><strong>Compliance</strong> — AI systems must adhere to ethical guidelines and legal regulations when processing data.</li></ul><p><strong>Data Availability</strong></p><p>For AI to provide the right information, relevant data must be accessible when needed.</p><ul><li><strong>Integration</strong> — Combining data from multiple sources helps provide a complete and accurate picture.</li><li><strong>Scalability</strong> — As data grows, scalable systems ensure AI can continue accessing and processing it effectively.</li></ul><p><strong>Conclusion</strong></p><p>AI may seem magical, but at its core, it’s simply a reflection of the data it’s trained on.</p><p>Even outside the tech world, it’s important to understand how data influences AI — because knowingly or unknowingly, we are constantly feeding AI systems with our own data. That data can be used to make AI a trustworthy companion… or to lead it astray.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=399a8dc84b82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Data Management for Developers in E-commerce Applications]]></title>
            <link>https://medium.com/@josna.cardoza_81503/exploring-data-management-for-developers-in-e-commerce-applications-b3b6eb0847a3?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3b6eb0847a3</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[e-commerce-solution]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 00:28:36 GMT</pubDate>
            <atom:updated>2024-04-13T00:55:25.844Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of e-commerce, with the rising competition, customers are inclined to switch between platforms based on the benefits. Therefore, businesses must identify and leverage every opportunity to attract and retain customers through continuous engagement. This can be achieved by the data management and strategic utilization of the stored data across various sessions and applications. As developers, we should know the critical role that data management has in building online retail platforms.</p><blockquote><em>“</em>Data management encompasses all the disciplines related to handling data as a valuable resource. It involves the practice of managing an organization’s data so that it can be analyzed for decision-making<em>”</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zZrKswz3ujnbDiY6.jpg" /></figure><p>In this article, we will explore the developers’ approach to data management within e-commerce applications, and understand the business benefits that can be achieved with data persistence.</p><p>As developers, we play a crucial role in designing and implementing data solutions that drive the success and growth of online retail businesses. From defining the data requirements to leveraging data analytics, our decisions and technical expertise can make a significant impact on the overall performance, security, and scalability of the e-commerce platform. Below are a few focus areas for developers while working with data:</p><p><strong>Defining Data Requirement:</strong></p><p>Before storing data, we should have a clear understanding of the data we are capturing. Randomly storing data is unlikely to produce meaningful results. Based on the business requirements, developers should define the data requirements. Once the data requirements are established, two key areas to cover would be, the data modeling and storage solution.</p><p>Data modeling is a crucial task for the developers. In the E-commerce domain, we will have a wide range of interconnected data. Each entity needs to be clearly defined and the relation between the entities must be established.</p><p>The major challenges developers usually face are data redundancy and maintaining data integrity. By properly planning and designing the data model and normalizing the data, we can achieve efficient data storage and retrieval.</p><p><strong>Data Storage and Scalability:</strong></p><p>Changing the database once the data is stored can be a challenging task. It is, therefore, crucial to carefully consider various factors when deciding on storage solutions, such as cost, size, scalability, and support. Understanding the data types, structures, and access patterns is also essential for making an informed decision.</p><p>As the business grows, the storage of extensive data can present various challenges like scalability, reduced performance, etc. Ensuring adequate data storage capacity and processing resources to handle real-time data management and analysis can be a complex and potentially costly endeavor.</p><p>Techniques like data partitioning and sharding are well-known ways to distribute the load and increase data availability. Depending on the data access patterns, caching mechanisms can also be utilized to store frequently accessed data and improve response times.</p><p>While dealing with large data, it is essential to identify strategies for vertical and horizontal scaling to accommodate the growing data and user demands.</p><p>Vertical scaling can be achieved by upgrading the hardware resources (e.g., CPU, memory, storage) of the existing servers. Horizontal scaling involves adding more database nodes or instances to distribute the load across multiple servers.</p><p>Cloud-based database services often offer auto-scaling capabilities, where the infrastructure can dynamically adjust resources based on changing load and demand. Implementing continuous monitoring, failure alerts, and disaster recovery procedures can help ensure the availability.</p><p><strong>Data Security and Privacy:</strong></p><p>Once the data requirements and storage solutions are defined, the primary concern shifts to safeguarding sensitive information. With the escalating threats of unethical hacking and data breaches, the storage of payment details, personal data, and other critical information can pose significant risks. Developers must comply with regulations like the GDPR (General Data Protection Regulation) and the Data Protection Act 2018 while implementing robust security measures.</p><p>Key Security Measures for Developers</p><ol><li><strong>Data encryption: </strong>Customer’s personal information and payment details are highly sensitive data. This data needs to be secured not only while storing but also while the data travels over the network such as API calls. This can be achieved by using industry-standard encryption methods and securely managing the encryption keys.</li><li><strong>Data masking: </strong>Implementing data masking techniques can help reduce the exposure of sensitive data. We can also use the patterns for data masking, in case of data like mobile numbers or email addresses. Data masking is an irreversible process unless used in conjunction with tokenization to preserve the original data.</li><li><strong>Access control and identity management: </strong>Developers should implement role-based access control (RBAC) and maintain detailed audit trails of all data access and modification activities. Incorporating multi-factor authentication can further enhance the security of user accounts and privileged access.</li></ol><p><strong>Data Integrity:</strong></p><p>The continuous processing and access to data by multiple users can pose significant challenges in maintaining data integrity and consistency. This is particularly true in cases involving data conversion or translations, where the risk of data loss or corruption increases. Failing to address these data integrity concerns can lead to a deterioration of the customer experience and, ultimately, the loss of customer trust.</p><p>Approaches to Ensuring Data Integrity:</p><ol><li>Implementing data modeling and data normalization</li><li>Establishing effective entity relationships with primary key and foreign key</li><li>Optimized query performance.</li><li>Implementing ACID (Atomicity, consistency, isolation, and durability) for transactional data</li><li>Proper locking mechanism during data manipulation</li><li>Audit logs for data manipulation</li></ol><p>well-designed and implemented data can unlock a wide range of benefits that support the growth and success of e-commerce businesses.</p><p><strong>Enhancing the customer experience:</strong></p><p>The user experience is a key factor for any successful e-commerce website, that brings customer loyalty. By storing user data businesses can continuously analyze information about user preferences, shopping patterns, and behaviors. Data such as previously browsed and purchased products, as well as items in the customer’s wish list, can be leveraged to predict user preferences and strategically highlight relevant offerings.</p><p><strong>Fast Checkouts:</strong></p><p>If you have come across e-commerce transactions, you may have encountered the option to save payment details and shipping addresses for future use. This is another area where data storage becomes valuable. By storing and utilizing static customer data, such as payment information and delivery addresses, businesses can streamline the checkout process, eliminating the need for repetitive data entry and enhancing the overall customer experience.</p><p><strong>Real-time data availability:</strong></p><p>Particularly in the case of inventory management, data availability plays a vital role in reflecting real-time stock availability. By maintaining visibility into current stock levels and product demand patterns, businesses can efficiently import required products, mitigating the risks of overstocking or going out-of-stock.</p><p>This data-driven approach also provides valuable insights into sales trends, seasonal sales fluctuations, high-demand products, average selling prices, and slow-moving inventory. With these powerful insights, businesses can make informed decisions to optimize their sales and marketing strategies.</p><p><strong>Marketing and Promotions:</strong></p><p>Marketing and promotional efforts can greatly benefit by understanding customer preferences and behaviors. Businesses can strategically promote specific products, deliver personalized advertisements, and offer discounts. This data-driven approach enables businesses to maintain continuous engagement with their customers, effectively nurturing brand loyalty. Furthermore, the ability to send targeted promotional communications can drive increased website traffic and conversion rates.</p><p>Data management is very powerful and useful in e-commerce applications, enabling businesses to enhance the customer experience, streamline transactions, maintain real-time product availability, and strengthen marketing and promotional efforts. However, it is important to navigate the associated challenges of data security, privacy, storage, scalability, and integrity to fully capitalize on the benefits of data persistence and deliver a seamless, secure, and personalized e-commerce experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3b6eb0847a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Power of Event-Driven Architecture in Modern Software Systems]]></title>
            <link>https://medium.com/@josna.cardoza_81503/exploring-the-power-of-event-driven-architecture-in-modern-software-systems-26957cd98d5b?source=rss-19347512be70------2</link>
            <guid isPermaLink="false">https://medium.com/p/26957cd98d5b</guid>
            <category><![CDATA[modern-software]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Josna Cardoza]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 21:34:53 GMT</pubDate>
            <atom:updated>2024-03-22T21:34:53.576Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern software development, Event-Driven Architecture has risen to be powerful, efficient, and adaptable. Where systems communicate through events, to process the change effortlessly and scale systems with ease. And so most businesses use distributed software systems.</p><h4><strong>Understanding Event-Driven Architecture:</strong></h4><p>Event-driven architecture relies on the concept of events. Where any change/communication can be triggered by an event to the responsible services to process it. Two main contributing components are event producers and event consumers. This architecture has allowed asynchronous communication between the services making them more responsive and easily scalable. The following example shows the event-driven way of working in the restaurant ordering process:</p><p>In the online food ordering service, responsiveness is important to provide exceptional service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MQtE8fpAfkDsBKIh.jpg" /></figure><p>The event-driven paradigm establishes real-time communication, and seamless coordination between various parties involved, from the customer to the delivery service. The below image shows the architecture of a food ordering scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GiWDmKfrfPhRitsk.jpg" /><figcaption>Image Credit: altexsoft</figcaption></figure><p>Key concepts in an event-driven architecture are:</p><ol><li>Producers</li><li>Consumers</li><li>Event Bus</li><li>Event Types</li></ol><p>Within an integrated system, a specific service may function solely as a producer, solely as a consumer, or as both producer and consumer, thereby forming a network of microservices that execute discrete tasks either synchronously or asynchronously as dictated by the system’s needs.</p><p>An event bus facilitates the publishing and subscribing to events so that producers and consumers remain decoupled. Various event types can exist, distinguished by their nature and purpose, providing developers with the flexibility to craft user-defined types for enhanced convenience and customization.</p><p>In the above example, the Food Delivery Service consumes the event produced by the User Profile Service and publishes the event to allocate the Deliveryman and to the Restaurant Partner Service allowing both to perform their work asynchronously.</p><p><strong>Benefits of Event-Driven Architecture:</strong></p><ol><li>Loose Coupling: The decoupling of the components through events provides independent services that can be developed, deployed, and scaled. It also makes the system flexible.</li><li>Scalability: An event-driven system enables horizontal scalability to distribute the workloads across multiple instances, ensuring high availability and fault tolerance.</li><li>Real-Time Responsiveness: Because the events can be processed asynchronously, changes reflect in near real-time, providing better end-user service.</li><li>Extensibility and Adaptability: New functionalities can be added seamlessly by introducing new services and can be seamlessly integrated into the architecture without touching the existing system.</li></ol><p><strong>Conclusion:</strong></p><p>While event-driven architecture may seem straightforward to understand and implement, realizing its full potential needs a thorough examination of its principles and patterns. Moreover, it fulfills the dynamic demands of agile development methodologies. Exploring event-driven architecture proves highly beneficial for software engineers aiming to develop the next generation of distributed systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26957cd98d5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>