<?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 Hariraj K on Medium]]></title>
        <description><![CDATA[Stories by Hariraj K on Medium]]></description>
        <link>https://medium.com/@picklehari?source=rss-eaec4afcc7b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RnSQ8NcxktfTpI7Q.</url>
            <title>Stories by Hariraj K on Medium</title>
            <link>https://medium.com/@picklehari?source=rss-eaec4afcc7b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:12:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@picklehari/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[Agent-Based Workflows: An Introduction]]></title>
            <link>https://medium.com/@picklehari/agent-based-workflows-the-next-big-thing-a33f2a525520?source=rss-eaec4afcc7b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a33f2a525520</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[portfolio-website]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Hariraj K]]></dc:creator>
            <pubDate>Sun, 14 Jul 2024 15:36:16 GMT</pubDate>
            <atom:updated>2024-07-15T08:29:26.074Z</atom:updated>
            <content:encoded><![CDATA[<p>As more and more Language Models with varying degrees of knowledge and capabilities are developed, we’re witnessing a paradigm shift in how software is created and workflows are managed. This evolution marks a transition from traditional, deterministic programming to a more adaptive and “fuzzy” approach that leverages the power of artificial intelligence.</p><p>Agent-based workflows, powered by these advanced Language Models, are emerging as the next frontier in automation technology. Unlike conventional systems that follow rigid, predefined paths, agent-based approaches utilize autonomous AI agents capable of making decisions, adapting to changing circumstances, and collaborating to achieve complex goals.</p><h3>Understanding Agent-Based Workflows</h3><p>Agent-based workflows represent a significant leap forward in automation technology. AI agents are at the core of this new paradigm — specialized Language Models tasked with specific roles such as content writing, data analysis, or web development. These agents interact with each other and with external tools and APIs, creating a dynamic ecosystem that can tackle intricate tasks with minimal human intervention.</p><h4>Key Components of Agent-Based Workflows</h4><ol><li><strong>Autonomous Agents</strong>: AI-powered entities with specific goals, knowledge bases, and decision-making capabilities.</li><li><strong>Task Allocation</strong>: Intelligent distribution of tasks among agents based on their abilities and current workload.</li><li><strong>Inter-Agent Communication</strong>: Agents share information and coordinate actions to achieve common objectives.</li><li><strong>Adaptive Decision Making</strong>: Agents learn from experience and adjust strategies based on changing conditions.</li><li><strong>Goal-Oriented Behavior</strong>: Each agent works towards specific objectives, contributing to the overall workflow goals.</li></ol><h3>Example 1: Creating a Portfolio Website</h3><p><a href="https://colab.research.google.com/drive/1Djp7kzC6mzZwcVKC53QxrdyCtJ-oI5pH?usp=sharing">Google Colab</a></p><p>The code attached demonstrates agent-based workflows&#39; potential in creating a portfolio website. Let’s break down how this approach enhances the automation process:</p><h3>Specialized Agents</h3><p>The code defines several agents, each with a specific role:</p><ul><li><strong>Resume Researcher</strong>: Extracts relevant information from resumes.</li><li><strong>Github Researcher</strong>: Gathers project-related information from GitHub.</li><li><strong>Content Writer</strong>: Compiles the information into a cohesive portfolio.</li><li><strong>Web Page Developer</strong>: Creates the HTML and CSS for the portfolio website.</li><li><strong>UX Designer</strong>: Provides design feedback to ensure a visually appealing website.</li><li><strong>Quality Assurance Agent</strong>: Validates the final output to ensure accuracy and relevance.</li></ul><h3>Task Definition</h3><p>Each agent is assigned specific tasks that align with their expertise and goals. For example:</p><ul><li><strong>Resume Researcher Task</strong>: Analyze the resume to extract key skills and experiences.</li><li><strong>Github Researcher Task</strong>: Analyzes codebases to extract relevant skills and project information.</li><li><strong>Content Writer Task</strong>: Compiles a detailed personal and professional profile.</li><li><strong>Web Page Developer Task</strong>: Designs and creates a stylistic webpage based on the provided content.</li><li><strong>UX Designer Task</strong>: Provide feedback and design suggestions to enhance the website.</li><li><strong>Quality Assurance Task</strong>: Ensures the content and design meet the required standards.</li></ul><h4>Collaborative Workflow</h4><p>The agents work together, sharing information and building upon each other’s outputs to create a cohesive final product. For instance, the Content Writer uses information from the Resume and Github Researchers to write compelling portfolio content, which is then used by the Web Page Developer to create the website.</p><h4>Adaptive Execution</h4><p>The system can handle asynchronous task execution and adapt to the results of each stage, ensuring a smooth and efficient workflow.</p><h3>Example 2: Generating Test Data for Feature Testing</h3><p><a href="https://colab.research.google.com/drive/1VY8XQy5yKYaN8_IHkDfT2U59TLnWyZjz?usp=sharing">Google Colab</a></p><p>Another example of agent-based workflow is a Python script (linked above) designed to generate test data based on a database using the CrewAI framework. The script defines four agents, each with a specific role and goal, and three tasks that these agents will perform.</p><h3>Specialized Agents</h3><ul><li><strong>SQL Analyst</strong>: Analyzes a provided SQL document and creates a data model for each table.</li><li><strong>Subject Matter Expert (SME)</strong>: Provides context and realistic sample values for the data.</li><li><strong>Python Programmer</strong>: Writes Python code to generate synthetic data based on the SQL document and data requirement document.</li><li><strong>Quality Assurance Agent</strong>: Ensures the generated data meets the requirements and adheres to the required schema and format.</li></ul><h3>Task Definition</h3><ul><li><strong>Data Modelling Task</strong>: The SQL analyst compiles information from the SQL information to form a data model and detailed description for each table.</li><li><strong>Data Generation Task</strong>: The Python programmer writes a script to generate realistic synthetic data for the tables, consulting the SME for realistic values.</li><li><strong>Quality Assurance Task</strong>: The QA agent ensures the document and code generated meet the requirements and facilitates effective communication between agents.</li></ul><h3>Collaborative Workflow</h3><p>The agents collaborate to ensure the synthetic data generated is realistic and adheres to the required schema. The SQL analyst provides the data model, the SME offers realistic values, the Python programmer writes the code, and the QA agent validates the final output.</p><h3>Benefits of Agent-Based Workflows</h3><ol><li><strong>Enhanced Flexibility</strong>: Agent-based systems can easily adapt to changes in requirements or unexpected situations.</li><li><strong>Improved Efficiency</strong>: Complex processes are completed more quickly and accurately by distributing tasks among specialized agents.</li><li><strong>Scalability</strong>: These workflows can be easily scaled up or down to handle varying workloads.</li><li><strong>Continuous Improvement</strong>: Agents learn from each execution, improving their performance over time.</li><li><strong>Reduced Human Error</strong>: By automating complex decision-making processes, the risk of human error is significantly reduced.</li></ol><h3>Conclusion</h3><p>Agent-based workflows represent the next frontier in automation technology. By combining the power of AI with the flexibility of autonomous agents, we can create systems that are not just automated, but truly intelligent and adaptive. This approach opens up new possibilities for efficiency, productivity, and innovation across various industries, paving the way for a new era of smart automation that augments and enhances human capabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33f2a525520" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Genetic Programming]]></title>
            <link>https://medium.com/@picklehari/introduction-to-genetic-programming-d5fb588457f8?source=rss-eaec4afcc7b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5fb588457f8</guid>
            <category><![CDATA[evolutionary-algorithms]]></category>
            <category><![CDATA[genetic-programming]]></category>
            <category><![CDATA[genetic-algorithm]]></category>
            <dc:creator><![CDATA[Hariraj K]]></dc:creator>
            <pubDate>Wed, 05 Feb 2020 17:02:16 GMT</pubDate>
            <atom:updated>2020-02-05T17:02:16.866Z</atom:updated>
            <content:encoded><![CDATA[<p>Disclaimer: For easy computation, the code given below has a limited number of terminals (Operands) and Operators. The code to a simple Genetic Program has been linked below.</p><p><a href="https://github.com/picklehari/GP">picklehari/GP</a></p><h4>What are Evolutionary Algorithms?</h4><p>Bio-mimicry has been a strategy humans have equipped for generations. We have always derived inspiration from Nature to tackle complex stuff (Ranging from Drones to comic book heroes).</p><p>Evolutionary Algorithms are a class of Algorithms that mimics Natural phenomenon (Such as Animal Behaviors to Natural Selection). One of the major sub-classes being Genetic Algorithms.</p><h4>Genetic Algorithms</h4><p>Theories of Evolution suggest the importance of genetic variation and random mutation is vital when building a fit being. The same principle comes into play under Genetic Algorithms. Usually, used as an optimization approach, they consider each small independent entity (Varying from problem to problem) as an analogy to alleles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*JkoYc0C7sRiABA3q31pjgw.png" /><figcaption>Basic working of GAs. Fitness function evaluates and the population. The process of selection,crossover and Mutation are together called Reproduction and are an analogy to their biological counterpart processes.</figcaption></figure><h3>Genetic Programming</h3><p>Genetic programs are a sub-class of genetic algorithms that produce program codes. Here each allele is presented as a parse tree with terminal values( Variables and constants) as leaf nodes and Operators as non-leaf nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*9zg5N-Z-azQGgjpCIWioHg.png" /><figcaption>The thick outlined nodes represent leaf nodes. A non-leaf node may have multiple operands depending on the type of operands. Here O(n) represents an operator that takes n arguments. The value of T maybe a variable (like x or y) or a constant (like “cat” or 5 or 5.23).</figcaption></figure><h3>An example walk-through</h3><p>Consider a program that generates a LISP code for evaluating a polynomial. In this case, for simplicity, we consider polynomials that have factors belonging to the set {-2,-1,0,1,2}. We also undertake binary arithmetic operations and <br>We produce LISP code because it is easier to generate from a parse tree.</p><h4><strong>Step 01: Generating Random Trees</strong></h4><p>We take an operand and attach subtrees as it’s children. A subtree could be a terminal or another tree. This is done recursively till all leaf nodes are obtained.</p><h4><strong>Step 02: Selection</strong></h4><p>Here two or multiple parents (Trees) are selected for mating. There are multiple approaches to selection. Here a tournament-based selection is used. A fixed number of trees are selected from the population at random and are evaluated under the fitness function. The number of trees competing shouldn’t be too big or too small. This ensures diversity among the new population. Two parents are selected.</p><h4><strong>Step 03: Crossover</strong></h4><p>Here sub-trees are interchanged at random between the parents. Exchange of genes take place. Thus forming children. These children constitute the next population.</p><h4><strong>Step 04: Mutation</strong></h4><p>A small fraction of the newly formed population is induced with a mutation. A very small fraction of sub-trees is replaced at random.</p><h4><strong>Step 05: Halting?</strong></h4><p>Here a halting condition is specified. In the above case, the code stops when the fitness value evaluates to 1 or 250 generations are generated. Thus producing the most optimal parse tree as output.</p><h4>Step 06: Generating LISP code from parse tree</h4><p>Preorder traversal is performed in the parse trees and is grouped as “(Operator, Operand, Operand)”.</p><p>This thus forms a LISP function to evaluate the function.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5fb588457f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Food : An evolutionary Tale]]></title>
            <link>https://medium.com/series/food-an-evolutionary-tale-dc0312f3ce34?source=rss-eaec4afcc7b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc0312f3ce34</guid>
            <dc:creator><![CDATA[Hariraj K]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 17:17:43 GMT</pubDate>
            <atom:updated>2019-10-23T17:17:43.206Z</atom:updated>
            <content:encoded><![CDATA[<p>Human history has always been fascinating. From our emergence 315 thousand years ago to the modern-day present, food has been something that connects us all. How did food something we gathered for survival to something that we have fought wars over? Or better yet, how did we go from gathering and hunting to scientific methods of farming? Why and what factors affect traditional cuisines? We’ll follow stories as we find answers to these queries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc0312f3ce34" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>