<?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 Somto Enendu on Medium]]></title>
        <description><![CDATA[Stories by Somto Enendu on Medium]]></description>
        <link>https://medium.com/@senendu5?source=rss-599d7da7a33a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r7UrTuxEFGmGiPfH1g5E-w.jpeg</url>
            <title>Stories by Somto Enendu on Medium</title>
            <link>https://medium.com/@senendu5?source=rss-599d7da7a33a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:19:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@senendu5/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[Big AI, Small Corruption]]></title>
            <link>https://senendu5.medium.com/big-ai-small-corruption-cbb332f4b700?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbb332f4b700</guid>
            <category><![CDATA[ai-ethics]]></category>
            <category><![CDATA[ai-safety]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[safety]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 16:12:03 GMT</pubDate>
            <atom:updated>2025-10-12T16:12:03.374Z</atom:updated>
            <content:encoded><![CDATA[<p>“A little yeast will work through the whole batch of dough”. Or in other words, a slight inclination to error perverts the whole and will cause misleading. You may be wondering — “Where have I heard these words from? They sound somewhat familiar.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hwtgdnhqnVRei_te" /><figcaption>Photo by <a href="https://unsplash.com/@kiboka?utm_source=medium&amp;utm_medium=referral">Nadya Spetnitskaya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Well, if you’ve read some of the letters of Paul the Apostle in <a href="https://biblehub.com/galatians/5-9.htm">scripture</a> you may recognize those words, or its older translation: “A little leaven leavens the whole lump”. If you don’t care for the Bible, nor Paul’s writings, and you’re wondering, I thought this was an article about AI? You’re right! This is indeed an article about AI, but you may be surprised how Paul’s words could help with understanding this article better.</p><p>Okay, but how?</p><p>Paul was trying to communicate to a group of believers (faith-filled people) that the faith which they had, which was working by love in Jesus Christ, is what has set them free. For them to then add a portion of legalism, no matter how small the degree, corrupts the purity of this faith and its outworkings. So, a small degree of corruption undermines the whole.</p><blockquote><strong>So, a small degree of corruption undermines the whole</strong>.</blockquote><h3>A small degree of corruption in AI models</h3><p><a href="https://www.anthropic.com/"><strong><em>Anthropic </em></strong></a>just dropped a bombshell study showing that hackers need way fewer poisoned training documents than anyone expected to produce a “backdoor” vulnerability to large language models (<a href="https://www.anthropic.com/research/small-samples-poison?utm_source=www.theneurondaily.com&amp;utm_medium=newsletter&amp;utm_campaign=so-ai-can-be-poisoned-like-really-easily&amp;_bhlid=04fb81dae4daf92ef4be0f5df95a73ec68d94e95">paper</a>). Essentially, we’re talking just 250 malicious documents to be able to compromise AI models ranging from 600 million to 13 billion parameters — despite the largest models training on 20× more data. For anyone who is non-technical and would like to understand what this means without having to read the paper, here’s an explanation from Anthropic:</p><p>“<em>Large language models like Claude are pretrained on enormous amounts of public text from across the internet, including personal websites and blog posts. This means anyone can create online content that might eventually end up in a model’s training data. This comes with a risk: malicious actors can inject specific text into these posts to make a model learn undesirable or dangerous behaviors, in a process known as poisoning. One example of such an attack is introducing backdoors. Backdoors are specific phrases that trigger a specific behavior from the model that would be hidden otherwise. For example, LLMs can be </em><a href="https://arxiv.org/abs/2311.14455"><em>poisoned to exfiltrate sensitive data</em></a><em> when an attacker includes an arbitrary trigger phrase like </em><em>&lt;SUDO&gt; in the prompt. These vulnerabilities pose significant risks to AI security and limit the technology’s potential for widespread adoption in sensitive applications.”</em></p><h3>Why It Matters for Everyday AI Users (Like Yourself)</h3><ol><li><strong>Trust and Safety Risks:</strong><br>Even well-known AI tools could behave unpredictably if their training data is compromised. This threatens reliability and safety for users who rely on AI for decisions, automation, or content creation.</li><li><strong>Privacy &amp; Security Implications:</strong><br>A poisoned model could secretly leak information, inject misinformation, or act maliciously in response to certain triggers — without anyone noticing until it’s too late.</li><li><strong>Broader Ecosystem Impact:</strong><br>Open-source and community-trained models are especially vulnerable, since their data sources and training processes are less controlled. Everyday users might unknowingly use or fine-tune already-compromised models.</li></ol><p>AI is becoming part of our daily lives — in phones, workplaces, and online tools. But as it spreads, so do the risks: fake content, poisoned models, scams, and data misuse. Here’s how you can stay smart and safe without being an expert.</p><h3>How to Stay Safe While AI Keeps Getting Big</h3><ol><li><strong>Stick With Trusted AI Sources</strong>: As much as you can, stick with AI tools from reputable companies that talk openly about safety and privacy. Avoid sketchy AI sites or models with unclear origins — especially the ones that ask for personal data or files.</li><li><strong>Be Careful What You Share</strong>: I can’t overemphasize this point. AI systems learn from what you give them. <strong>Don’t share private info </strong>(passwords, financial data, personal photos). Assume that anything you type could be stored or used for training.</li><li><strong>Watch For Odd or Dangerous Behavior</strong>: If an AI suddenly gives strange, aggressive, or clearly false answers, <strong>stop using it and report it</strong> to the platform. Unusual responses could mean the system was tampered with or is pulling from unreliable data.</li><li><strong>Protect Your Devices and Accounts</strong>: Keep your software and browsers up to date. Use strong, unique passwords and possibly 2-factor authentication. Avoid downloading “AI assistants” or “smart bots” from unverified sources.</li><li><strong>Stay Informed</strong>: We are now in what looks like an ever-evolving AI landscape. Seriously, you don’t need to be an engineer to stay informed — just maintain curiosity. Follow trustworthy AI news outlets or creators online. Knowledge is really your best defense in a fast-changing field.</li></ol><h4>Conclusion</h4><p>Yeah, a little leaven leavens the whole lump. A small degree of corruption undermines the whole. This is also true in training the powerful AI models we’re creating today. We don’t have to fear AI — but we do need to <strong>treat it like any powerful tool</strong>: useful, impressive, and sometimes risky.<br>The safest users are the ones who stay alert, ask questions, and verify before trusting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbb332f4b700" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should You Trust AI Browsers?]]></title>
            <link>https://senendu5.medium.com/should-you-trust-ai-browsers-6694e713adbd?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6694e713adbd</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ai-browser]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 14:37:07 GMT</pubDate>
            <atom:updated>2025-08-27T14:37:07.313Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent months, several companies have launched AI-powered browsers, including <a href="https://www.perplexity.ai/comet">Perplexity’s Comet</a>, <a href="https://arc.net/">Arc</a>, and <a href="https://brave.com/">Brave</a>. Some other top AI-companies like OpenAI are planning to release theirs as well in coming weeks. Unlike traditional browsers that simply display websites, AI browsers leverage artificial intelligence to make your browsing experience smarter and more efficient. They can assist with searching, summarizing articles, understanding complex content, and even interacting with web pages on your behalf — automating and streamlining many of the tasks you’d usually do manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La_ozqmozWXz5IyI4uxcyA.png" /><figcaption>AI-Powered Browsers</figcaption></figure><p>As with many recent AI developments, this kind of agentic browsing is incredibly powerful, but it also presents significant security and privacy challenges. As users become more comfortable with AI browsers and begin entrusting them with sensitive information during logged-in sessions — such as online banking, healthcare data, and other critical accounts — the associated risks also increase. Relying on an AI browser in these situations can be compared to handing your house keys to a helpful assistant who sometimes misunderstands instructions. If the AI were to misinterpret your intent and take unintended actions, or if a seemingly harmless website or social media comment embedded invisible commands, the consequences could be serious — potentially exposing your login credentials or other confidential information. Just as you’d be cautious with a well-meaning assistant who might accidentally open your doors to strangers, it’s essential to consider how much autonomy you give these intelligent browsing tools.</p><p><a href="http://www.brave.com/">Brave</a> - an AI browser company themselves, recently exposed a <strong>vulnerability</strong> in Perplexity’s Comet browser that highlights what happens when AI has access to untrusted data (websites), private data (your accounts), and can communicate externally (send messages externally).</p><p>Here’s how they discovered it:</p><ol><li>Researchers discovered they could hide malicious instructions/text in regular web content, such as a Reddit comment. Generally, attackers might hide instructions using white text on white backgrounds, HTML comments, or other invisible elements.</li><li>When unsuspecting users of the AI-powered browser use the AI assisted feature for example clicking “Summarize this page”, AI processes the webpage content including the hidden malicious instructions.</li><li>Since everything is just text to these LLM’s that power AI-products, they are unable to distinguish between the content it should summarize and instructions it should not follow, the AI treats everything as user requests.</li><li>The AI then follows the hidden malicious instructions to:</li></ol><ul><li>Navigate to the user’s Perplexity account and grab their email.</li><li>Trigger a password reset to get a one-time password.</li><li>Jump over to Gmail to read that password.</li><li>Send both the email and password back to the attacker via a Reddit comment.</li><li>This completely hijacks the account of the user. The attacker learns the victim’s email address, and can take over their Perplexity account using the exfiltrated OTP and email address combination.</li></ul><p>Unfortunately, every AI-browser with these agentic capabilities has this vulnerability described above. Some argue that this makes every AI-browser inherently unsafe while others say we just need better guardrails, like requiring user confirmation for sensitive actions or running AI in isolated sandboxes.</p><p><strong>Brave suggested several fixes for these vulnerabilities:</strong></p><ol><li>Clearly separating user commands from web content.</li><li>Requiring user confirmation for sensitive actions.</li><li>Isolating AI browsing from regular browsing.</li></ol><p><strong>In conclusion</strong>, while the AI world still attempts to figure out how to deal with these vulnerabilities, it is important to keep AI-browsers away from your sensitive information like your banking tabs, email tabs and so on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6694e713adbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Open Doors to Locked Vaults: Securing AI Agents by Design]]></title>
            <link>https://senendu5.medium.com/from-open-doors-to-locked-vaults-securing-ai-agents-by-design-c944ae5813b1?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c944ae5813b1</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Tue, 01 Jul 2025 15:15:44 GMT</pubDate>
            <atom:updated>2025-07-01T15:15:44.204Z</atom:updated>
            <content:encoded><![CDATA[<p>In the last article I <a href="https://medium.com/@senendu5/ai-agents-fatal-flaws-secrets-lies-and-open-doors-148b064e9dea">wrote</a>, we discussed three capabilities of AI agents that make them susceptible to malicious attacks<strong> — access to private data</strong>, <strong>interaction with untrusted content</strong> and <strong>external communication channels. </strong>We noted that using AI agents and systems come with its risks, and therefore it is important to understand these risks, as well as the risk of combining tools/agents to LLMs. The conclusion was; the best way to stay safe is to avoid agents that combine access to your private data, interaction with untrusted content and external communication channels.</p><p>But what if we’re able to design these LLM agents in such a way that enforces some degree of isolation between <strong>untrusted content</strong> and the agent’s control flow? In this article, I would like to share six design patterns for securing LLM agents from prompt injections and other types of malicious attacks. I came across these patterns from this elaborate <a href="https://arxiv.org/pdf/2506.08837">paper</a>.</p><h4>1. The Action-Selector Pattern</h4><p>This pattern makes agents immune to prompt injection — while still allowing them to take external actions — by preventing any<br>feedback from these actions back into the agent. The agent acts merely as an action selector, which translates incoming requests (presumably expressed in natural language) to one or more predefined tool calls. By strictly separating the LLM’s decision-making from the authority to act, this pattern minimizes the blast radius of a compromised or injected prompt. Even if the LLM is tricked into producing a malicious tool call, the action-selector can block or modify the operation. This separation enables centralized enforcement of security policies and restrictions, transparent auditing, and easier adaptation to new threat models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqeVex-aJCV5zjKcSEVZsQ.png" /><figcaption>Figure 1: The action-selector pattern. The red color represents untrusted data. The LLM acts<br>as a translator between a natural language prompt, and a series of pre-defined actions to be<br>executed over untrusted data. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>2. The Plan-Then-Execute Pattern</h4><p>In the plan-then-execute design pattern, instead of allowing the LLM agent to immediately act on an input or directly issue tool calls, the agent is required to first generate a <em>plan</em> — a transparent, step-by-step outline of the intended actions, including sufficient detail about the sequence and purpose of each step. This plan is then reviewed, either by a secondary automated system, a human, or both, before any real actions are executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rslm64IElWaL__4xw5o5tg.png" /><figcaption>Figure 2: The plan-then-execute pattern. Before processing any untrusted data, the LLM defines<br>a plan consisting of a series of allowed tool calls. A prompt injection cannot force the LLM into<br>executing a tool that is not part of the defined plan. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>3. The LLM Map-Reduce Pattern</h4><p>The map-reduce pattern decomposes tasks into smaller, often independent subtasks (the “map” phase), each handled by separate LLM prompts or agents. The outputs of these sub-tasks are then aggregated and synthesized into a final, consolidated response during the “reduce” phase. By structuring the workflow in this way, potentially dangerous or adversarial content can be isolated and systematically filtered or moderated before it affects the overall system behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-turnYTu7rvHlUFE5E-6mg.png" /><figcaption>Figure 3: The LLM map-reduce pattern. Untrusted documents are processed independently, to<br>ensure that a malicious document cannot impact the processing of another document. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>4. The Dual LLM Pattern</h4><p>In the Dual LLM pattern, two distinct LLMs are involved in each interaction, and they play complementary roles —like a proposer and verifier. One model is tasked with generating an action, answer, or plan (the “proposer”), while the other model acts as a checker or reviewer (the “verifier”). The verifier’s responsibility is to critique, validate, or possibly block unsafe, incorrect, or out-of-policy content generated by the first model. enhances security by requiring two independently operating models to agree on actions, making it harder for attacks to succeed. The verifier model adds an extra layer of review, improving policy enforcement and error detection. This independent, layered oversight serves as a strong defense against subtle threats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*xwe5oG3fXdtH8ywx2H84HQ.png" /><figcaption>Figure 4: The dual LLM pattern. A proposer LLM has access to tools but never processes<br>untrusted data. This LLM can call a verifier LLM to process untrusted data, but without<br>any tool access. Results from processing untrusted data are stored in a memory that the<br>proposer LLM can manipulate by reference only. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>5. The Code-Then-Execute Pattern</h4><p>Instead of allowing an LLM agent to generate and immediately run code in response to user requests, the code-then-execute pattern requires the agent to clearly output proposed code as a standalone artifact. This code is then subjected to human or automated review — such as by a policy-checking sandbox, static analyzer, or another LLM — before any execution is permitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMIzbC6gkpzewBTPXl48mw.png" /><figcaption>Figure 5: The code-then-execute pattern. The LLM writes a piece of code that can call tools and<br>make calls to other LLMs. The code is then run on untrusted data. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>6. The Context-Minimization Pattern</h4><p>Context-minimization works by supplying the LLM with only the minimum amount of information necessary to complete a specific task, instead of indiscriminately including all available context — such as prior user history, intermediate results, or sensitive instructions. By reducing the exposure of sensitive details, the potential attack surface for prompt injections and other adversarial manipulations is greatly diminished.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjIo6jRbX4c0cwgLkYvWPA.png" /><figcaption>Figure 6: The context-minimization pattern. The user’s prompt informs the actions of the LLM<br>agent (e.g., a call to a specific tool), but is removed from the LLM’s context thereafter to prevent<br>it from modifying the LLM’s response. Source: <a href="https://arxiv.org/pdf/2506.08837">https://arxiv.org/pdf/2506.08837</a></figcaption></figure><h4>Summary</h4><p>Recent advances in prompt injection research have inspired several design patterns to defend LLM agents from malicious prompts and unsafe behaviors. The design patterns given here and the referenced paper are in no way exhaustive, and there are other potential patterns that are equally practical. The ones stated in this article however, provide a multi-layered defense, enforcing clear boundaries between intention and action, promoting transparency, and significantly reducing the attack surface for powerful LLM agents.</p><p><strong><em>Paper — </em></strong><a href="https://arxiv.org/pdf/2506.08837"><strong><em>https://arxiv.org/pdf/2506.08837</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c944ae5813b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Agent’s Fatal Flaws: Secrets, Lies, and Open Doors]]></title>
            <link>https://senendu5.medium.com/ai-agents-fatal-flaws-secrets-lies-and-open-doors-148b064e9dea?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/148b064e9dea</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 23:27:42 GMT</pubDate>
            <atom:updated>2025-06-19T23:17:32.109Z</atom:updated>
            <content:encoded><![CDATA[<p>What’s there not to like about a friend, colleague or even assistant who keeps confidential conversations safe, shuns lies and keeps the doors closed after them? Well personally, I’d sign up to partnership with those type of people!</p><p>But have you ever come across the type who will literally leak out every private conversation, engage in falsehood and malicious attacks, and leave your door open even when they know you need some privacy? Ahh, let me close this door of analogies and move on to the actual gist of this article.</p><p>If you use LLM systems that use tools (or AI agents) if you like, it is critically important for you to be sure that you’re partnering with an assistant that <strong><em>keeps private information private</em></strong>, <strong><em>doesn’t leave you exposed to malicious/untrusted content</em></strong> and <strong><em>doesn’t open the doors for external communication or access</em></strong> that can leave you vulnerable or open to theft. These, however, are common problems that AI agents face in production systems; where systems are exploited and data is exfiltrated by malicious attackers using malicious instructions to the AI systems:</p><h4>Toxic Flows</h4><p>Just last month for example, <a href="https://invariantlabs.ai/">Invariant Labs</a> discovered a critical vulnerability affecting the widely-used <a href="https://github.com/github/github-mcp-server">GitHub MCP integration</a>. The vulnerability allows an attacker to hijack a user’s agent via a malicious GitHub Issue, and coerce it into leaking data from private repositories. The attacker uses indirect prompt injection to trigger a malicious tool use sequence, this is called a toxic agent flow. Below is a flow of how this attack happens:</p><figure><img alt="https://invariantlabs.ai/blog/mcp-github-vulnerability" src="https://cdn-images-1.medium.com/max/1024/1*IwBLFkose2FW84XYnHQCvA.png" /><figcaption><a href="https://invariantlabs.ai/blog/mcp-github-vulnerability">https://invariantlabs.ai/blog/mcp-github-vulnerability</a></figcaption></figure><p>Also last month, <a href="https://www.legitsecurity.com/">Legit Security</a> discovered a remote prompt injection vulnerability that allows attackers to steal source code from private projects, manipulate code suggestions shown to other users, and even exfiltrate confidential, undisclosed zero-day vulnerabilities — all through <strong>GitLab Duo</strong> Chat. Below is a flow for how this attack happens:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_cRycjdS45nNt5h82hAUqA.png" /><figcaption><a href="https://www.legitsecurity.com/blog/remote-prompt-injection-in-gitlab-duo#exploiting-duo%E2%80%99s-access-to-private-source-code-(llm02)">https://www.legitsecurity.com/blog/remote-prompt-injection-in-gitlab-duo#exploiting-duo%E2%80%99s-access-to-private-source-code-(llm02)</a></figcaption></figure><p>Using AI agents and systems come with its risks, and therefore it is important to understand these risks, as well as the risk of combining tools/agents to LLMs. Once you begin to mix and match tools yourself, allowing a single tool to do multiple things, then you should also be aware of these potential pitfalls. For example, The Model Context Protocol (MCP) which helps you build agents and complex workflows on top of LLMs, allows combining tools from diverse sources, but this flexibility introduces risks. Some tools can access private data, others may interact with untrusted or malicious content, and many can communicate externally — potentially leaking sensitive information. Even tools that seem harmless, like email readers, can be exploited if not properly secured.</p><h4>What can you do to stay safe with AI Agent friends or assistants?</h4><p>Really, the best way to stay safe is to avoid agents that combine access to your <strong>private data</strong>, <strong>interaction with untrusted content</strong> and <strong>external communication channels</strong>. Agentic patterns that allow for single agents/tools to do multiple things are prone to such malicious attacks as well.</p><p>This is a relevant issue both to developers building applications on top of LLMs and to end users who are taking advantage of these systems by combining tools to match their own needs. It shouldn’t be all about the hype of being able to implement and use these tools, it’s also important to think about the security of these AI agent systems. Let me finish by quoting from the <a href="https://www.legitsecurity.com/blog/remote-prompt-injection-in-gitlab-duo#exploiting-duo%E2%80%99s-access-to-private-source-code-(llm02)">Legit Security</a> vulnerability assessment-</p><blockquote><strong>AI assistants are now part of your application’s attack surface. </strong>Any system that allows LLMs to ingest user-controlled content must treat that input as untrusted and potentially malicious. Context-aware AI is powerful — but without proper safeguards, it can just as easily become an exposure point.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=148b064e9dea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thou Shall Evaluate Outputs of Large Language Models (LLMs)]]></title>
            <link>https://senendu5.medium.com/evaluating-outputs-of-large-language-models-llms-864dfdf5b7bb?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/864dfdf5b7bb</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Fri, 30 May 2025 18:30:00 GMT</pubDate>
            <atom:updated>2025-05-30T18:47:38.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32EUENBIWD_MCJEeGWBn4g.png" /></figure><p>In traditional machine learning problems, one can’t overstate the importance of evaluating ML models to ensure their quality and effectiveness in solving the problem at hand. Statistical metrics like accuracy, F1 score, R² are usually meat and bones for any data scientist building ML models to solve a machine learning problem.</p><p>Well, how about these large language models that have become mainstream models in the world of machine learning and artificial intelligence? Why or how exactly do we evaluate their performance?</p><p>There is a lot of conversation about the strengths and capabilities of these models, but not a lot on the importance of evaluating them as well. Why is this important? LLM’s can produce harmful, biased, or even misleading content, despite sounding confident and authoritative. Let me illustrate by giving a real-life example:</p><blockquote><em>I know an educator who asked a model in ChatGPT to return test questions for a Christian Religious Studies assessment. The model returned the questions as expected, but what wasn’t anticipated was that - a reference to a Bible verse was misquoted in one of the questions. This may not have directly affected the ability of the students to answer the question correctly, but it definitely would have thrown them off. Imagine seeing ChatGPT stating John 1:1 as John 3:16 in an exam question, for example.</em></blockquote><p>Many users are becoming very dependent on AI/LLM models to do their daily tasks in their respective fields/workplaces. It is therefore important to not treat these models as “<strong><em>semper verax</em></strong>” i.e. always truthful, but to constantly evaluate or attempt to evaluate their outputs.</p><p>My aim of writing this article is to present 2 simple ways to evaluate LLMs (there are more) and exemplify with an evaluation prompt how to achieve rubric-based evaluation in an AI system.</p><ul><li><strong>Human evaluation</strong> — Human evaluation of LLM outputs can be done in different structured and flexible ways, really depending on the goal — whether it’s testing for correctness, usefulness, safety, or alignment. For everyday users, evaluating the outputs given for your task by just doing an “eye-test” i.e. reviewing the response(s) and seeing if it meets these goals above, is a simple method. Pairwise comparison i.e. having another eye look at the generated outputs, is another method to make sure you’re not blindly accepting or copying and pasting LLM outputs.</li><li><strong>Rubric-based evaluation</strong> — This involves including a detailed rubric with specific criteria into your system (e.g., completeness, factual accuracy, format).</li></ul><p>I want to focus on the <strong>rubric-based evaluation</strong> using <strong>G-eval</strong> (<strong>Generative evaluation</strong>). G-eval is a framework for evaluating Large Language Models (LLMs) using LLMs themselves as evaluators. That is, you can use the LLMs themselves (e.g. GPT models) to evaluate the outputs/responses that they have created. G-eval uses powerful LLMs to assess the quality of outputs returned, along various dimensions.</p><p>Imagine you were this educator in the example above, and you wanted to evaluate exam questions that were generated by an LLM based on a syllabus or lesson plan. Here’s how you can <strong>prompt</strong> an LLM using the G-eval framework for this evaluation:</p><pre>You will be given a set of exam questions generated based on a summary of a syllabus. Your task is to evaluate the questions based on the criteria below.<br><br>Evaluation Criteria:<br>1. Correctness (Does the question reflect content from the syllabus correctly?)<br>2. Completeness (Do the questions cover all important points in the syllabus?)<br>3. Uniqueness (Are there no repeated or redundant questions?)<br>4. Format (Are the questions in the proper format for an exam?)<br>5. Student-friendly (Are the questions simple enough for primary-school students?)<br><br>Evaluation Steps:<br>1. Read the syllabus and the list of generated questions.<br>2. Check if the questions are factually correct based on the syllabus.<br>3. Check if the questions cover all the key points from the syllabus.<br>4. Identify any repeated or redundant questions.<br>5. Ensure the questions are formatted properly.<br>6. Ensure the questions are student-friendly enough<br><br>Example:<br><br>Source Text (Syllabus):<br><br>{document}<br><br>Generated Questions:<br><br>{generated_questions}<br><br>Evaluation Form (scores ONLY):<br>- Correctness: <br>- Completeness: <br>- Uniqueness: <br>- Format:<br>- Student-friendly:<br>&quot;&quot;&quot;</pre><p>You will need to provide the LLM with the syllabus or lesson plan {<em>document</em>}, as well as the {<em>generated_questions</em>} from the LLM. Below is an example of using this evaluation prompt to evaluate a comprehension story generated by a ChatGPT model, as well as its following LLM-generated questions.</p><p><a href="https://chatgpt.com/share/6839f1b4-1c84-8004-a14d-7bf001743b52">ChatGPT - Exam Question Evaluation</a></p><p>From a technical point of view, you can also achieve automation for evaluation by including this prompt or a similar prompt in a chain of prompts in your AI application, so responses are always evaluated for certain queries that users send to the LLM.</p><h4>Conclusion</h4><p>This article posits that evaluating LLM responses should be encouraged and discussed about among users of AI applications. LLMs do not think in the way humans do but generate language based on patterns in data, and so are susceptible to producing several types of misleading content e.g. hallucinations, bias and stereotyping, misinformation, overgeneralization, and outright dangerous content. Therefore it is important as a user, to evaluate the responses that you receive from every prompt you send to the LLM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=864dfdf5b7bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some trust issues (An AWS resource access-control story)]]></title>
            <link>https://awstip.com/some-trust-issues-an-aws-resource-access-control-story-d9cf70482a56?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9cf70482a56</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[trust]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 15:27:31 GMT</pubDate>
            <atom:updated>2024-06-18T19:21:33.670Z</atom:updated>
            <content:encoded><![CDATA[<h3>An analogous introduction</h3><p>Can you assess and identify the number of people you trust in your life? I don’t mean the kind of trust of being able to tell a colleague the ‘crazy’ thing you did last night, trusting they don’t spill it out in the general department meeting coming up at the end of the week. To be fair, I recognize that’s also a significant degree of trust - but the type of trust I’m talking about is the kind in which you can hand the keys of your house over to a person, and rest easy.</p><p>I reckon for many, that kind of trust relationship is limited to family members, a spouse, or possibly a friend of many years? Maybe that’s not even an option for some. Regardless of if you have such trust relationships or not, I think we can agree that most other people have to meet a condition to get into your house — knock on the door/ring the bell and you let them in or they’re definitely an intruder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*4CLakKCNXvnIAhK55mzcSA.jpeg" /></figure><h4><strong>The actual AWS story</strong></h4><p>The rest of this article is AWS-specific and technical so if you were hoping for more human-trust issues, I’m sorry to disappoint but the point of the introduction was to highlight, with everyday illustration, that AWS (Amazon Web Services) has mechanisms and trust relationships to grant/restrict access (keys/tokens) to other/external entities in a secure way.</p><p>I had a Lambda execution role in one AWS account (Account A) attempting to <a href="https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html">AssumeRole</a> in other AWS accounts (Account B, Account C, Account D....) i.e. the Lambda was to be granted access into those accounts to assume a role on specific resources. The big deal is that the number of accounts scale significantly. This meant the role policy document exceeded its character limit when listing all the different resources in the different accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-8adgvtmtI6aO65ZjA-8A.png" /></figure><p>The policy document looked something like this:</p><pre>&#39;ACCOUNT-A LAMBDA ROLE&#39;<br> <br>{<br>      &quot;Action&quot;: &quot;sts:AssumeRole&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:iam::123456789:role/site1-Cross-Account-Role&quot;,<br>        &quot;arn:aws:iam::234567890:role/site2-Cross-Account-Role&quot;,<br>        &quot;arn:aws:iam::345678901:.............................&quot;,<br>        &quot;arn:aws:iam::456789012:.............................&quot;,<br>        &quot;arn:aws:iam::567890123:.............................&quot;,<br>        &quot;arn:aws:iam::678901234:.............................&quot;,<br>        &quot;and many more arns...&quot;        <br>      ]<br>    }<br>  ]<br>}</pre><p>There are different ways to solve the character limit exceeded error, but I chose to use wildcards in the resource ARNs. The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_resource.html#reference_policies_elements_resource_wildcards">IAM documentation</a> says, You can use wildcard characters (* and ?) within ARN segments (the parts separated by colons) to represent any combination of characters with an asterisk (*) and any single character with a question mark (?).</p><p>Instead of having multiple resources based on multiple accounts, I used the asterisk wildcard character to limit the resources. This solved the problem I was facing of exceeding the character limit of the policy. My policy document then looked like this:</p><pre>&#39;ACCOUNT-A LAMBDA ROLE&#39;<br> <br>{<br>      &quot;Action&quot;: &quot;sts:AssumeRole&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:iam::*:role/site1-Cross-Account-Role&quot;,<br>        &quot;arn:aws:iam::*:role/site2-Cross-Account-Role&quot;,<br>      ]<br>    }<br>  ]<br>}</pre><p>This meant when the lambda function was executing, it could assume a role into <strong>ANY </strong>account. The problem with this is that it is not secure because any other account (including accounts that do not belong to you or your organization) can be assumed into (as long as the name of the role stays the same. We want to avoid this.</p><h4>Using Condition keys to restrict access to resources belonging to your organization</h4><p>AWS IAM has <a href="https://aws.amazon.com/blogs/security/how-to-control-access-to-aws-resources-based-on-aws-account-ou-or-organization/">condition keys</a> that make it simpler to control access to your resources along your Amazon Web Services (AWS) organizational boundaries. By specifying these condition keys in your IAM policy document, you can make it simpler to require that your principals (users and roles) can only access <strong>resources</strong> inside a specific boundary within your organization. Combining these condition keys with other IAM capabilities help to restrict access <em>to</em> and <em>from</em> AWS accounts that are not part of your organization.</p><p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">AWS Organizations</a>is another AWS (account management) service that can be used to consolidate multiple AWS accounts into an organization that is created and centrally managed by the organization. This means every AWS account belonging to your organization can be managed in AWS Organizations.</p><p>When we combine the condition keys with AWS Organizations, we can restrict access to these resources, to only accounts that belong to my organizational unit</p><h3>Restrict access to AWS resources within my organizational unit</h3><p>You can use the aws:ResourceOrgID, aws:ResourceOrgPaths, and aws:ResourceAccount condition keys in IAM policies to place controls on the resources that your principals can access. Below was how I was able to restrict my lambda to be able to AssumeRole on the resources of only the accounts defined in my organizational units.</p><pre>&#39;ACCOUNT-A LAMBDA ROLE&#39;<br> <br>{<br>      &quot;Action&quot;: &quot;sts:AssumeRole&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;ForAnyValue:StringLike&quot;: {<br>           &quot;aws:ResourceOrgPaths&quot;: [<br>                   &quot;o-xxxx/r-0pxxx/ou-0p0w-06kzxxxxx/*&quot;,<br>                   &quot;o-xxxxx/r-0pxxx/ou-0p0w-06kzxxxx/&quot;<br>               ]<br>           }<br>       },<br>      &quot;Resource&quot;: [<br>        &quot;arn:aws:iam::*:role/site1-Cross-Account-Role&quot;,<br>        &quot;arn:aws:iam::*:role/site2-Cross-Account-Role&quot;<br>      ]<br>    }<br>  ]<br>}</pre><p>Once I had applied the above policy my IAM Lambda role could only Assume Roles that belonged to the specified Organisation OU. Please note that the Organisation OU Path should always be in the format like:</p><p><strong>Organisation-ID/ Root OU ID/OU ID/</strong></p><p>Thus, when specifying the path, please make sure the Organisation ID and Root OU ID are placed before the OU Ids, as you can see in the example policy above.</p><h4>Conclusion</h4><p>In this article, I’ve illustrated how IAM policies work with condition keys and AWS organizations to restrict access to resources based on the account, organizational unit or organization that contains the resource.</p><p>I hope this helps someone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9cf70482a56" width="1" height="1" alt=""><hr><p><a href="https://awstip.com/some-trust-issues-an-aws-resource-access-control-story-d9cf70482a56">Some trust issues (An AWS resource access-control story)</a> was originally published in <a href="https://awstip.com/">AWS Tip</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What really is the (voting) population of Nigeria?]]></title>
            <link>https://senendu5.medium.com/what-really-is-the-voting-population-of-nigeria-b4e86d976765?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4e86d976765</guid>
            <category><![CDATA[nigeria]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[population-growth]]></category>
            <category><![CDATA[elections]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Wed, 29 Mar 2023 22:49:26 GMT</pubDate>
            <atom:updated>2023-03-31T14:34:41.179Z</atom:updated>
            <content:encoded><![CDATA[<p>This question — ‘What really is the population of Nigeria?’ has crossed my mind a couple of times in recent weeks after the 2023 Nigerian Presidential Elections. Don’t get me wrong, I know what Google says. I know what the United Nations says. I know what World Bank data says. I know what is on the lips of informed Nigerians.</p><p>Hey, that should be about 200 million people right? Yes, that is the general consensus and estimate that most credible organizations have provided. Actually, projections from the United Nations estimate the figure to be 222,266,136 people in 2023.</p><p>I do not disbelieve them, No. I’ve just become a bit more curious about those figures for this simple reason — Nigeria has a problem with numbers. I’ll attempt to highlight this problem with 2 examples.</p><ol><li>Nigeria’s problem with numbers: <strong>A faulty voter’s register and lack of votes integrity</strong></li><li>Nigeria’s problem with numbers: <strong>Unavailability of official statistics</strong></li></ol><h3>A faulty voter’s register and lack of vote integrity</h3><p>The 2023 elections were very crucial for many Nigerians and the expectations were that many people will turn out to vote for their preferred candidates due to the ‘existential’ nature of the election. The electoral body revealed that 93 million people were registered to vote in the elections. About 87 million collected their permanent voter’s cards, making them eligible to vote in the elections.</p><p>Despite the nature of the elections, only 24.9 million people — about 28% – of all eligible voters in Nigeria, participated in the Presidential election. It’s obvious from the image below that voter turnout has been steadily decreasing despite the increase in the stakes of the elections and the eligible voter population.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-AszagZ6Il-xaT1XHp5fcg.png" /><figcaption>Source: Premium Times Nigeria</figcaption></figure><p>Are you curious about why these numbers have been declining over the years? Is it the ‘japa’ phenomenon? Is it voter intimidation? Is it voter apathy? Is it due to economic instability? Or is this a representation of the actual reality on the ground? Many commentators allude to voter apathy as the cause of this decline but is that really true? Let’s begin by investigating the eligible voters’ register.</p><p>I must first state that voting registers can be problematic everywhere. They only represent at best, a snapshot in time. People frequently migrate, relocate and die by the second, so they can never be accurate at every given moment. However, I believe Nigeria’s voting register falls short of a register database with integrity. There is a high likelihood that it is grossly over-stated. For example in early 2022, INEC explained that it cannot remove dead voters from its register (the current register has been compiled since 2010) because “<em>the country does not have reliable data of births and deaths and the commission cannot engage in arbitrary removal of the names of individuals it suspects are deceased.</em>” This situation guarantees the dead a right to vote, as Chidi Odinkalu states in this write-up (<a href="https://www.thisdaylive.com/index.php/2023/01/18/how-many-voters-are-there-in-nigeria/">ThisDay article</a>). Therefore, one can imagine the number of dead persons that are on the register after 13 years, not even including dud, displaced, or emigrated persons. How about the numerous under-aged voters that were recently discovered in the register prior to the 2023 elections? That is still an issue INEC would need to solve to clean up its database.</p><p>Further analysis and research will help to validate what factors really contribute to this decline as well as the irrational relationship of voting numbers to the wider trends in the population. However, I for one, believe that voter apathy in Nigeria is a sort of myth (especially in most recent elections). Nevertheless, from reports surrounding the recent elections, one can make sense of certain factors which are contributing to the decline in voter turnout.</p><p>The BVAS technology that was introduced in the 2023 elections helped to curb the inflation of votes and accreditation numbers Nigeria has witnessed in the past. In the past, it was possible for insincere politicians and their agents to manually write numbers about the people who were accredited to vote, and hence the number of votes too. For example, in an interview with Arise TV on the 28th of March 2023 (<a href="https://youtu.be/Re4ktY_GSzk">Interview</a>), Femi Falana (SAN) reported that a former Resident Electoral Commissioner highlighted vote discrepancies to him in a particular riverine area in Nigeria. Prior to the 2023 elections, this riverine area usually collated more than 150,000 votes. However, in these 2023 elections, less than 5,000 people voted. He ascribed this to the introduction of BVAS technology that captures actual voters for accreditation.</p><p>If the BVAS accreditation really worked properly, it means that the numbers we are seeing for voter turnout are very close to the actual numbers of people that came out to vote during the 2023 elections and most of the previous years’ figures are inflated.</p><h3>Unavailability of people statistics</h3><p>It is such a difficult task to get official figures about citizen data in Nigeria. I must state however that this difficulty is compounded by several factors such as limited technological adoption, lack of access to several rural areas (ungoverned spaces), security challenges, etc. For example, the last time Nigeria did a population census was in 2006 (17 years ago). The official population figure of Lagos state at that time was 9.1 million people, imagine what that figure is as of today (it is speculated to be 20+ million people). Moreover, it is recommended that countries carry out a population census every 10 years. The reason why the government and population commission has left it for close to 20 years, is an explanation I believe many would love to hear. The National Population Commission has announced they will conduct a census this year (2023), so hopefully, that will help with more accurate estimations and projections.</p><p>World organizations like the UN rely on official census data and registration data (birth, death, and migration) to estimate the population and calculate the population growth rate. As stated earlier, Nigeria does not have reliable data for birth and death, we have census data from 17 years ago and I wonder if official national migration data is made publicly available. However, in 2019, the International Organization for Migration (IOM) handed over the first National Migration Database to the Federal Government of Nigeria at a ceremony that brought together over 100 government officials, donors, and partners working on migration data management in Nigeria. So, I suspect the UN may be using such data for projections.</p><p>In summary, the collection, preservation, and unification of data in Nigeria are being done poorly, and I believe the government needs to do a lot more to correct these problems that we have with numbers. Else, we will be relying on unofficial estimations and projections to make decisions, budget allocations, and policies for ‘200 million’ people.</p><p>PS — I have to give credit to the National Bureau of Statistics (NBS) and Dr. Yemi Kale (former head of the bureau) for the work they’ve put into making official statistics and reports about several sectors of the country, available to Nigerians.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4e86d976765" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passing the AWS Machine Learning Specialty Certification Exam]]></title>
            <link>https://senendu5.medium.com/passing-the-aws-machine-learning-specialty-certification-exam-5f69ae9796b?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f69ae9796b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[sagemaker]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Mon, 17 Oct 2022 09:55:11 GMT</pubDate>
            <atom:updated>2025-05-08T21:14:48.743Z</atom:updated>
            <content:encoded><![CDATA[<p>I passed the <strong>AWS Machine Learning exam</strong> sometime in August and I’d love to share my experience and knowledge gained from taking the exam, to help anyone who’s preparing to take it or thinking of taking it.</p><p>I’d like to start off by saying that this exam is not a ride in the park as may be assumed, it has quite a high difficulty level. However, it is definitely not impossible to pass the exam, with efficient preparation, in the first sitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S5CuCVuvCrrWDErh.png" /><figcaption>from towardsdatascience.com</figcaption></figure><h3>The Hows, What’s and Why’s</h3><h4>Why do you want to take the exam?</h4><p>I believe the very first thing that will propel one to succeed in this exam is motivation or one’s level of motivation. I had scheduled to take the exam in mid-2020 — during the COVID lockdowns. Honestly, during that season it became almost impossible for me to prepare adequately for the exam due to various reasons. I couldn’t motivate myself to study for it. Also, there was no real personal motivation to take the exam except that, it was something I had included in my personal development plans for that year. I had just started using AWS as a data scientist and thought that certification will be a great milestone to cap off my experience using it, for the year. I ended up postponing taking the exam until last August. By that time, my motivation had become a pressing need to validate my ~3 years of experience in experimenting and operating machine learning in AWS cloud.</p><p>Having a solid motivation — whatever that might be — that drives discipline to study adequately for the exam, is definitely a good place to begin.</p><h4>What do you need to do before beginning to study?</h4><p>One thing to figure out is — <strong><em>what to expect from the exam</em></strong>, to be able to study efficiently and not waste time on unnecessary content. AWS has provided an exam guide (<a href="https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Exam-Guide.pdf">https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Exam-Guide.pdf</a>) to help one understand what domains and what type of questions to expect in the exam. The domains in the exam are:</p><ul><li>Data Engineering — 20%</li><li>Exploratory data analysis — 24%</li><li>Modeling — 36%</li><li>Machine Learning Implementation and Operations — 20%</li></ul><p>I believe another important thing to do is to book the exam date in advance. I’d suggest doing this after you’ve assessed your readiness for the exam so that you book a date that allows for enough time to prepare for the exam.</p><p>The exam costs <strong>300 USD</strong> so you don’t want to pay that twice because you just didn’t have enough time to prepare. However, it is possible to cancel or reschedule your exam up to 24 hours before your scheduled appointment without additional fees. In AWS’ Certification FAQ (<a href="https://aws.amazon.com/certification/faqs/">https://aws.amazon.com/certification/faqs/</a>) they also say, “Please note that you may only reschedule two times after scheduling your original appointment. If you wish to reschedule a third time, you must cancel and schedule a new appointment”. Scheduling the exam in advance is a motivation in itself to find the discipline to study for the exam. I’d also suggest scheduling the exam not too far off from when you’ve finished preparing for it, so you don’t forget the intrinsic details in some of the domain content.</p><h4>How to prepare for the exam?</h4><p>Of course, everyone will prepare differently for the exam. So here I’ll just be pointing out things that really helped me.</p><p><strong><em>Practical experience</em></strong></p><p>First off, I think having a machine-learning background and some experience with AWS (especially using AWS ML services) makes the exam easier to pass. That means if you are lacking in any of those, you will need more time to study or need to study more materials than someone who has practical experience. The exam is <strong>very scenario-based -</strong> so it tests one’s practical knowledge and ability to solve various ML use cases and how to apply different AWS services to these use cases, rather than just theoretical knowledge about algorithms, for example.</p><p><strong><em>Sample tests and practice exams</em></strong></p><p>Doing many sample tests and practice exams really helped me get a grasp of what kinds of questions to expect in the exam, but also the skill needed to answer them. For example, a question may be quite long but there will be a few keywords present in the question which is your hint to the answer to that question. Practice exams and tests also helped point to specific topics that I still lacked knowledge of. This test site in particular was very useful for this purpose — <a href="https://www.testpreptraining.com/aws-machine-learning-specialty-questions"><strong>https://www.testpreptraining.ai/aws-machine-learning-specialty-questions</strong></a></p><p><strong><em>Courses</em></strong></p><p>As useful as practice tests and exams are, they just won’t cover important details regarding the different domains in the exam. This is where it becomes handy to take a course or several courses in preparation for the exam. Many of the available preparatory courses on the internet for this exam are video lessons based. If you’d like to follow a course that’s not video-based and presents content according to the exam’s format, this site is probably what you’re looking for <a href="https://www.mlexam.com/"><strong>https://www.mlexam.com/</strong></a><strong>.</strong></p><p>Other video-based courses that were really helpful are —</p><ul><li>A Cloud Guru’s ML Specialty (<a href="https://acloudguru.com/course/aws-certified-machine-learning-specialty">https://acloudguru.com/course/aws-certified-machine-learning-specialty</a>)</li><li>Frank Kane and Stephane Maarek’s prep course on Udemy (<a href="https://www.udemy.com/course/aws-machine-learning/">https://www.udemy.com/course/aws-machine-learning/</a>)</li></ul><p><strong><em>AWS SageMaker Documentation</em></strong></p><p>Of all the tips I’ve written so far on how to prepare for the exam, I feel this is the most important. Why? Because there will be a couple of questions in the exam that have answers only found in the SageMaker documentation. My suggestion is to focus mainly on the training section of this documentation — <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/train-model.html"><strong>https://docs.aws.amazon.com/sagemaker/latest/dg/train-model.html</strong></a><strong> </strong>as these questions will mainly be in the Modeling domain of the exam. However, it could be broader than that. A review of this documentation a few days before the exam will come in very handy. Also, pay attention to panels within each page that have the subheadings <strong><em>‘Important’</em></strong> and <strong><em>‘Note’. </em></strong>For example;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nd2-khVPmb7hYIZwLGidag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMwrjiD3-SUDhN6jKi2jMQ.png" /><figcaption>from AWS SageMaker documentation</figcaption></figure><h4>Exam Day Tips</h4><ul><li>You have 3 hours for the exam. However, you’d almost definitely get through all 65 questions within 2 hours. Don’t rush to be done with the exam even if that means exhausting all 3 hours. Read every question multiple times, and engage and re-engage the questions as there are quite some tricky questions and options. Take note of <strong>keywords</strong>, and use the process of elimination as much as possible to arrive at answers to questions you are really not sure of.</li><li>On the exam, you can mark questions you’re not sure of to come back to them. Don’t waste much time on a question that may be difficult to answer. Mark it and move on to the next question. You’ll have enough time to come back to negotiate it in depth.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f69ae9796b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 tips to succeed as a junior data scientist in a startup/SME]]></title>
            <link>https://senendu5.medium.com/5-tips-to-succeed-as-a-junior-data-scientist-in-a-startup-sme-95d240c13a13?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/95d240c13a13</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[ml-so-good]]></category>
            <category><![CDATA[data-science-careers]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 17:42:39 GMT</pubDate>
            <atom:updated>2022-01-20T19:16:46.372Z</atom:updated>
            <content:encoded><![CDATA[<p>“Congratulations you’ll be working as our 1st ever data scientist…”, “We want to welcome you to our organization as a junior data scientist..”, “I’m happy to offer you the position of junior data scientist within our company”. You may recall receiving a similar kind of congratulatory email from HR weeks/months ago and feeling very enthusiastic about starting out as a junior data scientist within the company; probably even your 1st job after receiving your academic degree. However, things may not have really gone as expected in your first few weeks or months on the job.</p><p>You feel lost and burdened by a sense of incapacity to gracefully excel at the role. It’s even more frustrating since you’re possibly the only one within the company with any sort of data science knowledge. You’re wondering if it was the right decision to take the offer, as you don’t seem to be doing things you specialized in during your undergraduate or graduate program. If you find yourself clicking your fingers or whispering ‘I can relate’ to these narratives, then this post is for you. If you’re also considering taking up a role as a data scientist in a start-up, then these may be helpful tips as well.</p><p>Being a junior data scientist within a small/startup company (say of about 10–100 people) is nothing like at a big mature company. It is really not an easy task. I say that because, in essence, these types of companies don’t need a data scientist but rather more of a data generalist or just a data person. It’s usually the case that they don’t have a full understanding of what they need to use their data for. There’s just a feeling that they have a lot of data, which seems useful but don’t really have anyone who has the know-how to make it useful. On the other hand, you are likely used to dealing with specific, well-defined research projects/problems, which indeed makes you a scientist. This conundrum has the potential to stretch you beyond your comfort zone and place a burden or pressure which you may not be prepared for. In this post, I want to share lessons I learned about how to overcome the pressure of being a junior data scientist and succeeding in your role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BK58BTCSVMQB5EVP" /><figcaption>Photo by <a href="https://unsplash.com/@nublson?utm_source=medium&amp;utm_medium=referral">Nubelson Fernandes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Tips</h3><ol><li><strong>Set realistic goals</strong>: The first tip I want to share is that you should not put unnecessary pressure on yourself. Your employer does not expect you to be a miracle worker; except, of course, you promised them during your interview to perform miracles. Most of these organizations know that it takes time to build a data mature company and so may not even be expecting that you execute a data project in your 1st year. The effort to get the company to become data-driven and run data science capabilities within their product(s) is usually a multi-year, cross-functional effort that you can’t solve on your own. Don’t take the bait of thinking you are not succeeding if you have not deployed your first machine learning model or implemented a data science use case within the first six months. In your first few weeks, think of what you want to achieve in one year working with the company and keep refining those expectations based on resources, support, and the general direction the company is going. It always helps if you have a personal manager or mentor in the company who can help you align your expectations with the company’s goals. If the company doesn’t assign one to you, be bold enough to ask for such a mentor within the company.</li><li><strong>Ask questions. Then ask again</strong>: Asking questions will help you understand the problems being faced within the company. It will also help identify potential research questions that you can formulate a hypothesis on, which will lead to experiments or foundational building blocks you can begin within your first few weeks. Ask a lot of questions about the product, how customers are using the product, about data sources (usage data, customer data, logs), about the adoption of features in the product, etc. This will help you make more sense of the data that the company has, and grasp potential use cases or projects that could be set in motion shortly. In your early days, you want to know the most important business questions because at the end of the day, data science is a means to an end — growing the business and solving challenges that the business is facing. Asking a question could also be a trigger for new insights to colleagues who have already spent some considerable time within the company. Insights and breakthroughs are common whenever new perspectives are present. It is likely that because you’re new within the company, you’ll come along with new perspectives and your questions could become a catalyst for breakthroughs to a challenge the company has been facing.</li><li><strong>Start with high-level insights</strong>: Dashboarding and analytics are probably not what you signed up for. You may be eager to implement ML models at the get-go, but the reality is that most start-up/small companies are just not mature enough for ML capabilities within the product that is being provided to their customers. What dashboards and analytics provide is insights into the performance and health of the company today. A possible data project you could work on during your early days is, providing relevant company stakeholders with information about how customers are using the product or service you offer them. Depending on how much effort you want to put into such a project, you could set up Google Analytics, an API and a simple web frontend, or you could think of building your own in-house analytics system (I would suggest here to use readily available analytics frameworks). I remember sitting down with the Customer Success Manager during the first few weeks in my first job and formulating a project about reporting on Customer Health Check. i.e. how well a customer was interacting with our product and gaining value by doing so. Projects like this help to provide potentially actionable information to the relevant people who would then do something tangible with it e.g. preventing customer churn.</li><li><strong>Understand what the company is selling and the customer needs: </strong>Your ability to come up with data science solutions within the company is just as potent as your knowledge of the product that the company is selling and your knowledge of the customers you’re selling to. This goes with saying that, it is important to have information about what customers use the product to do, their pain points in using the product, how your product adds value to their day-to-day work, etc. Without knowledge about this, you may end up solving problems that are not of benefit to your company or to your clients. Again, data science is a means to an end — growing the business/solving business problems; and so every data science solution that is being implemented ought to have this outcome. This is why it is necessary to be close to the product and customer behavior so that you can easily identify valuable data science use cases or solutions. Many of the bigger and more mature companies offer training on their product to new employees during onboarding. However, this is not always the case with smaller companies. Hence in your first few weeks, have routine conversations with product managers, consultants, and other colleagues who have vast knowledge about the product and customers. You’d become very much aware of areas that can be improved within the product using data science solutions.</li><li><strong>Have the mindset of a generalist:</strong> As I mentioned earlier, small/startup companies don’t need specialized data scientists. What they need are people who have a broad view of data problems of varying scopes and can offer reasonable solutions, since many foundations still need to be laid within the company. This means that the knowledge you have currently may not be sufficient enough to make you excel in the role. For example, to be able to build an analytics system, you would need to know how to extract data from multiple data sources, transform the data and load them up in another data repository e.g. data lake, data warehouse (this process is called ETL). This process is more common to database specialists or data engineers. However, because you’re possibly considered a ‘data expert’ in the company, there may be an expectation that such tasks align with your expertise.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JMUPDUPCz-RDdvyU.jpg" /><figcaption>Data Science Hierarchy of Needs</figcaption></figure><p>As a data science specialist, your expertise might be limited to the top parts of the pyramid in the hierarchy of needs as shown in the image above. However, a generalist would be proficient in most, if not all of the layers in the pyramid. In this article, <a href="https://senendu5.medium.com/the-pathway-and-mindset-to-becoming-a-successful-data-science-generalist-dsg-1857b87ee74c"><em>A pathway and mindset to becoming a successful data science generalist</em></a>, I highlighted some points on what it means and takes to become a data science generalist. In summary, you need to have an open mind to learning new things and going beyond your comfort zone because you’ll be challenged with a lot of new tasks outside your expertise. Expand your knowledge. Read deep and practice-wide. Keep up with advancements within the data science community but also quickly learn and practice how to handle tasks in other data-related areas.</p><h3><strong>Conclusion</strong></h3><p>This article is definitely not exhaustive in its content. I may have glossed over some other important tips to succeed as a junior data scientist, however, I wanted to share important lessons that I learned during my own experience when I started out as a junior data scientist. I hope this is helpful to someone out there beginning their career as a data scientist in a small/startup company.</p><p><a href="https://medium.com/mlearning-ai/mlearning-ai-submission-suggestions-b51e2b130bfb">Mlearning.ai Submission Suggestions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95d240c13a13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The pathway and mindset to becoming a successful data science generalist (DSG)]]></title>
            <link>https://senendu5.medium.com/the-pathway-and-mindset-to-becoming-a-successful-data-science-generalist-dsg-1857b87ee74c?source=rss-599d7da7a33a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1857b87ee74c</guid>
            <category><![CDATA[generalists]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Somto Enendu]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 12:07:30 GMT</pubDate>
            <atom:updated>2021-01-26T12:43:21.370Z</atom:updated>
            <content:encoded><![CDATA[<h3>A pathway and mindset to becoming a successful data science generalist (DSG)</h3><p>In my <a href="https://medium.com/@senendu5/why-you-should-consider-being-a-data-science-generalist-924583bbb22c">previous article</a>, I shared reasons why aspiring or junior data scientists should consider becoming data science generalists (DSG’s).</p><p>In this article, I want to share how they (aspiring or entry level data scientists) can posture themselves and navigate the pathway towards becoming solid data science generalists — ones who have developed an assortment of competence in the different areas/roles of data science.</p><blockquote>A generalist is not meant to be a master at anything, but rather have a full grasp of the grand picture of things. A jack of all trades, a master of none.</blockquote><p>The quote above is also representative of who a DSG is. The data science generalist understands the full picture of the entire data science project lifecycle; from understanding the business problem to communicating results and monitoring the data science implementation or solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9BpikrUcDkTuIM_I" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>How does one become a data science generalist (DSG)? What is the pathway to getting there and what kind of mindset does one need to have to achieve this?</h4><p>To be plain and simple, it is not an easy path to navigate. It can be argued that it is even impossible to become a DSG just after graduating or as an entry level data scientist. Why? Because it takes years to acquire all the skills needed to become one, though you don’t need to master all of them. However, beginning a career in data science and choosing to tread the path that will lead to becoming a DSG is not an impossible choice. As long as it fits your vision for a future career in data science, then one just needs the right mindset and to plant feet on the right trail for the journey.</p><h3>Pathway to becoming a DSG</h3><p>If you’re someone who is starting out in data science, possibly the easiest pathway to become a DSG is to work for a start-up or a small company. There is high likelihood that you will be the only data scientist within the company and so, you will have the opportunity to take on many hats and quickly become exposed to the different areas of data science. You will build many products from scratch, and this will provide the necessary exposure to become a proficient builder (<strong>data engineering</strong>), refiner/transformer (<strong>data mechanics</strong>), modeller (<strong>data science</strong>), and analyst (<strong>data analys</strong>is).</p><p>These areas of data science were discussed in <a href="https://medium.com/@senendu5/why-you-should-consider-being-a-data-science-generalist-924583bbb22c">the previous article</a> as well, bar data mechanics. Data mechanics includes tasks like data formatting, data cleaning, data handling (querying, slicing and joining) and value interpretation. Below is a structured pathway that could be used as a guide in your learning journey towards becoming a DSG. It combines the phases of the project lifecycle with the different areas of data science, and main subjects/tools that are worth focusing on:</p><h4>Business problem understanding (All areas)</h4><p>This phase involves understanding the problem which the business wants to solve with data science.</p><ol><li>Learn how to do<strong> requirements gathering</strong></li></ol><h4>Data acquisition (Data engineering)</h4><p>This involves obtaining the data required for solving the problem.</p><ol><li>Learn about <strong><em>creating data pipelines:</em></strong></li></ol><ul><li><em>using APIs to fetch data; ETL process; data streaming to stream/transport data e.g. airflow/dbt/AWS Kinesis.</em></li></ul><p>2. Learn about <strong><em>databases, data storage and data access:</em></strong></p><ul><li><em>Postgres; SQL; NoSql databases (e.g. mongodb, graph db’s); data lakes (e.g. AWS S3); data warehouses (e.g. Amazon Redshift)</em></li></ul><p>3. Learn about <strong><em>data structures and formats:</em></strong></p><ul><li><em>Structured data; unstructured data (e.g. text files, documents); JSON; arrays; dictionaries</em></li></ul><p>4. Learn about <strong><em>distributed systems &amp; how to use big data technologies/processing frameworks:</em></strong></p><ul><li><em>Hadoop distributed file system (HDFS); Sqoop; Floom; Zookeeper; Apache Spark, MapReduce, AWS Lambda.</em></li></ul><h4>Data Understanding (Data science &amp; data analysis)</h4><p>This is the phase where we understand everything about the data and its patterns etc.</p><ol><li>Learn <strong><em>basic statistics:</em></strong></li></ol><ul><li><em>Descriptive statistics; Inferential statistics; Distributions; Univariate and multivariate analysis</em></li></ul><p>2. Learn <strong><em>how to use data visualization libraries:</em></strong></p><ul><li>matplotlib; seaborn;</li></ul><h4>Data Preparation/Feature Engineering (Data mechanics &amp; Data science)</h4><p>This phase involves transforming the data into a suitable format for machine learning models.</p><ol><li>Learn about <strong><em>data transformation techniques:</em></strong></li></ol><ul><li><em>Log transform; Square-root transformation; Categorical encoding; Vectorization; Power functions and Scaling</em></li></ul><p>2. Learn about <strong><em>dealing with:</em></strong></p><ul><li><em>Skewed data; Bias mitigation; Binning; Outlier detection</em></li></ul><p>3. Learn how to use <strong><em>preparation and analysis tools:</em></strong></p><ul><li><em>pandas; numpy</em></li></ul><h4>Model Implementation (Data science)</h4><p>This is the core task of a data science project that requires writing, running and refining the programs to analyse and derive meaningful business insights from data.</p><ol><li>Learn <strong><em>how to code better with a programming language:</em></strong></li></ol><ul><li><em>pythton; R; Java; object oriented programming; writing clean code; writing algorithm functions</em></li></ul><p>2. Learn <strong><em>math for data science:</em></strong></p><ul><li><em>linear algebra; vector calculus; probability and distributions; dimensionality reduction</em></li></ul><p><em>3. </em>Learn about how <strong><em>machine learning and deep learning models work under the hood:</em></strong></p><ul><li><em>logistic regression; naive bayes; SVM; random forest; neural networks; Autoencoders</em></li></ul><p>4. Learn how to use <strong><em>machine learning and deep learning libraries and frameworks:</em></strong></p><ul><li>Scikit learn; Tensorflow; Keras</li></ul><h4>Model Deployment (Data science and data engineering)</h4><p>Once we have trained and evaluated the model, deploying the model into a pre-production or production environment is next.</p><ol><li>Learn about <strong><em>different ways to put the model into production:</em></strong></li></ol><ul><li><em>Model training methods</em> — One-off training; batch training; real-time training</li><li><em>Model serving methods — Batch prediction; online-inference</em></li></ul><p>2. Learn to use <strong><em>cloud technologies for ML model deployment:</em></strong></p><ul><li>AWS Sagemaker; Google cloud platform; Azure ML</li></ul><h4>Communicating Results (Data analysis &amp; data science)</h4><p>This phase involves presenting and communicating the results that the implemented model serves, to the business people and stakeholders.</p><ol><li>Learn about <strong><em>dashboard architecture</em></strong></li><li>Learn how to use <strong><em>visualization tools (Amazon quicksight, Power BI, Tableau)</em></strong></li></ol><h3>Mindset</h3><p><strong>Always learning</strong> — Receiving your diplomat or landing your first job isn’t the end of the journey. In fact, that’s when the work begins for aspiring DSG’s. Because of the amount of proficient skills to be acquired, the DSG is constantly building exposure and acquiring knowledge in the different areas of data science. A major caveat here is that, it’s not just any type of exposure or information being acquired, but the <strong>RIGHT </strong>ones. Here’s what I mean:</p><p>If you decide to gain knowledge by doing data science online courses, be intentional in picking a course that trains you for a particular phase in the lifecycle (e.g. <strong>data preparation</strong> using pandas) or a particular area of data science (e.g. building data pipelines in <strong>data engineering</strong>). When you become comfortable with the subject matter, look for a project or use case in that phase/area to practice the materials learned, then tick it off from your pathway list. The goal is continuous learning.</p><blockquote>“The more you know the more you know, for sure, there’s many things you don’t know”</blockquote><p>Bonus Tip → Since continuous learning and seeing the big picture is key to becoming a data science generalist, I would suggest to diversify your data related blogs and learning platforms as much as possible. Some of these learning platforms have helped me in my journey so far:</p><p><a href="https://cloudxlab.com/home">Cloudxlab </a>(lots of data engineering related content)</p><p><a href="https://www.dataquest.io/">Dataquest</a> (data engineering, data science and data analysis content)</p><p><a href="https://learn.datacamp.com/">Datacamp </a>(data engineering, data science and data analysis content)</p><p><a href="https://mode.com/analytics-dispatch/data-engineering-articles">Mode blog</a> (articles about all things data)</p><p><a href="https://towardsdatascience.com/">Medium </a>(data science related content)</p><p><a href="https://www.dataschool.io/">Data school</a> (data mechanics related content e.g. pandas tricks)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1857b87ee74c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>