<?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 Bhavana Gollapudi on Medium]]></title>
        <description><![CDATA[Stories by Bhavana Gollapudi on Medium]]></description>
        <link>https://medium.com/@bhavanagollapudi?source=rss-189444a831b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Bhavana Gollapudi on Medium</title>
            <link>https://medium.com/@bhavanagollapudi?source=rss-189444a831b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 23 May 2026 15:33:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavanagollapudi/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[Understanding AGENTIC AI]]></title>
            <link>https://medium.com/@bhavanagollapudi/understanding-agentic-ai-d5d24198f852?source=rss-189444a831b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5d24198f852</guid>
            <dc:creator><![CDATA[Bhavana Gollapudi]]></dc:creator>
            <pubDate>Sun, 18 May 2025 14:49:57 GMT</pubDate>
            <atom:updated>2025-05-18T15:05:32.267Z</atom:updated>
            <content:encoded><![CDATA[<p>In an era where artificial intelligence (AI) is rapidly transforming industries and shaping the way we interact with technology, the concept of <em>agentic AI</em> has gained significant traction. Unlike traditional AI systems that are often designed to perform specific tasks with no autonomy or higher-level decision-making capabilities, agentic AI focuses on creating intelligent systems that exhibit autonomy, proactivity, and intentionality in their actions. But what exactly is agentic AI, and why is it important for the future of technology? Let’s dive in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*8HaVc1OnozQY9MbUeyDBlA.png" /></figure><ol><li><strong>GENERATIVE AI vs AGENTIC AI</strong></li></ol><p><strong>Generative AI</strong> refers to AI systems designed to create new content, such as text, images, videos, audio, or even code. These systems use algorithms (often based on machine learning models like neural networks) to analyze existing data patterns and generate outputs that resemble the input data.</p><p><strong>Agentic AI</strong>, on the other hand, refers to AI systems that exhibit autonomy, goal-directed behavior, and proactivity in their operations. These systems are capable of taking independent actions, making decisions, and adapting to changes in their environment without the need for constant human input or micromanagement.</p><p>Generative AI in simple is a cognitive engine to generate the content by providing reasoning using LLM prompts and use external tools for further actions (like publishing results in dashboards, excel sheets..) when it comes to Agentic AI, though it also uses LLMs to generate the content with reasoning, it will also facilitate to act upon the results which is the combination of <strong><em>ReAct</em></strong> (Reasoning &amp; Action).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*-wEgKyOfkTKbUeNKRsrC_Q.png" /></figure><p><strong>2.</strong> <strong>HOW AGENTIC AI WORKS ?</strong></p><p>Agentic AI have the fundamental generative ai process to use pre-trained large language models for reasoning and also to perform further actions by accessing the memory (like creating reports, publishing results in dashboard, raise requests in any tool, trigger alerts etc.,)</p><p>Agentic AI systems are designed to function autonomously, making decisions and taking actions in dynamic environments without requiring constant human supervision. To understand how such systems operate, we can break down their workflow into a series of well-defined steps or components. These steps collectively enable an agentic AI to perceive its surroundings, plan its actions, execute those plans, and adapt to changes — a cycle that mimics human-like decision-making but in a computational framework.</p><p><strong>3.</strong> <strong>AI AGENTS</strong></p><p>Agentic AI is designed in such a way to avoid human input at each generation of content. An AI agent is an intelligent computational entity that perceives its environment, makes decisions based on that input, and takes actions to achieve specific goals.</p><p>Unlike traditional algorithms that require explicit instructions for every task, AI agents are designed to operate with a degree of autonomy, using a continuous feedback loop to adapt and improve their behavior.</p><p>The combination of AI Agents will form an AI workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*fsQCoXclHkZIYS3FwSF9tQ.png" /></figure><p><strong>(A) Perception</strong></p><ul><li>Agentic AI systems must first gather information about their environment in real time. This step involves perceiving the external world through sensors, data inputs, or external APIs. The system processes this data to create an “understanding” of its current conditions.</li><li><strong><em>Example:</em></strong> <em>A financial agent gathers information of historical details of a stock, articles related to that, market trends, open challenges etc.</em></li></ul><p><strong>(B) ReACT</strong></p><ul><li>Once an agent perceives its environment, it processes the information to take appropriate actions. It processes the data gathered to understand what’s going on and decides what to do based on its understanding, then improves and adapts over time, learning from feedback and experience. To achieve these, LLMs were used.</li><li><strong><em>Example:</em></strong> <em>A financial AI agent evaluates market trends to determine whether to buy, hold, or sell a stock.</em></li></ul><p><strong>(C) Feedback and Learning</strong></p><ul><li>The agent evaluates the results of its actions. If the outcome is unsatisfactory or an unexpected error occurs, the agent uses this feedback to improve its future decisions. Advanced agents may leverage machine learning for continuous self-improvement.</li><li><strong><em>Example:</em></strong> <em>By constantly refining strategies and adapting to market dynamics, these agents are paving the way for a future where finance becomes smarter, faster, and more personalized.</em></li></ul><p><strong>Multi AI Agents:</strong></p><p><em>To achieve multiple actions, we might need more AI agents to perform the tasks. For example, if we want to meet a person at X cafe, AI Agent-1 will find the best route to reach the destination. But if we want to know the weather condition to meet the person at the discussed time frame, AI Agent-1 is not enough, we need one more agent to get the weather information and thus multiple AI Agents combined to get her to achieve the outcome.</em></p><p><strong>4. TYPES OF AI AGENTS</strong></p><p>Not all AI agents are the same. They vary in complexity and capability, depending on the scope of their tasks and the intelligence required. Here are the main types of AI agents:</p><p><strong>(A) Simple Reflex Agents:</strong></p><ul><li>Also called Reactive agents operate purely based on the current state of their environment. They do not store past data or plan for the future. These agents follow simple rules — if a specific condition occurs, they take an appropriate action.</li><li><strong><em>Example:</em></strong> <em>A thermostat that adjusts temperature based on the current room conditions.</em></li></ul><p><strong>(B) Model Based Reflex Agents:</strong></p><ul><li>These agents go a step beyond reactive agents by maintaining an internal model of their environment. They can update their behavior by considering how their actions will affect the world.</li><li><strong><em>Example:</em></strong> <em>A chess AI that calculates potential moves and predicts opponents’ responses based on a model of the game.</em></li></ul><p><strong>(C) Goal Based Agent:</strong></p><ul><li>These agents are designed to achieve specific goals. They don’t just react to their environment — they actively evaluate and choose actions based on how those actions will contribute to achieving their goals.</li><li><strong><em>Example:</em></strong> <em>A self-driving car navigating to a destination while avoiding traffic and hazards.</em></li></ul><p><strong>(D) Utility Based Agent:</strong></p><ul><li>These are an advanced type of goal-based agents that go beyond achieving “any goal” by trying to achieve the best possible goal. They measure the “utility” (or value) of each decision and take the action expected to yield the most favorable outcome.</li><li><strong><em>Example</em></strong><em>: A robotic shopper that determines which store provides the best combination of price and convenience.</em></li></ul><p><strong>(E) Learning Based Agent:</strong></p><ul><li>These agents enhance their performance through learning. Starting with a basic set of instructions or objectives, they improve over time through feedback from their environment. This is done via machine learning techniques like reinforcement learning.</li><li><strong><em>Example</em></strong><em>: Virtual assistant like Alexa that personalize responses based on user preferences and past interactions.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfF4udTczpi_fZlkIt4cOQ.png" /></figure><p><strong>REFERENCES</strong></p><ul><li><a href="https://blogs.nvidia.com/blog/what-is-agentic-ai/">https://blogs.nvidia.com/blog/what-is-agentic-ai/</a></li><li><a href="https://www.ibm.com/think/topics/agentic-ai-vs-generative-ai">https://www.ibm.com/think/topics/agentic-ai-vs-generative-ai</a></li></ul><p><strong>CONCLUSION</strong></p><p>As AI agents become more capable and autonomous, their applications will only grow, transforming industries, enhancing productivity, and opening new opportunities for innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5d24198f852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimization using PyGAD]]></title>
            <link>https://medium.com/@bhavanagollapudi/optimization-using-pygad-0dba6755d6c1?source=rss-189444a831b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/0dba6755d6c1</guid>
            <category><![CDATA[genetic-algorithm]]></category>
            <category><![CDATA[pygad]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Bhavana Gollapudi]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 13:45:48 GMT</pubDate>
            <atom:updated>2024-01-28T13:56:01.168Z</atom:updated>
            <content:encoded><![CDATA[<h3>Optimization using PyGAD | GA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*XK62V3EYTLfPxZY5mjXxeg.png" /></figure><p>Genetic Algorithm resembles the theory of natural evolution. It is a heuristic evolutionary algorithm that helps in optimization problems. It is used to solve complex problems by mimicking the evolution process to improve the population of potential solutions iteratively.</p><p>In simple terms, the word genetic means inherit the properties of its own parents. Similarly the algorithm uses process of selection, crossover, mutation of properties and produce new offsprings which in turn used in the process of solving the given requirement.</p><p>Brief flowchart of how the algorithm works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*CqYh61fejBoVi8i1GhfAxA.png" /><figcaption>Image from Internet</figcaption></figure><p>The <strong>fitness function</strong> is used to calculate the fitness value for each solution in the population. The fitness value is calculated using the sum of absolute difference between genes values in the original and reproduced chromosomes.</p><p>Genetic Algorithm can be implemented in Python from scratch or by using libraries like PyGAD, GeneAI.</p><p>Lets go through a tour of PyGAD and a short implementation of it.</p><blockquote><strong>PyGAD</strong> is an open source easy to use python library for implementing the genetic algorithm and it supports a wide range of parameters and methods.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*JVI00NWf-tFvSE3bvYVw4A.png" /><figcaption>Image from Internet</figcaption></figure><p>Each step like selection, crossover, mutation were again categorized into multiple parameters and methods and the complete life cycle of PyGAD library is available in the below website:</p><p><a href="https://pygad.readthedocs.io/en/latest/">PyGAD</a></p><p>The initial step is to install the library:</p><pre>pip install pygad</pre><p>PyGAD is a general purpose optimization library that is designed to customize the fitness function. It mainly consists of 3 steps:</p><blockquote>Build the fitness function — Create an instance of the class — Call the pygad run method.</blockquote><p>Lets see the implementation part of GA using PyGAD library</p><pre>def fitness_func(ga_instance, solution, solution_idx):<br>   <br>    fitness = ## use customized method or specific operation to get value<br><br>    if fitness is None:<br>        return 0<br>    else:<br>        return fitness</pre><p>Below is the link of the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2b3c8af37289f856f4621d5f71dba45/href">https://medium.com/media/c2b3c8af37289f856f4621d5f71dba45/href</a></iframe><p>The complete breakdown and workflow was described while implementing the code itself. In this way, we can have pygad into picture for solving the optimization problems in heuristic approach by having control over the parameters of pygad and customizing it’s methods especially fitness function. Pygad facilitates to visualize and load the output.</p><blockquote>PyGAD can be implemented by integrating with deep learning techniques as well efficiently.</blockquote><p>We can also implement the python code using GeneAI also well and it it described well here:</p><p><a href="https://towardsdatascience.com/introducing-geneal-a-genetic-algorithm-python-library-db69abfc212c">Introducing GeneAl: a Genetic Algorithm Python Library</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0dba6755d6c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reinforcement Learning with Human Feedback — Avails in ChatGPT]]></title>
            <link>https://medium.com/@bhavanagollapudi/reinforcement-learning-with-human-feedback-avails-in-chatgpt-c83c70d8300d?source=rss-189444a831b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c83c70d8300d</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[rlhf]]></category>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Bhavana Gollapudi]]></dc:creator>
            <pubDate>Mon, 24 Jul 2023 09:45:07 GMT</pubDate>
            <atom:updated>2023-07-24T09:45:07.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>Reinforcement Learning with Human Feedback — Avails in ChatGPT</h3><p>In the recent days, Generative AI takes a key role in the IT industry. Basically the main goal of generative ai is to generate new data that was trained on some huge amount of data. It generates language models and image models.</p><blockquote><strong>What is ChatGPT?</strong></blockquote><p>ChatGPT is an AI powered language model that was developed by OpenAI and launched on November 30,2022 that is capable of generating human like conversations. This uses natural language processing to create humanlike conversational dialogue. The language model can respond to questions and compose various written content, including articles, social media posts, essays, code and emails.</p><figure><img alt="ChatGPT" src="https://cdn-images-1.medium.com/max/557/1*SiSWPi9iSfSkko0Uvy-tjw.png" /></figure><p>ChatGPT is a sibling model to <a href="https://openai.com/blog/instruction-following/">InstructGPT</a>, which is trained to follow an instruction in a prompt and provide a detailed response.</p><blockquote><strong>What is its workflow?</strong></blockquote><p>ChatGPT is well trained to perform its tasks in such a way that a person interacts. We have multiple stages to get the model trained.</p><p>Will go in deep how it is trained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*VwApL2VCseGGIup1ukTZZQ.png" /><figcaption>Workflow of ChatGPT</figcaption></figure><p><strong><em>Input of the Model:</em></strong></p><p>Internet have vast amount of data that can be dealt as training dataset for any model to go with. In crisp, the internet data that is being used for training purpose is called as Internet Corpus Data which plays as an input here.</p><p><strong><em>Generative Pre-training:</em></strong></p><p>Here the base model was trained on the input corpus data by using Transformer architecture.</p><p><strong><em>Reinforcement Learning through Human Feedback:</em></strong></p><p>RLHF is primarily used in natural language processing (NLP) for AI agent understanding in applications such as chatbots and conversational agents, text to speech and summarization. In regular reinforcement learning, AI agents learn from their actions through a reward function. RLHF integrates human guidance to accelerate learning.</p><p>RLHF have sub stages to achieve the final tuned model.</p><p>(A) Supervised Fine Tuning | SFT</p><p>(B) Reward Model | RM</p><p>(C) Proximal Policy Optimization | PPO</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*SWH4CtYz-StxH_53iANQNw.png" /><figcaption>Figure adapted from OpenAI</figcaption></figure><blockquote><strong>Supervised Fine Tuning</strong></blockquote><p>With human AI trainers, you get to have conversations between you and AI assistant. This stage uses Stochastic Gradient Descent algorithm and creates SFT training data corpus which consist of conversational history as input and ideal next response as output.</p><p><em>Stochastic gradient descent algorithm is an optimization algorithm for machine learning that keeps tweaking the parameters of a model until the cost function is minimized. Here parameters get updated based on gradient computed from the random subset of training data.</em></p><p><strong>For example:</strong></p><p><em>Prompt: Generate text on mountain</em></p><p><em>Output: Landform that rises prominently above its surroundings, generally exhibiting steep slopes, a relatively confined summit area, and considerable local relief</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*PCSsXJM6DueTrkAC1HaKAg.png" /></figure><p>The Expert policy is simply acts as a rule book and the model get tuned accordingly. But this is not enough !</p><p>Due to out of rule book conversations, <strong>distributional</strong> <strong>shift</strong> get created and it creates issue with the SFT output model.</p><blockquote><strong>Reward Model</strong></blockquote><p>In this stage, the model get optimized by training it against a reward model. RM provide additional feedback to the agent. You can provide models that assign a value function to different states or actions based on desirability. The agent learns to maximize the cumulative reward signal it receives. Human preferences are integrated into the system.</p><p>The underlying goal is to get a <strong>model that takes in a sequence of text, and returns a scalar reward which should numerically represent the human preference</strong>. The system can be an end-to-end LM, or a modular system outputting a reward (e.g. a model ranks outputs, and the ranking is converted to reward). The output being a scalar reward is crucial for existing RL algorithms being integrated seamlessly later in the RLHF process.</p><p>Human annotators are used to rank the generated text outputs from the LM. One may initially think that humans should apply a scalar score directly to each piece of text in order to generate a reward model, but this is difficult to do in practice. The differing values of humans cause these scores to be uncalibrated and noisy. Instead, rankings are used to compare the outputs of multiple models and create a much better regularized dataset.</p><p><strong>For example:</strong></p><p><em>Prompt: Generate text on mountain</em></p><p><em>Output A: Landform that rises prominently above its surroundings, generally exhibiting steep slopes, a relatively confined summit area, and considerable local relief</em></p><p><em>Output B: A mountain is an elevated portion of the Earth’s crust, generally with steep sides that show significant exposed bedrock. Although definitions vary, a mountain may differ from a plateau in having a limited summit area, and is usually higher than a hill.</em></p><p><em>Output C: A mountain is an elevated portion of the Earth’s crust, generally with steep sides that show significant exposed bedrock.</em></p><p>Input prompt and several model outputs are sampled and a labeler ranks all the outputs with human agent assistance from best to worst and this ranked score data is used to train our reward model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*b2omwYcMW2KntHh8jRhpnw.png" /></figure><blockquote><strong>Proximal Policy Optimization</strong></blockquote><p>This helps to decide what is a good response and what is not. The reward model gives reward scores to PPO. It updates policy function in small proximal steps so that it gets better at choosing the best response using advantage function.</p><p><em>Advantage function measures how much better a response compared with all other responses.</em></p><p>PPO is a trust region optimization algorithm that uses constraints on the gradient to ensure the update step does not destabilize the learning process.</p><p>But this isn’t enough as due to avoid <strong>over optimizing</strong>, divergence might takes place and hence KL divergence to be checked before obtaining the final output model.</p><blockquote><strong>KL Divergence</strong></blockquote><p><em>This (Kullback–Leibler) KL divergence measure the difference between two probability distributions. Simply it tells how much information gets lost when one thing is used to guess the other.</em></p><p>In addition, per-token probability distributions from the RL policy are compared to the ones from the initial model to compute a penalty on the difference between them. This penalty has been designed as a scaled version of the KL divergence between these sequences of distributions over tokens​. The KL divergence term penalizes the RL policy from moving substantially away from the initial pretrained model with each training batch, which can be useful to make sure the model outputs reasonably coherent text snippets. Without this penalty the optimization can start to generate text that is gibberish but fools the reward model to give a high reward.</p><p><strong>Let’s formulate this now:</strong></p><p>The reward function is where the system combines all of the models we have discussed into one RLHF process. Given a prompt, <em>x</em>, from the dataset, the text <em>y</em> is generated by the current iteration of the fine-tuned policy. Concatenated with the original prompt, that text is passed to the reward model, which returns a scalar notion of preferability, <em>rθ</em>​.</p><p>In practice, the KL divergence rKL is approximated via sampling from both distributions.</p><p>The final reward sent to the RL update rule is <strong><em>r</em>=<em>rθ</em>​−<em>λr</em>KL​</strong></p><p><strong><em>Output of the Model:</em></strong></p><p>The final output obtained after multiple stages will be the ChatGPT model with well trained and tuned with multiple parameters and factors.</p><blockquote><strong>Conclusion</strong></blockquote><p>RLHF’s most recent success was its use in <a href="https://openai.com/blog/chatgpt/">ChatGPT</a>. This is how ChatGPT avails RLHF and generates desired output !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c83c70d8300d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Family of AI]]></title>
            <link>https://medium.com/@bhavanagollapudi/family-of-ai-7b40ef6f278f?source=rss-189444a831b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b40ef6f278f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bhavana Gollapudi]]></dc:creator>
            <pubDate>Thu, 20 Jul 2023 14:35:24 GMT</pubDate>
            <atom:updated>2023-07-20T14:35:24.916Z</atom:updated>
            <content:encoded><![CDATA[<p>We often listen AI is everything and everywhere !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*r90iId-DgtPsbPyL5jJTWQ.png" /></figure><h4>What actually is it ?</h4><p>AI is a tree that is able to do tasks without human intervention and it is the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings.</p><h4>What are its types?</h4><p>Artificial Intelligence family have various children:</p><blockquote><strong>Reactive Machines:</strong></blockquote><p>AI with well trained instructions such as self driving cars</p><blockquote><strong>Generative AI:</strong></blockquote><p>This breed is designed to generate new content as its primary output trained on bunch of data such as predicting next word in a sentence, chatbots, chatGPT</p><blockquote><strong>Limited Memory:</strong></blockquote><p>This type is works on data like forecasting the weather</p><blockquote><strong>Theory of Mind:</strong></blockquote><p>AI is efficiently trained as such human’s behave such as virtual assistants, conversational bots</p><blockquote><strong>Narrow AI:</strong></blockquote><p>This sort of AI generates customized product suggestions as noticed in our day-to-day routine</p><blockquote><strong>Supervised Learning:</strong></blockquote><p>This classification type deals with identifying the objects, classifying them and dealing with the distribution of data</p><blockquote><strong>Unsupervised Learning:</strong></blockquote><p>This type basically focuses on detecting the abnormalities, clustering the similar and unsimilar groups</p><blockquote><strong>Reinforcement Learning:</strong></blockquote><p>This sort of kind majorly plays crucial role in accepting and working on human feedback and behaves accordingly such as teaching a machine how to play chess</p><h4>Conclusion</h4><p>AI though have various breeds, the core element of it is to minimize human actions and get effective reactions and responses according to the inputs provided and those inputs should be clear in its conditions if so.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b40ef6f278f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>