<?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 Shrijeeth on Medium]]></title>
        <description><![CDATA[Stories by Shrijeeth on Medium]]></description>
        <link>https://medium.com/@shrijeethsuresh?source=rss-46936426751b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tSOBsH-8kOHFaHPp</url>
            <title>Stories by Shrijeeth on Medium</title>
            <link>https://medium.com/@shrijeethsuresh?source=rss-46936426751b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:51:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shrijeethsuresh/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[What is a Harness? A Simple Introduction]]></title>
            <link>https://medium.com/@shrijeethsuresh/what-is-a-harness-a-simple-introduction-0aa1099adfa3?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0aa1099adfa3</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[harness-engineering]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 16:19:31 GMT</pubDate>
            <atom:updated>2026-07-23T16:19:31.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuNaZquMIOLOpfSl0RCU2g.png" /></figure><p>Hello All! I am going to start a series of blogs where I explain AI Engineering and Harness Engineering from first principles, trying to keep the explanations as intuitive as possible.</p><p>As the first blog, let’s understand one of the most important concept behind modern AI systems: <strong>Harness</strong></p><p>We have all used or at least heard of tools like OpenClaw, Claude Code, Claude Cowork, etc. But have we ever thought about how these tools fundamentally work, and how they are different from simple chat interfaces or raw LLMs like Opus or GPT?</p><p>Today, let me talk about that.</p><p>Before understanding tools like Claude Code, we first need to understand what a Large Language Model (the brain behind ChatGPT and many other AI models) actually is, or more specifically, what problem it is intended to solve.</p><p>In simple terms, a Large Language Model is just a next-token predictor. Its primary goal is simple: given a sequence of text, predict the next token (roughly, you can think of a token as a word or part of a word). So you can think of LLM as an extraordinarily good autocomplete.</p><p>The interesting part is that this process repeats continuously. The newly generated text is appended to the existing text and sent back to the model again to predict the next token. Repeating this loop generates long-form text, instructions, paragraphs, and even code. This generation process is known as autoregressive prediction.</p><p>However, this approach lacks a few things:</p><ul><li><strong>No memory of previous conversations.</strong> Every request starts from scratch unless we explicitly send the previous context or history.</li><li><strong>No hands.</strong> It cannot click on a screen, type into an application, run code, or call an API by itself.</li><li><strong>No stopping logic.</strong> It cannot independently determine whether a real world task has actually been completed successfully or whether it should continue working.</li></ul><p>For example, if you ask an LLM to book a flight, it will generate a paragraph describing how to book a flight. It will not actually book one because it has no connection to the outside world.</p><p>Whereas real work is a continuous loop of <strong>act -&gt; observe -&gt; decide</strong>, along with memory of previous tasks, awareness of context, and a clear goal that tells it when to stop.</p><p>So how do we convert the text generated by an LLM into something that can actually perform work?</p><p>Someone has to write code around the LLM that provides the execution loop, the tools, the memory, and the stopping rules. This surrounding code is often called as <strong>Harness</strong>.</p><p>An <strong>Agent Harness</strong> is the code around an LLM that turns a text predictor into something that can actually carry out tasks. It gives the model tools, captures the results, manages memory, and decides when to stop.</p><p>A simple analogy is this:</p><p><strong>The LLM is the engine. The Harness is the car.</strong></p><p>An engine sitting on a workbench is impressive, but not very useful. Bolt it into a chassis with a steering wheel, brakes, and a fuel line, and it becomes a vehicle that can actually take you somewhere.</p><p>In this blog, I tried my best to give a simple introduction to what a Harness is. I intentionally kept it short because I want to explain each concept in AI Engineering with clarity and detail, one step at a time.</p><p>In the next blog, let’s dive into what actually makes a Harness a Harness.</p><p>Thanks for reading! Please do share your thoughts, and I’d love to have a discussion about it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0aa1099adfa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Is Not Replacing Human Creativity, Humans Are Giving It Away]]></title>
            <link>https://medium.com/@shrijeethsuresh/ai-is-not-replacing-human-creativity-humans-are-giving-it-away-d3f4637dfb5c?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3f4637dfb5c</guid>
            <category><![CDATA[world]]></category>
            <category><![CDATA[human-intelligence]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Fri, 01 May 2026 16:52:59 GMT</pubDate>
            <atom:updated>2026-05-01T16:52:59.690Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone talks about one fear: <em>What if AI becomes smarter than humans?</em></p><p>But I think the bigger danger is something else.</p><p>What if humans slowly stop practicing how to think?</p><p>This thought has been bothering me for a while, especially when I see how people are using AI today. Students use it to finish assignments without understanding the topic. Professionals use it to write reports they could have reasoned through themselves.</p><p>The problem is not AI itself.</p><p>The problem is what happens when convenience becomes dependency.</p><h3>Is AI Truly Innovative?</h3><p>Let us be honest: current AI systems are not truly innovative in the way humans are.</p><p>They are extremely good at learning patterns from massive amounts of human-created knowledge. They can combine ideas, rewrite concepts, generate alternatives, and sometimes produce surprisingly useful solutions.</p><p>But most of that are advanced recombination, not original discovery.</p><p>AI can connect existing dots very well.</p><p>Humans create entirely new dots.</p><p>There is a difference between improving an existing road and discovering a new continent.</p><p>People like Einstein, Ramanujan, or Turing did not just remix knowledge. They changed how humanity understood reality itself.</p><p>Current AI is powerful, but it does not possess that kind of deep intuition, curiosity, or first-principles understanding.</p><p>It predicts.</p><p>It does not wonder.</p><h3>The Real Threat: Cognitive Weakness</h3><p>The bigger issue is not whether AI can think like humans.</p><p>It is whether humans will stop thinking for themselves.</p><p>This has happened before.</p><p>Calculators reduced mental arithmetic.</p><p>GPS reduced our sense of direction.</p><p>Search engines reduced how much we remember.</p><p>Social media reduced attention spans.</p><p>Now AI can reduce writing, reasoning, analysis, and problem-solving.</p><p>This is called <strong>cognitive offloading</strong>.</p><p>Using tools is normal. That is how humans progress.</p><p>But when tools replace effort instead of supporting it, skills begin to disappear.</p><p>You do not notice it immediately.</p><p>You notice it when people can no longer explain what they submitted.</p><p>You notice it when students cannot solve a problem without asking AI first.</p><p>You notice it when professionals struggle to think without autocomplete.</p><p>That is dangerous.</p><h3>More Research, Less Breakthrough</h3><p>Another thing I keep noticing is this:</p><p>The number of research papers keeps increasing, but truly game-changing discoveries feel rarer.</p><p>This is not just a feeling.</p><p>Modern academic systems often reward quantity over quality.</p><p>Publish more.</p><p>Cite more.</p><p>Produce faster.</p><p>Take fewer risks.</p><p>Incremental work becomes safer than bold thinking.</p><p>AI can make this even worse by helping generate more low-value output at high speed.</p><p>More papers do not automatically mean more progress.</p><p>Sometimes it just means more noise.</p><p>Innovation needs deep thinking, not just faster production.</p><h3>AI Can Also Help Great Minds</h3><p>This is where balance matters.</p><p>AI is not the villain.</p><p>Used correctly, it can be one of the greatest tools ever created.</p><p>It can remove repetitive work.</p><p>It can test ideas faster.</p><p>It can help researchers simulate possibilities.</p><p>It can connect knowledge across different fields.</p><p>It can give small teams the power of large organizations.</p><p>One truly thoughtful person using AI well may outperform hundreds who use it passively.</p><p>The issue is not AI.</p><p>The issue is whether we use it as a tool for amplification or as a substitute for effort.</p><h3>What Happens Next?</h3><p>History shows that humans usually learn late.</p><p>We overuse something first.</p><p>Then we see the damage.</p><p>Then society reacts.</p><p>Then balance returns.</p><p>It happened with pollution.</p><p>It happened with unhealthy food systems.</p><p>It happened with privacy and social media.</p><p>AI will likely follow the same pattern.</p><p>The real question is how much damage happens before correction begins.</p><h3>Final Thought</h3><p>I do not think the future will be destroyed because AI becomes too intelligent.</p><p>I think the bigger risk is that humans become too comfortable being intellectually passive.</p><p>The danger is not artificial intelligence.</p><p>The danger is natural intelligence being neglected.</p><p>The future will not belong to people who use AI to avoid thinking.</p><p>It will belong to people who use AI to think better.</p><p>Because in the end, the most powerful technology is still the human mind but only if we continue to use it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3f4637dfb5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Prototype to Production: Developing AI Agents with NVIDIA’s NeMo Agent Toolkit]]></title>
            <link>https://medium.com/@shrijeethsuresh/from-prototype-to-production-developing-ai-agents-with-nvidias-nemo-agent-toolkit-9b834d92a23e?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b834d92a23e</guid>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 19:03:04 GMT</pubDate>
            <atom:updated>2026-04-16T19:03:04.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zl2YEI4vDVtrVYLU" /></figure><p>We all know the feeling. You build an AI agent on your local machine let’s call this “Day 1”. It works. It answers your prompts, calls a tool or two, and feels like magic.</p><p>Then comes “Day 2.”</p><p>Day 2 is when you try to ship that agent to users. Suddenly, you face integration complexities, reliability issues, and the “black box” problem where you have no idea why your agent chose a specific tool or where it got stuck. You need API endpoints, rate limiting, and infrastructure code, forcing you to stop working on agent logic and start working on plumbing.</p><p>This is where the NeMo Agent Toolkit (NAT) comes in.</p><p>Developed by NVIDIA, NAT is an open-source library designed specifically to solve these “Day 2” problems. It bridges the gap between a prototype and a battle-hardened, deployable product. The best part? It is framework-agnostic. Whether you built your agent in LangChain, LlamaIndex, CrewAI, or raw Python, NAT wraps around your code to provide observability, evaluation, and deployment infrastructure.</p><p>Here is how you can use NAT to make your agents reliable.</p><h3>1. Configuration Over Code</h3><p>One of the core philosophies of NAT is that agent parameters like which LLM to use or which tools are available, should not be hard-coded in Python. They should be defined in YAML configuration files.</p><p>This approach allows you to swap out models (e.g., moving from GPT-4 to Llama 3) or change system prompts without touching a single line of application code.</p><p>Here is what a basic NAT workflow configuration looks like:</p><pre># nat_config.yaml</pre><pre>llms:<br>  - type: nim<br>    name: climate_llm<br>    model_name: meta/llama-3.1-70b-instruct<br>    base_url: &quot;https://integrate.api.nvidia.com/v1&quot;<br>    api_key: &quot;${NVIDIA_API_KEY}&quot;<br>    temperature: 0.7<br>    max_tokens: 2048</pre><pre>workflow:<br>  type: react_agent<br>  llm: climate_llm<br>  system_prompt: &quot;You are a knowledgeable climate science assistant.&quot;<br>  tools:<br>    - calculate_statistics</pre><p>With this file, you can run your agent immediately using the NAT CLI:</p><pre>nat run nat_config.yaml &quot;What is the weather trend?&quot;</pre><h3>2. Turning Python Functions into Tools</h3><p>Agents need to do things, not just talk. In NAT, you can register any Python function as a tool. While there is a bit of boilerplate involved, this structure ensures your agent understands exactly how to use the tool.</p><p>NAT uses Pydantic to define input schemas, ensuring the LLM knows exactly what arguments to pass. To register a function, you use the @register_function decorator and yield a FunctionInfo object that describes the tool to the agent.</p><p>Here is how you wrap a simple Python function to make it an NAT-compatible tool:</p><pre>from nemo_agent_toolkit import register_function, FunctionInfo<br>from pydantic import BaseModel, Field</pre><pre># 1. Define the Input Schema<br>class StatsInput(BaseModel):<br>    country: str = Field(..., description=&quot;The country to analyze.&quot;)</pre><pre># 2. Register the function<br>@register_function(config_type=None)<br>def calculate_statistics_tool():<br>    <br>    # The actual logic you want to run<br>    def calculate_statistics(country: str):<br>        # Imagine this fetches real data<br>        return f&quot;Statistics for {country}: 25.4C average.&quot;</pre><pre>    # Wrapper for async execution and argument handling<br>    async def _wrapper(country: str):<br>        return calculate_statistics(country)</pre><pre>    # 3. Yield info so the Agent knows what this tool does<br>    yield FunctionInfo(<br>        fn=_wrapper,<br>        input_schema=StatsInput,<br>        description=&quot;Calculates climate statistics for a specific country.&quot;<br>    )</pre><p>Once registered, you simply list calculate_statistics in your YAML file under tools, and the agent can access it.</p><h3>3. Unified Observability</h3><p>In production, “it works on my machine” isn’t good enough. You need to know why an agent is slow or expensive. NAT provides unified observability through OpenTelemetry. By adding a simple section to your YAML config, you can stream traces to tools like Phoenix (by Arize). This gives you a “single pane of glass” view where you can see every LLM call, tool invocation, token count, and latency metric.</p><p>Add this to your YAML to enable tracing:</p><pre>general:<br>  telemetry:<br>    tracing:<br>      target:<br>        type: phoenix<br>        endpoint: &quot;http://localhost:6006&quot;<br>        project_name: &quot;climate_agent_prod&quot;</pre><p>With this enabled, if your agent takes 20 seconds to answer a question, you can look at the trace and instantly see if it’s because of a slow tool, a network timeout, or the agent getting stuck in a reasoning loop.</p><h3>4. Systematic Evaluation</h3><p>LLMs are non-deterministic. A small prompt change can break your workflow. To prevent regressions, NAT includes a built-in evaluation framework (nat eval).</p><p>You can define a dataset of questions and “ground truth” answers, and NAT will automatically run your agent against them. It can even use another LLM (via libraries like Ragas) to score the accuracy of your agent’s responses.</p><p>The Evaluation Config:</p><pre>eval:<br>  general:<br>    output_dir: &quot;./eval_results&quot;<br>    datasets: [&quot;./my_ground_truth.json&quot;]<br>  evaluators:<br>    - name: answer_accuracy<br>      type: ragas<br>      metric: AnswerAccuracy<br>      llm: climate_llm</pre><p>Running nat eval will generate a report showing exactly where your agent failed, allowing you to catch hallucinations before your users do.</p><h3>5. Deployment as an API</h3><p>Finally, you need to expose your agent to the world. You don’t need to write a custom Flask or FastAPI wrapper. NAT handles this for you.</p><p>By simply running the nat serve command with your config file, NAT spins up a production-ready FastAPI server. It supports WebSockets, health checks, and creates endpoints compatible with standard chat completion schemas.</p><p>In your terminal run:</p><pre>nat serve my_agent_config.yaml</pre><p>You can then query your agent using standard HTTP requests, or connect it to the built-in NAT UI for a polished chat interface.</p><h3>Conclusion</h3><p>The transition from a prototype to a reliable application is often the hardest part of AI development. The NeMo Agent Toolkit doesn’t try to replace the creative work of building agents, it augments it. It handles the infrastructure, visibility, and reliability checks so you can focus on the intelligence.</p><p>Whether you are using LangChain, CrewAI, or custom Python, NAT provides the “chassis and dashboard” for your AI engine.</p><p>Ready to try it?</p><p>You can install it via pip:</p><pre>pip install nvidia-nat</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b834d92a23e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chaos Before Discipline]]></title>
            <link>https://medium.com/@shrijeethsuresh/chaos-before-discipline-0c66464316ec?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c66464316ec</guid>
            <category><![CDATA[motivational]]></category>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Sun, 22 Mar 2026 14:49:48 GMT</pubDate>
            <atom:updated>2026-03-22T14:49:48.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W4zabqqggSERRuOc" /></figure><p>We like to believe discipline is something people start with.</p><p>The person who wakes up at 5 a.m. every day.</p><p>The person who never skips the gym.</p><p>The person who always follows a routine.</p><p>From the outside, it looks perfect.</p><p>But what we rarely see is the beginning.</p><p>The beginning is almost always messy.</p><p>When someone joins the gym for the first time, they are full of motivation.</p><p>They go on the first day.</p><p>Maybe the second day too.</p><p>Then life happens.</p><p>They skip Tuesday.</p><p>They skip Wednesday.</p><p>They promise themselves they’ll go tomorrow.</p><p>Tomorrow becomes next week.</p><p>Most people look at this and think something is wrong with them.</p><p>They think discipline is missing.</p><p>But this is actually where discipline begins.</p><p>In those messy weeks, when someone only shows up three days out of seven, something small but important is happening.</p><p>They haven’t quit.</p><p>They still come back.</p><p>Even if it is only three days.</p><p>Even if it feels inconsistent.</p><p>Even if they feel guilty about the skipped days.</p><p>That small act of returning matters more than perfection.</p><p>Because consistency does not begin as discipline.</p><p>It begins as effort.</p><p>Slowly, something starts changing.</p><p>The gym no longer feels unfamiliar.</p><p>The body starts responding.</p><p>The mind stops resisting as much.</p><p>Without realizing it, three days slowly become four.</p><p>Four days become five.</p><p>And one day, skipping the gym starts to feel strange.</p><p>The same place that once felt difficult to enter now feels like part of life.</p><p>Discipline didn’t arrive suddenly.</p><p>It quietly grew from the chaos.</p><p>This is true for almost everything in life.</p><ul><li>Learning something new.</li><li>Building a routine.</li><li>Writing.</li><li>Improving yourself.</li></ul><p>At the beginning, the process always looks imperfect.</p><p>You start, stop, restart.</p><p>You doubt yourself.</p><p>You feel like you’re failing.</p><p>But if you keep returning, even imperfectly something invisible begins to organize itself.</p><p>Chaos slowly turns into rhythm.</p><p>Rhythm slowly turns into discipline.</p><p>The mistake most people make is quitting during the chaotic phase.</p><p>They think discipline should appear immediately.</p><p>But discipline is not something we start with.</p><p>It is something that grows when we keep showing up, even when things are still messy.</p><p>Like a path slowly forming in a field after many footsteps.</p><p>At first, there is no road.</p><p>Just grass.</p><p>Just uneven ground.</p><p>But if people keep walking the same direction, day after day, a path appears.</p><p>Not because someone forced it into existence.</p><p>But because persistence slowly shaped it.</p><p>Discipline is that path.</p><p>And chaos is where it begins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c66464316ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Barren Ground Outside My Balcony]]></title>
            <link>https://medium.com/@shrijeethsuresh/the-barren-ground-outside-my-balcony-14beab109fa9?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/14beab109fa9</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[motivational]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Sun, 22 Mar 2026 14:48:28 GMT</pubDate>
            <atom:updated>2026-03-22T14:48:28.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LgJEJK1HuFpxRWBL" /></figure><p>Every day, from my balcony, I see a piece of land.</p><p>At first glance, it looks empty. Just dry soil stretching across a wide patch of earth. No garden, no buildings, no fences just a barren ground quietly existing under the sun.</p><p>But if you watch it long enough, you begin to notice something beautiful.</p><p>Life never really leaves that land.</p><p>After the rains, tiny blades of grass begin to appear. Slowly, plants spread across the soil. Small bushes grow. Sometimes even young trees try to rise. Birds visit. Insects crawl through the soil. Snakes appear from nowhere, silently gliding through the grass. Little animals begin to explore the place.</p><p>For a while, the land becomes alive.</p><p>Then people come.</p><p>They worry about the snakes. The insects. The animals that might harm someone. So they bring bulldozers. They burn the grass. They clear everything. The plants disappear. The trees are gone. The soil is left naked again.</p><p>Once more, it becomes barren.</p><p>But the story doesn’t end there.</p><p>Weeks pass. Maybe months.</p><p>And slowly… quietly… life begins again.</p><p>Tiny green shoots push through the dry soil. Grass spreads again. New plants emerge. The insects return. The animals find their way back. Even the snakes reappear, as if the land had called them home.</p><p>It has been happening for years.</p><p>No matter how many times the land is cleared, burned, or flattened, it keeps growing again.</p><p>From my balcony, watching this cycle, I realized something.</p><p>That land is not just land.</p><p>It is life.</p><p>Maybe it is our life.</p><p>Our life often becomes like that barren ground. There are times when everything seems to grow beautifully — our knowledge, our talents, our dreams. These are the plants and trees of our life.</p><p>Beneath them lie our roots — our character, our values, the quiet strength that holds everything together.</p><p>And around us live the animals and insects of life — our relationships. Friends, family, colleagues, people who walk through our lives in different ways.</p><p>For a while, everything feels alive.</p><p>Then sometimes, something catastrophic happens.</p><p>A failure. A loss. A heartbreak. A mistake. A sudden change we never expected.</p><p>It is like a bulldozer passing through our life.</p><p>Things we built disappear. Relationships fade. Confidence burns away. What once felt full suddenly becomes empty.</p><p>For a moment, our life looks barren.</p><p>But if that land outside my balcony has taught me anything, it is this:</p><p>Barren does not mean finished.</p><p>Under the dry soil, the roots are still there.</p><p>Slowly, quietly, something begins again.</p><p>A small idea.</p><p>A new skill.</p><p>A little courage returning.</p><p>A new person entering our life.</p><p>A relationship forming where none existed before.</p><p>Grass grows again.</p><p>Plants return.</p><p>Life rebuilds itself in ways we never planned.</p><p>The land outside my balcony never complains when it is burned. It never refuses to grow again. It simply waits… and then begins again.</p><p>Maybe that is what life asks from us too.</p><p>Not perfection.</p><p>Not constant success.</p><p>Just the quiet courage to grow again.</p><p>Again and again.</p><p>Until the day our story ends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14beab109fa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Single Math Problem Forced AI to Get Smarter]]></title>
            <link>https://medium.com/@shrijeethsuresh/how-a-single-math-problem-forced-ai-to-get-smarter-ca3326757f01?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca3326757f01</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 18:17:30 GMT</pubDate>
            <atom:updated>2025-12-03T18:17:30.310Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDKKdjmj8Zhf10Uu0zla4g.png" /></figure><h3>Introduction: The Ghosts in the Machine</h3><p>Modern artificial intelligence can feel like magic. It powers our recommendation engines, translates languages in real-time, and generates stunning artwork from a simple text prompt. The complexity behind these systems is staggering, built on networks containing billions of connections. It’s easy to assume that such sophisticated technology must have emerged fully formed from a futuristic lab.</p><p>But the truth is far more interesting. Today’s most advanced AI is built on surprisingly simple and initially flawed foundational ideas from decades ago. To truly understand how AI thinks, we have to look back at its origin story and the simple logic puzzle that became a showstopper for the entire field. In this post, we’ll uncover three surprising takeaways from the early history of artificial neurons, revealing how a fundamental crisis forced AI to get smarter.</p><h3>Takeaway 1: AI’s Origin Story is More Biology Than Bytes</h3><p>Before AI was about computers and code, it was about biology and the brain. The original concept for neural networks wasn’t an exercise in computer science, it was a quest to understand the mechanics of human thought. The theoretical foundation was laid long before modern computers even existed.</p><p>The journey began with early hypotheses from thinkers like Alexander Bain (1873) and William James (1890), who proposed that human thoughts and decisions emerge from the complex interactions among billions of neurons in the brain. This idea that intelligence is an emergent property of a biological network remained a philosophical concept until 1943, when neuroscientist Warren McCulloch and logician Walter Pitts developed the first theoretical model of a biological nerve cell.</p><p>This biological blueprint was finally brought to life in 1957 by psychologist Frank Rosenblatt, who created an early hardware implementation called the “perceptron.” The perceptron was designed to be the most straightforward possible implementation of a biological neural cell. Its goal was not just to compute, but to replicate how our own neurons receive signals, process them, and pass them along. This grounding in neuroscience is a powerful reminder that the goal of AI, from its very inception, was to model the most complex system we know: the human brain.</p><h3>Takeaway 2: The First “Artificial Neuron” Had a Crippling Blind Spot</h3><p>The perceptron was a beautifully simple model. In essence, it takes multiple inputs, applies a “weight” or importance to each one, and then produces a single output, typically a 1 or a 0 based on whether the combined, weighted input crosses a certain threshold.</p><p>This simple model was surprisingly powerful. It could successfully learn basic Boolean logic functions like <strong>AND</strong> (which outputs ‘1’ only if <em>both</em> inputs are ‘1’) and <strong>OR</strong> (which outputs ‘1’ if <em>either</em> input is ‘1’). The reason it could handle these functions is a concept called “linear separability.” If you plot the possible inputs and outputs for AND and OR on a graph, you can draw a single straight line to cleanly separate the ‘1’ outputs from the ‘0’ outputs. The perceptron is, at its core, a line-drawing machine.</p><p>But this led to a showstopper, a crisis for the young field of AI, when it encountered the <strong>XOR</strong> (exclusive OR) function. XOR is another simple logic rule: the output should be ‘1’ only if the inputs are different (one is ‘1’ and the other is ‘0’), and ‘0’ otherwise. The simple perceptron fails completely at modeling this function. The reason is starkly visual: there is no single straight line you can draw to separate the ‘1’ outputs from the ‘0’ outputs on a graph. This simple puzzle exposed a fatal flaw that led many to question the viability of neural networks altogether.</p><p>The AND and OR functions possess a linear boundary separating the outputs. For XOR, no such boundary exists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3w14eibnrAx8FzmV3AV7A.png" /></figure><h3>Takeaway 3: The Solution Was Deceptively Simple: Add a Hidden Layer</h3><p>To overcome the perceptron’s crippling blind spot, researchers had to rethink its architecture. The solution that unlocked the future of AI was the <strong>Multilayer Perceptron (MLP)</strong>. The core innovation was to stop relying on a single perceptron and instead arrange them in layers.</p><p>This new “feed-forward” network architecture consists of an input layer, an output layer, and one or more <strong>“hidden layers”</strong> in between. The genius of the hidden layer is that it breaks the problem down into solvable parts. For XOR, one neuron in the hidden layer can learn to identify if <em>at least one</em> input is active (an OR gate), while another learns to identify if <em>not all</em> inputs are active (a NAND gate). The final output neuron then simply learns to activate only when both of those hidden neurons are active, effectively solving the XOR puzzle. This allowed the network to create complex, non-linear decision boundaries instead of just a single straight one.</p><p>The second key innovation was moving away from the perceptron’s simple on/off step function. This new approach centered on a concept called the <strong>“activation function,”</strong> first introduced by Marvin Minsky and Seymour Papert in 1969. These non-linear functions determine the output of a neuron and are what truly allow the network to learn complex patterns. This fundamental idea has evolved but remains central to deep learning today, with modern networks using a variety of activation functions like:</p><ul><li>Sigmoid</li><li>ReLU (Rectified Linear Unit)</li><li>Swish</li><li>SwiGLU</li></ul><p>The introduction of hidden layers and non-linear activation functions transformed a simple line-drawer into a powerful tool capable of learning incredibly complex relationships in data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pcsjk30GgesqeYKDAWFhZw.png" /></figure><h3>Conclusion: From Simple Logic to Complex Thought</h3><p>The history of the artificial neuron is a perfect illustration of scientific progress. The journey took us from a simple concept inspired by biology, to a single perceptron with a fatal flaw, and finally to the multilayered solution that unlocked the door to deep learning and the entire AI revolution we see today. That foundational crisis, the inability to solve a basic logic puzzle forced the creation of the very architectures that now power our most advanced systems.</p><p>It’s a powerful reminder that the fundamental building blocks of today’s most sophisticated AI are rooted in the struggle to overcome the simplest of problems. This leads to a fascinating question for us to ponder: If a problem as simple as XOR required a whole new architecture to solve, what seemingly simple problems are we failing to see that might hold back the AI of tomorrow?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca3326757f01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Open-Source Licenses: A Developer’s Handbook]]></title>
            <link>https://medium.com/@shrijeethsuresh/managing-open-source-licenses-a-developers-handbook-681adc57b1b4?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/681adc57b1b4</guid>
            <category><![CDATA[software-licensing-models]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-licensing]]></category>
            <category><![CDATA[licensing]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 19:40:03 GMT</pubDate>
            <atom:updated>2025-09-28T19:40:03.204Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q4t57vJe6AIr4I6C" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Picking the appropriate open-source license is a technical and strategic choice rather than merely a legal one. Understanding license implications is essential to preventing future issues and guaranteeing the commercial viability of your product, particularly when developing cutting-edge services or tools for a company.</p><p>We frequently make use of a robust ecosystem of open-source libraries and frameworks in the rapidly evolving fields of artificial intelligence and machine learning. Our foundation is open-source, from using HuggingFace Transformers to fine-tune LLMs to using Docker to deploy and build reliable FastAPI backends. However, great power comes with great responsibility, particularly the obligation to understand the licenses that govern these tools.</p><p>Choosing the wrong license can mean anything from unexpected obligations to publicly open-sourcing your proprietary AI models or backend architecture. Let’s demystify it.</p><h3>Copyleft vs Permissive Licenses</h3><p>Let’s define the two main categories that will affect your product development before getting into specific licenses:</p><h4>✅ Permissive Licenses</h4><p>When it comes to commercial products, these licenses are your best friends. They give users a lot of freedom to use, alter, and share the program even in commercial or proprietary applications.</p><p><strong>Minimal Obligations:</strong> Generally, you only need to maintain the license notice and copyright. MIT, Apache 2.0, BSD, and ISC are a few examples.</p><p>If you want to build your AI platforms, data pipelines, and backend services without worrying about your own code becoming open-source, these are usually good options.</p><h4>⚠️ Copyleft Licenses</h4><p>These are the licenses that need careful thought. Although they permit unrestricted use and alteration, you <strong>must</strong> release your source code under the same license if you distribute software that uses them. This is where “viral” clauses frequently appear for organizations.</p><h4>Different “Strengths/Types” of Copyleft:</h4><ul><li><strong>Weak copyleft (e.g., LGPL):</strong> Weak Copyleft means that if you make changes to the open source library itself, you must release those changes, but if you only use the library (like linking to it or importing it), your own code can remain closed-source. For instance, you don’t have to open source your entire application if you use an LGPL database driver in a proprietary program, but you do have to share any changes you make to the driver under the LGPL. As long as the LGPL code isn’t altered directly, using it in proprietary apps is usually safe from a business standpoint.</li><li><strong>Strong copyleft (e.g., GPL):</strong> Strong Copyleft means that if you combine GPL code with your own and then distribute it (like shipping an app), the entire combined work must be released under GPL. For instance, you must make all of your code open source under the GPL after distributing a desktop tool that you built with a GPL library included. For proprietary software that you intend to sell or distribute, this poses a risk from a business perspective because it would require you to make your entire product open source.</li><li><strong>Network copyleft (e.g., AGPL): </strong>Network Copyleft means that if you combine licensed code with your own you must release the combined work, but it also extends this obligation to software delivered over a network (such as SaaS). You must share your changes if users interact with the code online, even if you never “ship” it. For instance, even though you did not distribute the software itself, the AGPL requires you to give your users access to your modified code if you take an AGPL machine learning model (such as Ultralytics YOLO under AGPL-3.0) and create a hosted API for inference. For SaaS and cloud companies, this makes AGPL the most restrictive license from a business standpoint. Unless you feel comfortable open-sourcing your service, you should steer clear of AGPL dependencies.</li></ul><h3>License Cheat Sheet: What Every Software Engineer Should Know</h3><p>After seeing the various license categories, now let’s use a cheat sheet to quickly review the licenses related to each of them. Here, I compare the most widely used licenses (in table format) and discuss my thoughts on how they affect the development of production-ready systems:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FAmpyZ%2F3%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FAmpyZ%2F3%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FAmpyZ%2Fplain-s.png%3Fv%3D3&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="785" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d3c383ede41f3e5dfe8a2afdf76fb4c/href">https://medium.com/media/1d3c383ede41f3e5dfe8a2afdf76fb4c/href</a></iframe><h3>Takeaways for Innovators and Developers</h3><ol><li><strong>Prioritise Permissive for Commercial Products:</strong> Licenses such as MIT, Apache 2.0, BSD, ISC, Zlib, and Boost are your best bets if you want to build scalable AI/ML solutions, reliable backend services, or data pipelines. They let you create proprietary software as a service (SaaS), implement on-premise solutions, or market goods without worrying about having to make your proprietary AI models or algorithms publicly available.</li><li><strong>Extremely Caution with GPL/AGPL:</strong> For startups and organizations, these licenses may be a “viral” trap. You may have to open-source your entire codebase if you include GPL-licensed code and <strong>distribute</strong> your product (such as an on-premise AI inference engine). You <strong>must</strong> release all of your source code under AGPL if your SaaS platform uses an AGPL component and allows network access to its features (as the majority of AI APIs do). Your competitive advantage may be significantly impacted by these licenses.</li><li><strong>LGPL for Linking, Not Modifying:</strong> If you’re dynamically linking/importing a library (like a data processing tool), LGPL is usually safe. You must, however, open-source any changes you make to the LGPL library itself.</li><li><strong>Consider Commercial Licenses:</strong> A paid commercial license may be available for many strong projects that use GPL/AGPL (such as specific foundational AI models or specialised tooling). This is frequently the practical way to get around copyleft requirements and incorporate cutting-edge technology into your proprietary product.</li></ol><h3>Final Thoughts: Make Informed Decisions</h3><p>Knowing open-source licenses is crucial for software engineers who are working on developing production-ready systems. The architecture of your product, your deployment plan, and eventually your business model are all impacted by the license decisions you make.</p><p>My safest bet ? Stick to MIT or Apache 2.0 licensed packages. They provide the adaptability and assurance required to develop strong, safe solutions quickly without jeopardising your intellectual property. Always seek legal advice when in doubt, or ask the project maintainers for clarification on commercial use.</p><p>I hope you found this cheat sheet useful! If it helped you make sense of open-source licensing or plan your next project, feel free to share it with your team or network. Thank you for reading, and happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=681adc57b1b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Word Vectors and the Word2Vec Model: A Deep Dive]]></title>
            <link>https://medium.com/@shrijeethsuresh/understanding-word-vectors-and-the-word2vec-model-a-deep-dive-134b4096ad69?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/134b4096ad69</guid>
            <category><![CDATA[word2vec]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 17:48:36 GMT</pubDate>
            <atom:updated>2025-07-23T17:48:36.198Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Natural Language Processing (NLP) stands at the crossroads of linguistics and artificial intelligence, aiming to bridge human language and computational understanding. A fundamental step in this journey is representing words in a form that computers can interpret meaningfully. This is where word vectors or embeddings come into play. In this blog, we will explore the concepts Word Vectors and Word2Vec Model, which lays a solid foundation for modern NLP techniques.</p><h3>Human Language and Word Meaning</h3><p>Understanding the meaning of words is vital for machines to process language effectively. Words derive meaning not only from their definition but also from their context (i.e, the surrounding words). Capturing this contextual similarity is essential for learning meaningful representations of words.</p><h3>What are Word Vectors ?</h3><p>Word vectors, also known as word embeddings or neural word representations, are dense vectors that represent words in a continuous vector space. Unlike one-hot encoding, which is sparse and high-dimensional, word vectors are dense and capture semantic relationships between words.</p><p>Each word vector is chosen so that it is similar to vectors of words appearing in similar contexts. The similarity between word vectors is measured using the dot product (scalar product). Imagine each dimension of the vector representing different aspects or contexts such as value, color, or other attributes associated with the word. The resulting vector thus encapsulates rich contextual information.</p><p>For example, in a well-trained embedding space:</p><pre>king - man + woman ≈ queen</pre><p>This means the model has learned meaningful relationships like gender roles just from data. Similarly:</p><pre>Paris - France + Germany ≈ Berlin</pre><p>Such analogies highlight how embeddings capture deeper patterns that one-hot encoding cannot.</p><p>In contrast, <strong>one-hot encoding</strong> represents words as high-dimensional, sparse vectors with no concept of similarity. In one-hot encoding “cat” and “dog” are just as unrelated as “cat” and “banana.” Word embeddings solve this by placing similar words closer together in a dense, low-dimensional space making them far more powerful for NLP tasks.</p><h3>Introduction to Word2Vec</h3><p>Word2Vec, introduced by <a href="https://arxiv.org/abs/1301.3781">Mikolov et al. in 2013</a>, is a framework for learning word vectors from a large corpus of text. Here’s the core idea:</p><ul><li>Start with a large body of text — a long list of words.</li><li>Represent every word in a fixed vocabulary as a vector.</li><li>For each position t in the text, identify a center word <strong>c</strong> and its context (outside) words <strong>o</strong>.</li><li>Calculate the probability of context words given the center word (or vice versa) based on the similarity of their vectors.</li><li>Adjust the word vectors to maximize this probability through training.</li></ul><p>Word2Vec learns embeddings that make words used in similar contexts have closer vector representations.</p><h3>Word2Vec Model Training</h3><p>The training involves defining an objective function that maximizes the probability of observing context words around a center word. Optimization techniques such as gradient descent are used to adjust the vectors to maximize this objective.</p><h4>Word2Vec Objective Function</h4><p>Word2Vec learns embeddings that <strong>maximize the probability of predicting context words</strong> given a center word. The training objective is to maximize the data likelihood:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/0*ToHJRnt78ca8TjC9.png" /></figure><p>To optimize this likelihood, we convert it into a loss function by taking the <strong>negative log-likelihood</strong> and averaging it over all positions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/0*6p5avbiOOHrNAlka.png" /></figure><p>Minimizing this objective function is equivalent to <strong>maximizing the model’s predictive accuracy</strong>.</p><h4>Word2Vec Objective Function: How It’s Calculated ?</h4><p>To calculate the probability we use <strong>two vectors for each word</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/20/0*xVVY0dKYHuFOm1zC.png" /><figcaption>Vector when `w` is a center word</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/21/0*GTxUPckxh2OjmrIS.png" /><figcaption>Vector when `c` is a context word</figcaption></figure><p>These word vectors are subparts of the overall parameter vector. The probability of a context word <strong>o</strong> given a center word <strong>c</strong> is computed using the softmax function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/0*cfG6l1niEU7oHFri.png" /></figure><p>Here:<br>The numerator computes the dot product similarity between the context vector of the output word and the center word.<br>The denominator normalizes the score across all words in the vocabulary to get a valid probability distribution.</p><p>This softmax formulation ensures that the model assigns higher probabilities to context words that are semantically and syntactically close to the center word.</p><h3>Optimization Basics</h3><p>Optimization in Word2Vec refers to tweaking the vectors to better predict context words from center words. This process relies on computing gradients of the objective function and updating the embeddings iteratively to converge to the best representations. This process mainly involves:</p><ul><li>Calculating the <strong>gradient of the loss function</strong> with respect to the vectors.</li><li>Updating vectors using <strong>Stochastic Gradient Descent (SGD)</strong>.</li><li>Using approximations like <strong>negative sampling</strong> or <strong>hierarchical softmax</strong> to reduce the computational cost of computing the full softmax over the entire vocabulary.</li></ul><h3>Looking at Word Vectors After Training</h3><p>After training, the learned word vectors can be visualized and examined. Words with similar meanings or used in similar contexts cluster together in the vector space, demonstrating the effectiveness of Word2Vec embeddings. These vectors can be visualized using techniques like PCA or t-SNE to show groupings of related terms.</p><h3>Conclusion</h3><p>Word vectors are at the heart of modern NLP. The Word2Vec model provides an intuitive and powerful way to learn these vectors from data. By understanding the training objective and optimization mechanics, we gain deeper insights into how machines learn language semantics.</p><p>The ability of word vectors to capture <strong>context, similarity, and analogy</strong> has made them a foundational building block in many advanced models, including transformers and large language models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=134b4096ad69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Scalable Knowledge Ingestion Pipeline: How KnowledgeKeeper Streamlines Document…]]></title>
            <link>https://medium.com/knowledge-keeper/building-a-scalable-knowledge-ingestion-pipeline-how-knowledgekeeper-streamlines-document-86af16be7225?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/86af16be7225</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 02:46:01 GMT</pubDate>
            <atom:updated>2025-02-11T02:46:01.876Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Scalable Knowledge Ingestion Pipeline: How KnowledgeKeeper Streamlines Document Processing</h3><h3>Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1sBtdKTVe9NOPjSa" /></figure><p>In the fast-paced world of organizational knowledge management, seamless data ingestion is important. At KnowledgeKeeper, our primary mission is to gather, process, and structure organizational knowledge efficiently. However, our journey began with one of the most challenging aspects of this process — document ingestion.</p><p>Organizations rely on diverse sources for knowledge, ranging from Notion and Freshdesk to other SaaS platforms, each with its own format and storage mechanism. To unify these data sources, we have developed a robust and scalable data ingestion pipeline that streamlines document processing while maintaining consistency and efficiency.</p><p>This blog delves into the challenges we faced and the innovative solutions we have implemented to create a smooth knowledge ingestion system.</p><h3>Tackling Document Formats</h3><p>One of the biggest obstacles in knowledge ingestion is handling documents in multiple formats. Every service provider structures data differently:</p><ul><li><strong>Notion</strong> exports data in <strong>JSON</strong> format.</li><li><strong>Freshdesk</strong> stores documents as <strong>HTML with CSS</strong>.</li><li>Other sources use <strong>Markdown, PDFs, or raw text</strong>.</li></ul><p>To standardize these, we devised a uniform approach — converting all ingested documents into <strong>HTML with inline CSS</strong>. This provided:</p><ul><li><strong>Consistency</strong>: A single format for storage and processing.</li><li><strong>Flexibility</strong>: Easy manipulation and rendering across multiple platforms.</li><li><strong>Simplified Access</strong>: Unified data for search, retrieval, and AI-based knowledge extraction.</li></ul><p>This foundational decision set the stage for seamless data handling across the KnowledgeKeeper ecosystem.</p><h3>Custom Parsers: A Dynamic Solution</h3><p>Initially, we faced a challenge: the need for <strong>custom parsers</strong> to handle different data sources. Developing a separate parser for each source would have been inefficient, leading to maintenance overhead and scalability issues.</p><p>To address this, we designed a <strong>plug-and-play parser tool</strong> that dynamically applies the correct parsing logic based on the document’s origin. This tool:</p><ul><li><strong>Automatically detects</strong> the document type based on the source.</li><li><strong>Applies pre-configured parsing rules</strong> for that specific source.</li><li><strong>Standardizes</strong> the output into our universal <strong>HTML + inline CSS format</strong>.</li></ul><p>This approach drastically reduced manual intervention and streamlined document ingestion, making it easier to integrate new data sources into KnowledgeKeeper.</p><h3>Enhancing Data Sync with Airbyte</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*tSrtp8HxaP3FaBii.png" /></figure><p>With document parsing optimized, the next challenge was <strong>synchronizing data efficiently</strong>. Initially, we explored direct API synchronization to <strong>AWS S3</strong>, but this proved cumbersome due to:</p><ul><li><strong>Inconsistent API protocols</strong> across different platforms.</li><li><strong>Rate limits and authentication hurdles</strong>.</li><li><strong>Difficulties in managing batch operations</strong>.</li></ul><p>To resolve these issues, we integrated <strong>Airbyte</strong>, an open-source <strong>ELT (Extract, Load, Transform) solution</strong>. Airbyte allowed us to:</p><ul><li><strong>Batch sync data from multiple sources</strong>, reducing API bottlenecks.</li><li><strong>Ensure data consistency</strong> across different ingestion pipelines.</li><li><strong>Simplify connector creation</strong>, making it easier to add new sources.</li></ul><p>By combining Airbyte with <strong>FastAPI</strong>, we further enhanced automation, enabling real-time control over sync jobs and ensuring data flowed smoothly into our system.</p><h3>Orchestrating with Prefect</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*V-z2xAQ_RN5nAOBR" /></figure><p>Once data was ingested and transformed, the next step was <strong>managing workflow orchestration</strong>. This is where <strong>Prefect</strong> came into play.</p><p>Prefect, our orchestration engine of choice, enabled us to:</p><ul><li><strong>Develop production-ready pipelines</strong> with minimal configuration.</li><li><strong>Monitor workflows in real time</strong>, reducing the risk of failures.</li><li><strong>Implement error handling and retries</strong>, ensuring robust data ingestion.</li></ul><p>Using Prefect, we established a structured workflow that seamlessly:</p><ol><li>Retrieves data from <strong>Airbyte</strong>.</li><li>Applies the <strong>custom parser</strong> for transformation.</li><li>Stores the processed data back into <strong>AWS S3</strong>.</li><li>Notifies downstream services for further processing.</li></ol><p>With this setup, our ingestion system became fully automated, resilient, and scalable.</p><h3>Conclusion</h3><p>Through strategic innovations and technology, we transformed KnowledgeKeeper’s knowledge ingestion process into a <strong>dynamic, scalable, and efficient system</strong>. Our approach not only streamlined the way we handle diverse document formats but also <strong>enhanced synchronization, orchestration, and standardization</strong>.</p><p>Key takeaways from our journey:</p><ul><li><strong>Unified Data Format</strong>: Converting all documents to <strong>HTML with inline CSS</strong> ensured seamless storage and retrieval.</li><li><strong>Plug-and-Play Parsers</strong>: A dynamic framework eliminated the need for manual parser creation.</li><li><strong>Airbyte Integration</strong>: Simplified and optimized <strong>data synchronization</strong>.</li><li><strong>Prefect Orchestration</strong>: Enabled <strong>real-time monitoring</strong> and reliable workflow execution.</li></ul><p>With these advancements, KnowledgeKeeper is now equipped with a <strong>powerful knowledge ingestion engine</strong> that efficiently manages organizational knowledge at scale. By leveraging a combination of automation, intelligent parsing, and robust orchestration, we have set new benchmarks for <strong>efficiency, flexibility, and scalability</strong> in document management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86af16be7225" width="1" height="1" alt=""><hr><p><a href="https://medium.com/knowledge-keeper/building-a-scalable-knowledge-ingestion-pipeline-how-knowledgekeeper-streamlines-document-86af16be7225">Building a Scalable Knowledge Ingestion Pipeline: How KnowledgeKeeper Streamlines Document…</a> was originally published in <a href="https://medium.com/knowledge-keeper">knowledge_keeper</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Pentagram Framework for Prompt Engineering]]></title>
            <link>https://medium.com/knowledge-keeper/the-pentagram-framework-for-prompt-engineering-9c6c891e800b?source=rss-46936426751b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c6c891e800b</guid>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[prompting-technique]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Shrijeeth]]></dc:creator>
            <pubDate>Sun, 17 Nov 2024 21:14:36 GMT</pubDate>
            <atom:updated>2024-11-20T09:08:04.159Z</atom:updated>
            <content:encoded><![CDATA[<p>These days, generative artificial intelligence (AI) and Large Language Models (LLM) are the foundation for nearly all innovative and useful tools and project development. Many open and closed source models are being published on various domains on a daily basis following the boom of LLMs in the AI sector. We must clearly and simply express our requirements to the model in order for LLM to produce appropriate and accurate results. We call this technique prompting. Prompting, broadly speaking, is the skill of conveying an issue or task in hand to the LLM in order to enable it to function and automate complex tasks effectively.</p><p>Prompting is a integral part of developing LLM’s and use it in real world. In order to create a prompt that is both concise and clear and that LLMs can understand, let us look into the Pentagram Framework — a five-stage approach for efficient LLM prompting — in this blog. Without further ado, let’s dig right into the five things that are crucial to effective prompting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdDud3Rgi2A6edScEiHUeA.png" /><figcaption>Pentagram Framework for Prompts</figcaption></figure><h3>1. Persona</h3><p>The <strong>persona</strong> defines the role or identity you assign to the LLM. It assists the model in aligning the expectations of a particular audience or objective with its responses.</p><h4>Example:</h4><ul><li><em>“You are a friendly customer service representative for a leading tech company.”</em></li></ul><p>You can modify the model’s behaviour to fit your target consumers by creating a persona. A prompt created for a sales executive will be very different from one intended for a medical practitioner. Select a persona that fits the target audience and the circumstances of the task.</p><h3>2. Context</h3><p><strong>Context</strong> provides the background information the LLM needs to generate relevant and coherent responses. It bridges the gaps between your particular needs and the model’s general knowledge.</p><h4>Example:</h4><ul><li><em>“The response will be used as part of a troubleshooting guide for tech-savvy users.”</em></li></ul><p>Providing context guarantees that the target audience will find relevance in the model’s output. Whether it’s a corporate environment, a classroom, or a casual setting, clear context enhances the quality of the response.</p><h3>3. Task</h3><p>The <strong>task</strong> specifies what you want the LLM to do. This could include creating pictures or doing computations, as well as responding to enquiries and writing emails.</p><h4>Example:</h4><ul><li><em>“Write a concise email explaining the benefits of upgrading to a premium subscription.”</em></li></ul><p>Being explicit about the task reduces ambiguity and ensures that the LLM focuses on the desired outcome.</p><h3>4. Output</h3><p>The <strong>output</strong> defines the format, tone, or style of the response. It ensures that the LLM’s response meets your expectations by providing guidelines on how to deliver it.</p><h4>Example:</h4><ul><li><em>“Provide a detailed list of items in a CSV format.”</em></li></ul><p>Determining the output style is essential, regardless of whether you require a data visualization, code snippet, formal writing, or a conversational tone.</p><h3>5. Constraints</h3><p><strong>Constraints</strong> establish the boundaries or limitations for the response. These may consist of technical limitations, moral standards, or other particular regulations.</p><h4>Example:</h4><ul><li><em>“Avoid using technical terms that require advanced knowledge of programming.”</em></li></ul><p>Constraints help the LLM stay on track and adhere to your preferences, ensuring the output remains relevant, ethical, and audience-appropriate.</p><h3>Applying the Pentagram Framework</h3><p>Let’s see how a well-constructed prompt looks when all these techniques come together:</p><h4>Example Prompt:</h4><p><em>“You are a software developer specializing in cloud computing. This explanation is for non-technical stakeholders who need to understand the benefits of migrating to AWS. Write a summary in bullet points. The tone should be professional but accessible. Avoid using complex diagrams or deep technical details.”</em></p><p>By using this framework, you can make your LLM a more beneficial and effective tool that can be used to address a variety of challenges.</p><h3>Why the Pentagram Framework Matters</h3><p>Developing a structured conversation with LLM is more important than simply crafting questions when it comes to effective prompting. The Pentagram Framework enables you to:</p><ul><li>Increase the precision of the responses.</li><li>Improve alignment with audience needs.</li><li>Simplify processes by cutting down on trial and error.</li></ul><p>Whether you’re a data scientist, educator, or content creator, mastering this framework will elevate your ability to work with LLMs.</p><p>Incorporate the Pentagram Framework in your next NLP project, and watch how it transforms the way you wield your “sword” — the large language model. Happy prompting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c6c891e800b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/knowledge-keeper/the-pentagram-framework-for-prompt-engineering-9c6c891e800b">The Pentagram Framework for Prompt Engineering</a> was originally published in <a href="https://medium.com/knowledge-keeper">knowledge_keeper</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>