<?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 Prathyusha Akundi on Medium]]></title>
        <description><![CDATA[Stories by Prathyusha Akundi on Medium]]></description>
        <link>https://medium.com/@prathyuakundi?source=rss-1837a0ad7775------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LT2qPB-wFr8M82CnrSVfhA.jpeg</url>
            <title>Stories by Prathyusha Akundi on Medium</title>
            <link>https://medium.com/@prathyuakundi?source=rss-1837a0ad7775------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:16:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prathyuakundi/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 a 524-day streak taught me about quitting]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@prathyuakundi/what-a-524-day-streak-taught-me-about-quitting-9e495104c1f6?source=rss-1837a0ad7775------2"><img src="https://cdn-images-1.medium.com/max/600/1*LQ9n8jQYfH-7pGrG_xS-9A.png" width="600"></a></p><p class="medium-feed-snippet">It&#x2019;s been a busy day, and just before sleeping, my mind suddenly went into a panic mode because I forgot to do a very trivial task&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@prathyuakundi/what-a-524-day-streak-taught-me-about-quitting-9e495104c1f6?source=rss-1837a0ad7775------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@prathyuakundi/what-a-524-day-streak-taught-me-about-quitting-9e495104c1f6?source=rss-1837a0ad7775------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e495104c1f6</guid>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Prathyusha Akundi]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 16:19:34 GMT</pubDate>
            <atom:updated>2026-06-27T16:19:34.640Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building an Expense Manager using GenAI| Exploring Pydantic, Tools, and Agents]]></title>
            <link>https://medium.com/@prathyuakundi/building-an-expense-manager-using-genai-exploring-pydantic-tools-and-agents-9bb707b6b9c7?source=rss-1837a0ad7775------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bb707b6b9c7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[pydantic]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[langchain]]></category>
            <dc:creator><![CDATA[Prathyusha Akundi]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 21:52:22 GMT</pubDate>
            <atom:updated>2024-12-20T21:52:22.690Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Managing expenses is often seen as a tedious task, involving scanning bills, categorizing expenditures, and calculating totals. What if we could automate this process using the power of GenAI? Enter the <a href="https://github.com/Prathyusha-Akundi/expense-management-assistant"><strong>Expense Manager</strong></a>, an intelligent system that simplifies expense tracking by automating the extraction, categorization, and analysis of bill data — all through a seamless interface.</p><h4>Watch the Demo</h4><p>Here’s a short demo of the <strong>Expense Manager</strong> in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FD7h_RL118Eg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DD7h_RL118Eg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FD7h_RL118Eg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/23771bde233a04acb5749c4cad1e4436/href">https://medium.com/media/23771bde233a04acb5749c4cad1e4436/href</a></iframe><p>In the demo, the Expense Manager processes multiple bills to extract, categorize, and summarize expenses into structured outputs. It provides visualizations and downloadable reports, while allowing users to query the data interactively through a chat interface. This showcases the seamless integration of structured outputs, modular tools, and dynamic orchestration.</p><p>This blog takes you behind the scenes of this Expense Manager and discusses the techniques used:</p><ol><li><strong>Pydantic</strong> for handling structured data.</li><li><strong>Tools</strong> for breaking tasks into modular, reusable components.</li><li><strong>Agents</strong> for orchestrating the workflow and responding to dynamic user queries.</li></ol><p>These concepts not only power the Expense Manager but also provide a reusable framework for solving other automation tasks. Curious to know more? Let’s dive into the technical magic behind the scenes!</p><h3>Conceptual Background: Understanding the Core Components</h3><p>To build the Expense Management Assistant, we leveraged three powerful concepts: <strong>Pydantic</strong>, <strong>Tools</strong>, and <strong>Agents</strong>. Each plays a critical role in ensuring the system is modular, robust, and efficient. Here’s a quick primer on these components:</p><h4>1. Pydantic for Structured Outputs</h4><p>In systems like the Expense Manager, data consistency is critical. The workflow involves multiple stages, and each stage’s output serves as the input to the next. To ensure smooth transitions and prevent errors, we rely on <strong>Pydantic</strong> for data validation and structured outputs. <strong>Pydantic </strong>is a Python library for data validation and settings management, that guarantees the types and constraints of the output model.</p><h4>Why Pydantic Is Essential:</h4><ul><li><strong>Schema Validation</strong>: Pydantic ensures that data adheres to predefined schemas, making it predictable and consistent.</li><li><strong>Error Prevention</strong>: Any mismatches or anomalies in the data structure are detected early, preventing downstream errors.</li><li><strong>Seamless Integration</strong>: With structured outputs, every stage of the workflow communicates efficiently, ensuring robustness and reliability.</li></ul><p>Here is an example schema used in the <strong>Expense Manager </strong>to define and validate the structured data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef7263d177c940e0b0ff39d840a1c869/href">https://medium.com/media/ef7263d177c940e0b0ff39d840a1c869/href</a></iframe><p>With Pydantic as the backbone of structured data handling, the Expense Manager ensures a reliable and error-free workflow.</p><h4><strong>2. Tools for Modular Tasks</strong></h4><p><strong>Tools</strong> are modular components designed to perform specific tasks. They act as external capabilities that the system can invoke to achieve well-defined objectives, such as retrieving data, running calculations, or processing user inputs. Tools make complex workflows easier to manage by breaking them into smaller, independent steps.</p><h4>Why Tools Are Essential:</h4><ol><li><strong>Modularity</strong>: Each tool focuses on a specific task, ensuring clear separation of responsibilities and reusability.</li><li><strong>Task Specialization</strong>: Tools are purpose-built, enabling the system to call on the right resource for the right job.</li><li><strong>Integration</strong>: Tools seamlessly integrate with agents, allowing the agent to dynamically decide which tool to invoke based on the task at hand.</li></ol><h4>How Tools Work:</h4><ul><li>Tools are callable components that expose specific functionalities to the agent.</li><li>An agent invokes a tool by passing the required inputs, and the tool returns structured outputs</li></ul><p>Here’s a simplified example of a tool used in building Expense Manager:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb4b7653ec5d390f696180ad98bc3483/href">https://medium.com/media/fb4b7653ec5d390f696180ad98bc3483/href</a></iframe><p>In the next section, we’ll explore how these tools are orchestrated by an agent to create an intelligent, dynamic workflow.</p><h4>3. Agents for Intelligent Orchestration</h4><p><strong>Agents</strong> are systems that utilize Large Language Models (LLMs) as reasoning engines to determine and execute a sequence of actions to accomplish high-level tasks. They dynamically decide which actions to take and in what order, enabling more flexible and responsive workflows.</p><h4>Why Agents Are Essential:</h4><ul><li><strong>Dynamic Decision-Making</strong>: Agents assess the current context and determine the optimal sequence of actions, allowing for adaptability in complex scenarios.</li><li><strong>Tool Integration</strong>: They can leverage various tools to perform specific tasks, enhancing the system’s overall capabilities.</li><li><strong>Iterative Processing</strong>: Agents can execute actions, evaluate the outcomes, and decide on subsequent steps, facilitating a responsive and intelligent workflow.</li></ul><h4>How Agents Work:</h4><ol><li><strong>Task Reception</strong>: An agent receives a high-level task or query.</li><li><strong>Action Determination</strong>: Utilizing an LLM, the agent decides which actions to take and the sequence in which to execute them.</li><li><strong>Execution and Evaluation</strong>: The agent performs the actions, evaluates the results, and determines if additional steps are necessary.</li><li><strong>Completion</strong>: Once the task is fulfilled, the agent provides the final output.</li></ol><p>Here’s a simplified example of initializing an agent which we used in Expense Manager</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e51dc05263eae447d260876282682900/href">https://medium.com/media/e51dc05263eae447d260876282682900/href</a></iframe><p>By employing agents, systems can achieve intelligent orchestration of tasks, making them adaptable and capable of handling complex, dynamic workflows.</p><h3>Workflow</h3><p>The Expense Manager combines <strong>Pydantic</strong>, <strong>Tools</strong>, and <strong>Agents</strong> to automate expense processing. Below is the block diagram that outlines the system’s architecture and workflow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*omizZaH3Vz8dUVB0sm6LCA.png" /></figure><p>Let’s break down the workflow into detailed steps:</p><ol><li><strong>User Input: Upload Bill Images</strong></li></ol><ul><li>The user initiates the process by uploading one or more bill images through the system interface.</li><li>These images serve as the raw input for the workflow, kickstarting the expense extraction process.</li></ul><p><strong>2. Data Extraction and Validation</strong></p><ul><li>The system uses an extraction tool to scan the uploaded images and extract raw expense data, including details such as: Item Descriptions, Amount, Date.</li><li>Once extracted, the data is validated against a predefined schema using <strong>Pydantic</strong> to ensure it adheres to the expected structure.</li></ul><p><strong>3. Expense Categorization</strong></p><ul><li>The validated expense data is processed further to assign each expense to a category such as “Groceries,” “Transport,” or “Utilities.”</li><li>This categorization is performed using a categorization tool that interprets the descriptions and other contextual data to make intelligent decisions.</li></ul><p><strong>4. Expense Summarization</strong></p><ul><li>The categorized expenses are aggregated to calculate total spending for each category.</li><li>This step provides users with a clear breakdown of their expenses, making it easier to identify spending patterns.</li></ul><p><strong>5. The system generates:</strong></p><ul><li>A categorized expense table: A detailed breakdown of expenses by category.</li><li>A visualization (bar chart or pie chart): A graphical representation of category-wise expenses for better understanding.</li><li>Downloadable reports: CSV files summarizing the processed data for offline use.</li></ul><p><strong>6. And my favourite feature: Chat with Your Expense Manager</strong></p><p>The system includes a chat interface where users can ask specific questions, such as:</p><ul><li>“What is the total amount spent on Groceries?”</li><li>“Which category has the highest expenditure?”</li></ul><p>The Agent dynamically handles these queries by:</p><ul><li>Fetching relevant data from the processed outputs.</li><li>Using tools if additional calculations or context are needed.</li><li>Returning concise, accurate answers to the user.</li></ul><h3>Conclusion</h3><p>Through the Expense Manager, we explored powerful techniques that make modern GenAI applications robust and efficient.</p><ul><li><strong>Pydantic</strong> ensured structured and validated data at every stage of the workflow, enabling seamless transitions between tasks.</li><li><strong>LangChain Tools</strong> allowed us to modularize and isolate specific tasks, making the system scalable and easy to maintain.</li><li>Finally, <strong>Agents</strong> brought everything together, dynamically orchestrating tools and responding to user queries with intelligence and flexibility.</li></ul><p>These techniques form a robust framework that can be adapted to solve a wide range of real-world problems. If you’re interested in exploring the code behind this project, check out the full implementation on <a href="https://github.com/Prathyusha-Akundi/expense-management-assistant"><strong><em>GitHub</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bb707b6b9c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unknown-Unknowns: How to Train a CNN That’s Ready for Anything with Softmax Thresholding]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@prathyuakundi/unknown-unknowns-how-to-train-a-cnn-thats-ready-for-anything-with-softmax-thresholding-20cba0496990?source=rss-1837a0ad7775------2"><img src="https://cdn-images-1.medium.com/max/1178/1*p6JbFtbEbD3YI5Hw45vOTQ.png" width="1178"></a></p><p class="medium-feed-snippet">Deep learning has made great strides in recent years, enabling machines to learn from large volumes of data and perform tasks that were&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@prathyuakundi/unknown-unknowns-how-to-train-a-cnn-thats-ready-for-anything-with-softmax-thresholding-20cba0496990?source=rss-1837a0ad7775------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@prathyuakundi/unknown-unknowns-how-to-train-a-cnn-thats-ready-for-anything-with-softmax-thresholding-20cba0496990?source=rss-1837a0ad7775------2</link>
            <guid isPermaLink="false">https://medium.com/p/20cba0496990</guid>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[softmax]]></category>
            <category><![CDATA[unknown-unknowns]]></category>
            <category><![CDATA[negative-classes]]></category>
            <dc:creator><![CDATA[Prathyusha Akundi]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 21:38:18 GMT</pubDate>
            <atom:updated>2023-03-28T09:22:49.448Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Fraud Detection in Covid Cases using Benford’s Law]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@prathyuakundi/fraud-detection-in-covid-cases-using-benfords-law-6380cbe151d2?source=rss-1837a0ad7775------2"><img src="https://cdn-images-1.medium.com/max/2600/0*OlhDFWPoS_ksgTIn" width="6016"></a></p><p class="medium-feed-snippet">A recent Netflix show called &#x2018;Connected&#x2019;, in one of the episodes, explained a counter-intuitive concept called Benford&#x2019;s Law. This law&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@prathyuakundi/fraud-detection-in-covid-cases-using-benfords-law-6380cbe151d2?source=rss-1837a0ad7775------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@prathyuakundi/fraud-detection-in-covid-cases-using-benfords-law-6380cbe151d2?source=rss-1837a0ad7775------2</link>
            <guid isPermaLink="false">https://medium.com/p/6380cbe151d2</guid>
            <category><![CDATA[fraud-detection]]></category>
            <category><![CDATA[benfords-law]]></category>
            <category><![CDATA[distribution]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Prathyusha Akundi]]></dc:creator>
            <pubDate>Sun, 23 Aug 2020 16:30:09 GMT</pubDate>
            <atom:updated>2020-08-25T15:21:49.611Z</atom:updated>
        </item>
    </channel>
</rss>