<?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 Nikitha Kamichetty on Medium]]></title>
        <description><![CDATA[Stories by Nikitha Kamichetty on Medium]]></description>
        <link>https://medium.com/@nikithak1709?source=rss-be70908121c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8Ugb-kW15eP3F_Zh</url>
            <title>Stories by Nikitha Kamichetty on Medium</title>
            <link>https://medium.com/@nikithak1709?source=rss-be70908121c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:24:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikithak1709/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[Building an LLM Prompt Engineering Playground Using Python and Streamlit]]></title>
            <link>https://medium.com/@nikithak1709/building-an-llm-prompt-engineering-playground-using-python-and-streamlit-6d52b57537bd?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d52b57537bd</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 10:19:59 GMT</pubDate>
            <atom:updated>2026-11-28T10:19:59.748Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Large Language Models can perform different tasks such as answering questions, summarizing documents and generating content.</p><p>However, the responses generated by an LLM depend heavily on the instructions provided to it.</p><p>Even when the same model receives the same task, changing the prompt structure can produce different results.</p><p>To understand this behavior, we developed a Prompt Engineering Playground using Python, Streamlit and an LLM API.</p><p>The application provides an interactive environment where users can experiment with different prompts and compare AI-generated responses.</p><h3>1. Technologies Used</h3><ul><li>Python — Application development.</li><li>Streamlit — Interactive web interface.</li><li>LLM API — Generates responses based on prompts.</li><li>Prompt Templates — Provides different prompting techniques.</li></ul><h3>2. Application Workflow</h3><p>The application follows this workflow:</p><p><strong>User Input → Prompt Selection → Prompt Generation → LLM API → Generated Response → Response Comparison</strong></p><p>The workflow consists of the following stages:</p><ol><li>User Input: The user enters a task or question.</li><li>Prompt Selection: The user chooses a prompt style.</li><li>Prompt Generation: The application prepares the instructions.</li><li>LLM Processing: The prompt is sent to the language model.</li><li>Response Generation: The model generates an answer.</li><li>Response Comparison: Different outputs can be evaluated based on their quality and structure.</li></ol><h3>3. Application Interface</h3><p>The application provides an interactive dashboard designed to make prompt experimentation simple.</p><p>Users can enter a task, select a prompt style, edit the prompt and generate a response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*214k-dbJIZQagMRyhpVi_A.png" /></figure><p>The main interface includes:</p><ul><li>Task input area.</li><li>Prompt style selection.</li><li>Editable prompt section.</li><li>Run Prompt button.</li><li>Generated response section.</li></ul><h3>4. Different Prompt Styles</h3><p>The application supports multiple prompting techniques.</p><h3>Zero-Shot Prompting</h3><p>The model receives an instruction without any examples.</p><p>Example task: “Explain Artificial Intelligence.”</p><p>The model generates a response based only on the given instruction.</p><h3>Few-Shot Prompting</h3><p>The model receives examples before performing the actual task.</p><p>These examples help the model understand the expected response style.</p><h3>Detailed Prompting</h3><p>The user provides specific instructions about the response format, length and language.</p><p>For example, the user can request an explanation in five bullet points using simple English.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*yf6yHlYaib7_KjYS2pf2EA.png" /></figure><h3>5. How the Application Works</h3><p>First, the user enters a task in the input section.</p><p>Next, the user selects a prompting technique such as Zero-Shot or Few-Shot.</p><p>The application prepares the selected prompt template and sends it to the LLM API.</p><p>The language model processes the instructions and generates a response.</p><p>The generated output is then displayed on the application interface.</p><p>Users can change the prompt instructions and execute the task again to observe how the response changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*-SKNnUNRzwFzlQD3ihr1GQ.png" /></figure><h3>6. Experimentation and Testing</h3><p>To understand the impact of prompt structure, the same task was tested using different prompting techniques.</p><p>Example task:</p><p>“Explain Artificial Intelligence.”</p><p><strong>Experiment 1: Zero-Shot</strong></p><p>The model receives a simple instruction to explain Artificial Intelligence.</p><p>Observation: The response provides a general explanation.</p><p><strong>Experiment 2: Few-Shot</strong></p><p>The model receives an example of the expected explanation before answering.</p><p>Observation: The response may follow the demonstrated style more closely.</p><p><strong>Experiment 3: Detailed Prompt</strong></p><p>The model is instructed to explain Artificial Intelligence in five bullet points using simple English.</p><p>Observation: The response follows a more specific structure.</p><h3>7. Comparison of Results</h3><p>Prompt TypeObserved CharacteristicsZero-ShotGeneral responsesFew-ShotFollows provided examplesDetailed PromptMore controlled formatting</p><p>The experiments demonstrate that prompt structure influences the generated responses.</p><p>For a fair comparison, the same model and generation settings should be maintained across experiments.</p><h3>8. Challenges Faced</h3><p><strong>Unclear Instructions:</strong> Poorly written prompts can generate irrelevant responses.</p><p><strong>Inconsistent Results:</strong> Repeated model requests may produce different wording.</p><p><strong>API Errors:</strong> Temporary service issues can interrupt response generation.</p><p><strong>Prompt Design:</strong> Finding the most effective instructions requires experimentation.</p><p>These challenges highlight the importance of systematic testing and evaluation.</p><h3>9. Key Learnings</h3><p>Through this project, we understood that:</p><ul><li>Prompt structure influences model responses.</li><li>Examples can help guide output formatting.</li><li>Detailed instructions improve control over responses.</li><li>Different prompting techniques are useful for different tasks.</li><li>Repeated testing is important for evaluating prompt quality.</li></ul><h3>Conclusion</h3><p>The Prompt Engineering Playground provides a practical way to understand how different instructions influence LLM-generated responses.</p><p>By developing this application, we explored prompt templates, API integration, interactive experimentation and response evaluation.</p><p>The project demonstrates that prompt engineering is not simply about writing questions. It is about designing, testing and improving instructions to achieve better results from AI systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d52b57537bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt Engineering Explained: Why the Same LLM Produces Different Results]]></title>
            <link>https://medium.com/@nikithak1709/prompt-engineering-explained-why-the-same-llm-produces-different-results-708a0b66ab6c?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/708a0b66ab6c</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 10:14:23 GMT</pubDate>
            <atom:updated>2026-11-28T10:14:23.899Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Large Language Models (LLMs) are becoming an important part of modern software development. They can generate text, answer questions, summarize documents and solve different tasks.</p><p>However, an interesting observation is that the same language model can generate different responses depending on how a prompt is written.</p><p>This is where Prompt Engineering becomes important.</p><p>Prompt engineering is the process of designing and improving instructions given to an LLM to obtain more useful and relevant responses.</p><h3>1. What Is a Prompt?</h3><p>A prompt is an instruction or input provided to a language model.</p><p>For example:</p><p>Prompt 1:<br>“Explain Artificial Intelligence.”</p><p>Prompt 2:<br>“Explain Artificial Intelligence in five simple sentences for a beginner, with one real-world example.”</p><p>Both prompts ask about the same topic, but the expected responses are different because the instructions are different.</p><h3>2. Why Does Prompt Structure Matter?</h3><p>The quality of an LLM response depends on several factors:</p><ul><li>Clarity of instructions.</li><li>Context provided to the model.</li><li>Expected output format.</li><li>Examples included in the prompt.</li><li>Model configuration and randomness.</li></ul><p>A well-designed prompt helps the model understand what the user expects.</p><h3>3. Different Prompt Engineering Techniques</h3><h3>Zero-Shot Prompting</h3><p>The model receives an instruction without examples.</p><p>Example:</p><p>“Summarize the following paragraph in three sentences.”</p><p>This approach is simple and useful for general tasks.</p><h3>One-Shot Prompting</h3><p>The model receives one example before performing the actual task.</p><p>Example:</p><p>Input: “The weather is very hot today.”</p><p>Output: “Weather: Hot”</p><p>Now provide another sentence and ask the model to follow the same format.</p><h3>Few-Shot Prompting</h3><p>The model receives multiple examples to understand the expected pattern.</p><p>This technique is useful when a specific output style or structure is required.</p><h3>Role-Based Prompting</h3><p>The model is assigned a particular role.</p><p>Example:</p><p>“You are an experienced Python developer. Explain this code to a beginner.”</p><p>This provides additional context about the expected response.</p><h3>Chain-of-Thought Style Instructions</h3><p>The prompt asks the model to work through a problem systematically. For many applications, asking for a concise explanation or structured reasoning summary is preferable to requiring private internal reasoning.</p><h3>4. Prompt Engineering Workflow</h3><p>A typical prompt experimentation workflow contains:</p><ol><li>Define the task.</li><li>Create different prompt templates.</li><li>Provide identical input to the model.</li><li>Generate responses.</li><li>Compare the outputs.</li><li>Evaluate response quality.</li><li>Improve the prompt.</li></ol><p>This process helps developers understand how prompt design affects results.</p><h3>5. Why Do Responses Change?</h3><p>Even when the input is identical, model responses may differ because of:</p><p><strong>Prompt wording:</strong> Small changes in instructions can change the output.</p><p><strong>Temperature:</strong> Higher temperature generally allows more variation in generated text.</p><p><strong>Context:</strong> Additional background information can influence the response.</p><p><strong>Examples:</strong> Demonstrations help the model understand the expected pattern.</p><p><strong>Model variability:</strong> Model versions and generation settings can affect results.</p><p>For reproducible experiments, developers should record the model version, prompt, input and generation parameters.</p><h3>6. Why Compare Multiple Prompts?</h3><p>Comparing different prompts helps identify which instructions work best.</p><p>For example, consider asking an LLM to summarize a paragraph.</p><ul><li>Prompt A: Summarize this text.</li><li>Prompt B: Summarize this text in three bullet points.</li><li>Prompt C: Explain the main idea in simple English for a beginner.</li></ul><p>Each prompt has a different objective and may produce a different response.</p><p>The best prompt depends on the application’s requirements.</p><h3>7. Applications of Prompt Engineering</h3><p>Prompt engineering is useful in:</p><ul><li>AI chatbots.</li><li>Educational assistants.</li><li>Document summarization.</li><li>Code generation.</li><li>Customer support automation.</li><li>Content generation.</li><li>Information extraction.</li></ul><h3>8. Challenges in Prompt Engineering</h3><p><strong>Ambiguous instructions:</strong> The model may misunderstand the task.</p><p><strong>Inconsistent responses:</strong> Repeated requests may produce different wording.</p><p><strong>Long prompts:</strong> Unnecessary context may reduce clarity.</p><p><strong>Evaluation difficulty:</strong> It can be difficult to determine which response is better without measurable criteria.</p><p>These challenges can be addressed through systematic testing and clear evaluation methods.</p><h3>Conclusion</h3><p>Prompt engineering is an important skill for developers working with Large Language Models.</p><p>The same LLM can produce different results depending on the instructions, examples and context provided. Therefore, developers should not rely on a single prompt without testing it.</p><p>Experimenting with different prompt structures helps improve response relevance, consistency and usefulness.</p><p>The key lesson is simple: better instructions can lead to better AI interactions, but reliable results require testing, evaluation and reproducibility.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=708a0b66ab6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Structured JSON Extraction Application Using Python and Large Language Models]]></title>
            <link>https://medium.com/@nikithak1709/building-a-structured-json-extraction-application-using-python-and-large-language-models-40eac1882e42?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/40eac1882e42</guid>
            <category><![CDATA[json]]></category>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[openai-api]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 10:10:49 GMT</pubDate>
            <atom:updated>2026-11-28T10:10:49.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Large Language Models (LLMs) can understand natural language, but extracting specific information from unstructured text and converting it into a predefined format can be challenging.</p><p>For example, consider a product description:</p><p>“Apple iPhone 16 costs $999. It comes with 256GB storage and is available in Midnight and Pink colors.”</p><p>A person can easily identify the product name, price, storage and colors. However, software applications require this information in a structured format.</p><p>To solve this problem, we developed a Structured JSON Extraction Application using Python, Streamlit, an LLM API and Pydantic.</p><p>The application converts ordinary text into organized and validated JSON output.</p><h3>1. Technologies Used</h3><ul><li>Python — Handles the application logic.</li><li>Streamlit — Provides the interactive web interface.</li><li>LLM API — Extracts relevant information from text.</li><li>Pydantic — Validates the extracted information.</li><li>JSON — Stores the final structured output.</li></ul><h3>2. Application Workflow</h3><p>The application follows a simple workflow:</p><p><strong>Text Input → Prompt Generation → LLM Processing → JSON Response → Schema Validation → Final Output</strong></p><p>Each stage performs an important task.</p><ol><li>Text Input: The user enters an unstructured product description.</li><li>Prompt Generation: The application prepares instructions for the language model.</li><li>LLM Processing: The model analyzes the text and identifies relevant information.</li><li>JSON Response: The model generates structured information.</li><li>Schema Validation: Pydantic checks whether the output follows the expected data structure.</li><li>Final Output: Validated JSON is displayed to the user.</li></ol><h3>3. Application Interface</h3><p>The application provides a simple and user-friendly interface.</p><p>Users can enter product descriptions in a text input area and initiate the extraction process using a button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWxH6h8S_CtYd08tpKO-Gw.png" /></figure><p>The interface contains:</p><ul><li>Text input area.</li><li>Extraction button.</li><li>Structured output section.</li><li>Validation status.</li></ul><h3>4. How the Application Works</h3><p>When the user enters product information, the application sends the text to the LLM through an API request.</p><p>The model identifies important fields such as:</p><ul><li>Product name.</li><li>Price.</li><li>Storage capacity.</li><li>Available colors.</li></ul><p>The extracted information is converted into JSON.</p><p>The application then passes the response through Pydantic validation.</p><p>If the response follows the expected schema, the application displays a successful validation message along with the structured output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*tRmJOZw2m7q57QC50g8AhA.png" /></figure><h3>5. Testing and Validation</h3><p>To evaluate the application, different input scenarios were tested.</p><h3>Test Case 1: Valid Input</h3><p>Input: “iPhone 16 costs $999 and comes with 256GB storage in Midnight and Pink colors.”</p><p>Expected result: The application extracts all available product details and generates valid JSON.</p><h3>Test Case 2: Missing Information</h3><p>Input: “Samsung Galaxy is available in Black.”</p><p>Expected result: The application should identify the available information without inventing missing details.</p><h3>Test Case 3: Invalid Structured Output</h3><p>When the model produces an output that does not follow the predefined schema, Pydantic identifies the validation error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Nkkn8QTQRTd5tqoQ5prLOg.png" /></figure><h3>6. Observations</h3><p>During testing, several observations were made:</p><ul><li>Clear prompts help improve extraction accuracy.</li><li>Pydantic helps maintain a consistent output structure.</li><li>Missing information must be handled carefully.</li><li>Ambiguous descriptions can produce incomplete results.</li><li>Schema validation helps identify incorrect data types and missing required fields.</li></ul><p>One important observation is that valid JSON does not necessarily mean factually correct information. The extracted values should also be checked against the original text.</p><h3>7. Challenges Faced</h3><p>Some challenges encountered during development include:</p><p><strong>Ambiguous Input:</strong> Product descriptions may contain incomplete or unclear information.</p><p><strong>Invalid JSON:</strong> Model responses may sometimes fail to follow the required structure.</p><p><strong>Missing Fields:</strong> Certain product details may not be available in the original text.</p><p><strong>API Errors:</strong> Communication with the LLM API may fail because of connectivity or service issues.</p><p>These challenges can be addressed through better prompt instructions, schema validation and proper error handling.</p><h3>8. Conclusion</h3><p>This project demonstrates how Large Language Models can transform unstructured text into structured and machine-readable information.</p><p>By combining Python, Streamlit, an LLM API and Pydantic, we developed an application that extracts product information and validates the generated JSON.</p><p>The project helped us understand the importance of prompt design, structured data, schema validation and reliable LLM integration.</p><p>The major takeaway is that AI-generated information should always be validated before being used in real-world applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40eac1882e42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Structured JSON Output Generation Using Large Language Models]]></title>
            <link>https://medium.com/@nikithak1709/understanding-structured-json-output-generation-using-large-language-models-a4baf17aff20?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4baf17aff20</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[json]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 09:58:56 GMT</pubDate>
            <atom:updated>2026-11-28T09:58:56.014Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Large Language Models (LLMs) have changed the way we interact with information. They can understand natural language, answer questions, summarize documents and extract useful information from large amounts of text.</p><p>However, one important challenge is converting unstructured text into structured data.</p><p>For example, consider the following sentence:</p><p>“Apple launched the iPhone 16 with 256GB storage at a price of $999. It is available in Midnight and Pink.”</p><p>A human can easily identify the product name, price, storage capacity and available colors. But applications often need this information in a structured format such as JSON.</p><p>This is where Structured JSON Output Generation becomes useful.</p><h3>1. What Is Unstructured Data?</h3><p>Unstructured data refers to information that does not follow a fixed format.</p><p>Examples include:</p><ul><li>Emails</li><li>Product descriptions</li><li>News articles</li><li>Customer reviews</li><li>Social media posts</li><li>Event descriptions</li></ul><p>Extracting specific information from such text manually can be time-consuming.</p><h3>2. What Is Structured JSON Output?</h3><p>JSON (JavaScript Object Notation) is a lightweight data-interchange format used to store and exchange information.</p><p>For example:</p><pre>{<br>  &quot;product_name&quot;: &quot;iPhone 16&quot;,<br>  &quot;price&quot;: 999,<br>  &quot;storage&quot;: &quot;256GB&quot;,<br>  &quot;colors&quot;: [&quot;Midnight&quot;, &quot;Pink&quot;]<br>}</pre><p>This format makes information easier for software applications to read, process and store.</p><h3>3. How Do LLMs Help?</h3><p>An LLM can analyze natural language and identify important information based on instructions provided through a prompt.</p><p>The general workflow is:</p><ol><li>Receive unstructured text.</li><li>Generate a suitable prompt.</li><li>Send the prompt to an LLM.</li><li>Receive the model response.</li><li>Validate the response against a predefined schema.</li><li>Generate the final JSON output.</li></ol><h3>4. Important Technologies</h3><p><strong>Python:</strong> Used to develop the application and connect different components.</p><p><strong>LLM API:</strong> Allows the application to communicate with a language model.</p><p><strong>Pydantic:</strong> Defines data models and validates whether the extracted information follows the expected structure.</p><p><strong>JSON:</strong> Provides a standardized format for the final output.</p><h3>5. Why Is Schema Validation Important?</h3><p>An LLM may generate incorrect or incomplete information.</p><p>For example, an application expects a numeric price, but the model returns a string containing unexpected text.</p><p>Schema validation helps detect problems such as:</p><ul><li>Missing required fields.</li><li>Incorrect data types.</li><li>Invalid values.</li><li>Unexpected output structures.</li></ul><p>Validation does not guarantee that the extracted facts are true. It checks whether the response follows the required structure and rules.</p><h3>6. Challenges in Structured Extraction</h3><p><strong>Ambiguous input:</strong> A product description may contain unclear prices or incomplete details.</p><p><strong>Missing information:</strong> The source text may not mention every required field.</p><p><strong>Inconsistent formatting:</strong> Different model responses may represent the same information differently.</p><p><strong>Hallucinations:</strong> Models may generate information that is not present in the original text.</p><p>These challenges can be reduced by using clear prompts, strict schemas and explicit instructions not to invent missing information.</p><h3>7. Real-World Applications</h3><p>Structured extraction is useful in many domains:</p><ul><li>E-commerce: Extracting product names, prices and specifications.</li><li>Healthcare administration: Organizing information from documents.</li><li>Recruitment: Extracting candidate details from resumes.</li><li>Event management: Extracting dates, locations and event names.</li><li>Finance: Organizing information from invoices and receipts.</li></ul><h3>Conclusion</h3><p>Structured JSON generation makes LLMs more useful for real-world software applications. By combining Python, LLM APIs, Pydantic and JSON validation, developers can transform unstructured information into organized and machine-readable data.</p><p>The most important lesson is that generating JSON is not enough. Reliable applications must also validate the structure, handle errors and avoid accepting unsupported information.</p><p>As LLM applications continue to grow, structured output generation will remain an important technique for building dependable AI-powered systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4baf17aff20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Agentic AI Project Planner Using Python, Gemini API, and Lang Graph]]></title>
            <link>https://medium.com/@nikithak1709/building-an-agentic-ai-project-planner-using-python-gemini-api-and-lang-graph-14ec5de685eb?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/14ec5de685eb</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 17:06:20 GMT</pubDate>
            <atom:updated>2026-11-16T17:06:20.125Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From a simple project idea to an evaluated and improved project plan using a controlled Agentic AI workflow.</em></p><h3>1. Introduction</h3><p>Artificial Intelligence is evolving beyond systems that simply respond to user questions. Agentic AI introduces a more advanced approach in which AI systems can plan tasks, make decisions, evaluate outcomes, and improve their results through feedback.</p><p>For my Agentic AI project, I built an <strong>AI Project Planner</strong> that takes a project idea from the user and generates a structured project plan. The workflow then validates the generated plan, evaluates its quality, and revises it when necessary.</p><p>The project demonstrates how multiple AI workflow stages can work together to create a more reliable result.</p><h3>2. Project Overview</h3><p>The AI Project Planner accepts a project idea and generates a detailed project plan containing eight essential sections:</p><ol><li>Project Overview</li><li>Objectives</li><li>Technology Stack</li><li>Tasks and Milestones</li><li>Timeline</li><li>Resources Required</li><li>Expected Deliverables</li><li>Potential Risks</li></ol><p>After generating the plan, the workflow checks whether all required sections are present. An AI evaluator then reviews the plan for completeness, clarity, feasibility, timeline, and deliverable quality.</p><p>If improvements are required, the workflow enters a revision cycle and evaluates the improved plan again.</p><h3>3. Technologies Used</h3><p>The project was developed using the following technologies:</p><ul><li><strong>Python:</strong> Main programming language.</li><li><strong>Google Gemini API:</strong> Generates project plans and evaluates their quality.</li><li><strong>LangGraph:</strong> Manages the workflow, state transitions, and feedback loop.</li><li><strong>Streamlit:</strong> Provides a simple interactive user interface.</li><li><strong>python-dotenv:</strong> Loads the API key securely from environment variables.</li></ul><h3>4. System Architecture and Workflow</h3><p>The project follows a sequence of connected workflow nodes.</p><p><strong>Workflow stages:</strong></p><ol><li>User Input — The user enters a project idea.</li><li>Planning — Gemini generates a structured project plan.</li><li>Action — Python validates the presence of all eight required sections.</li><li>Evaluation — Gemini evaluates the plan’s quality.</li><li>Decision — The workflow checks the evaluation status.</li><li>Revision — If improvements are needed, Gemini generates an improved plan.</li><li>Completion — The workflow stops when the plan is approved or the revision limit is reached.</li></ol><p><strong>Workflow representation:</strong></p><p>User Input → Planning → Validation → Evaluation → Decision</p><ul><li>If APPROVED → Complete</li><li>If REVISE → Revision → Validation → Evaluation</li><li>If the maximum revision limit is reached → Stop</li></ul><p>This feedback loop allows the workflow to improve a generated result instead of accepting the first response automatically.</p><h3>5. Implementation</h3><h3>Step 1: Gemini API Integration</h3><p>I integrated the Google Gemini API to generate and evaluate project plans.</p><p>The API receives prompts containing the project idea and the required output structure. It returns the generated project plan or evaluation feedback.</p><p>The model used in the final implementation was Gemini 4 Hydrogen.</p><h3>Step 2: Defining the Workflow State</h3><p>LangGraph uses a shared state to maintain information throughout the workflow.</p><p>The state contains:</p><ul><li>Project idea</li><li>Generated plan</li><li>Validation result</li><li>Evaluation feedback</li><li>Current workflow status</li><li>Revision count</li><li>Maximum revision limit</li></ul><p>This allows each workflow node to access the information generated by previous nodes.</p><h3>Step 3: Planning Node</h3><p>The planning node sends the user’s project idea to Gemini.</p><p>It instructs the model to generate a detailed project plan containing all eight required sections.</p><h3>Step 4: Action and Validation Node</h3><p>The action node checks whether all eight required sections are present in the generated plan.</p><p>This validation is performed using Python rather than another AI-generated decision.</p><p>If any section is missing, the validation result identifies the missing sections. Otherwise, the plan receives a successful validation result.</p><h3>Step 5: Evaluation Node</h3><p>The evaluation node sends the generated plan and validation result to Gemini.</p><p>The evaluator checks:</p><ul><li>Completeness</li><li>Clarity</li><li>Feasibility</li><li>Realistic timeline</li><li>Quality of deliverables</li></ul><p>It returns either APPROVED or REVISE, along with an explanation.</p><h3>Step 6: Revision Node</h3><p>When the evaluator requests improvements, the revision node sends the original plan and evaluation feedback back to Gemini.</p><p>Gemini generates an improved version of the complete project plan.</p><p>The revised plan is then sent through validation and evaluation again.</p><h3>Step 7: Conditional Routing and Termination</h3><p>LangGraph manages the feedback loop using conditional edges.</p><p>If the plan is approved, the workflow ends.</p><p>If improvements are required and revisions remain, the workflow enters the revision node.</p><p>To prevent endless execution, I implemented a maximum revision limit. Once the limit is reached, the workflow stops.</p><h3>6. Streamlit User Interface</h3><p>I also developed a Streamlit interface to make the project easier to use.</p><p>Users can enter their project ideas and generate project plans without directly interacting with the Python terminal.</p><p>The interface displays the generated plan, validation result, evaluation report, final status, and total number of revisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOGjnX76jKHMLobg6JKfCQ.png" /></figure><p><em>Figure 1: The Streamlit interface displaying a generated AI-powered plant disease detection project plan.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qP0bZXlVZHXHW9vxhv5rhg.png" /></figure><p><em>Figure 2: The generated plan, successful validation, evaluation report, and final approval status.</em></p><h3>7. Testing and Results</h3><p>I tested the workflow using different project ideas to observe how it generated and evaluated project plans.</p><p>Some of the test ideas included:</p><ul><li>AI-powered Plant Disease Detection System</li><li>AI-powered Smart Attendance Management System</li></ul><p>The workflow successfully generated structured plans and checked whether all eight required sections were present.</p><p>The evaluator returned an approval decision for the tested project plans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*TkqfmJ327XIakmlFUIjLlw.png" /></figure><p><strong>[INSERT SCREENSHOT 3: Successful workflow execution]</strong></p><p><em>Figure 3: Terminal output showing successful project plan evaluation and workflow completion.</em></p><h3>8. Testing the Feedback Loop</h3><p>One important part of this project was testing whether the workflow could actually enter its revision stage.</p><p>To verify this behavior, I performed a controlled test in which the first evaluation decision was temporarily forced to REVISE.</p><p>This allowed me to check whether the workflow correctly:</p><ol><li>Received the REVISE decision.</li><li>Entered the revision node.</li><li>Generated an improved project plan.</li><li>Validated the revised plan again.</li><li>Sent it for another evaluation.</li><li>Completed when the second evaluation returned APPROVED.</li></ol><p>The test successfully demonstrated the complete feedback loop.</p><p><strong>Important:</strong> The first REVISE decision was deliberately forced for testing. It was not an independent decision made by Gemini. The subsequent evaluation was performed by Gemini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7bPCfzYyj9QmPEFLE9n-EA.png" /></figure><p><em>Figure 4: Terminal output demonstrating REVISE → REVISION → VALIDATION → APPROVED.</em></p><h3>9. Challenges Faced</h3><p>During development, I encountered several challenges.</p><p><strong>1. API availability</strong></p><p>The initial Gemini model experienced temporary service-unavailable errors. I checked the available models and changed to Gemini 4 Hydrogen, which worked successfully with the Google GenAI SDK.</p><p><strong>2. Workflow state management</strong></p><p>Managing the information passed between different LangGraph nodes required careful state design.</p><p><strong>3. Feedback-loop implementation</strong></p><p>The workflow needed to distinguish between approval, revision, and termination conditions.</p><p><strong>4. Preventing infinite loops</strong></p><p>A maximum revision limit and graph recursion limit were implemented to prevent uncontrolled workflow execution.</p><p><strong>5. Testing the revision path</strong></p><p>Since an evaluator may approve a plan immediately, I used a controlled test to verify that the revision path worked correctly.</p><h3>10. Limitations and Future Enhancements</h3><p>The current system focuses on generating, validating, and evaluating project plans. Its action stage performs structural validation; it does not independently execute the tasks described in a project plan.</p><p>Future improvements could include:</p><ul><li>More detailed project feasibility analysis.</li><li>Exporting project plans as PDF or DOCX.</li><li>Adding project progress tracking.</li><li>Integrating task management tools.</li><li>Adding more evaluation criteria.</li><li>Supporting additional AI models.</li><li>Introducing real-world task execution with appropriate human approval.</li></ul><h3>11. What I Learned</h3><p>Building this project helped me understand how Agentic AI workflows differ from simple LLM applications.</p><p>I gained practical experience with:</p><ul><li>Integrating an LLM API into a Python application.</li><li>Building state-based workflows using LangGraph.</li><li>Designing planning, validation, evaluation, and revision nodes.</li><li>Implementing conditional routing.</li><li>Managing feedback loops and termination conditions.</li><li>Creating an interactive application using Streamlit.</li><li>Testing workflow behavior with different project ideas.</li></ul><p>Most importantly, I learned that generating an AI response is only one part of building a useful AI system. Validation, evaluation, and controlled feedback are equally important.</p><h3>12. Conclusion</h3><p>The AI Project Planner demonstrates how an Agentic AI workflow can transform a simple project idea into a structured and evaluated project plan.</p><p>By combining Python, Gemini API, LangGraph, and Streamlit, I developed a system that follows a planning, validation, evaluation, and revision process.</p><p>This project gave me hands-on experience with agentic workflow design and helped me understand how feedback loops can improve the reliability of AI-generated outputs.</p><p><strong>GitHub Repository:</strong><br><a href="https://github.com/nikitha-1709/agentic-ai-workflow">https://github.com/nikitha-1709/agentic-ai-workflow</a></p><p>Thank you for reading!</p><p>#AgenticAI #ArtificialIntelligence #Python #GeminiAPI #LangGraph #Streamlit #MachineLearning #AIProjects</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14ec5de685eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Agentic AI: How Planning, Action, and Evaluation Create Intelligent Workflows]]></title>
            <link>https://medium.com/@nikithak1709/understanding-agentic-ai-how-planning-action-and-evaluation-create-intelligent-workflows-ec4b41a265cc?source=rss-be70908121c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec4b41a265cc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Nikitha Kamichetty]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 16:53:19 GMT</pubDate>
            <atom:updated>2026-11-16T16:53:19.743Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Exploring how AI agents move beyond simple responses through planning, decision-making, feedback loops, and controlled execution.</em></p><h3>Introduction</h3><p>Artificial Intelligence has changed the way we interact with technology. Traditional AI applications can answer questions, generate content, summarize information, and assist with everyday tasks.</p><p>However, what happens when a task requires multiple steps rather than a single response?</p><p>For example, imagine asking an AI system to create a detailed project plan. It needs to understand the request, organize the work, generate a plan, check whether the plan is complete, identify weaknesses, and improve the result.</p><p>A single AI response may not be enough to complete this task reliably.</p><p>This is where <strong>Agentic AI</strong> becomes important.</p><p>Agentic AI introduces a workflow in which an AI system can plan, take actions, observe results, evaluate outcomes, and make further decisions based on feedback.</p><h3>1. What Is Agentic AI?</h3><p>Agentic AI refers to AI systems designed to work toward a goal by making decisions and carrying out a sequence of steps with some degree of autonomy.</p><p>Unlike a traditional chatbot that primarily responds to individual prompts, an agentic system can:</p><ul><li>Understand a given objective.</li><li>Break a complex task into smaller steps.</li><li>Decide what action to take next.</li><li>Use tools or processes to perform actions.</li><li>Observe the results of those actions.</li><li>Evaluate whether the objective has been achieved.</li><li>Revise its approach when improvements are needed.</li></ul><p>The important idea is that the system does not simply generate an answer and stop. It follows a structured process to work toward a desired outcome.</p><h3>2. Traditional AI vs. Agentic AI</h3><p>Traditional AI and Agentic AI can both use Large Language Models (LLMs), but their workflows are different.</p><p><strong>Traditional AI:</strong></p><p>A user provides a prompt, the model generates a response, and the interaction generally ends.</p><p><strong>Agentic AI:</strong></p><p>A user provides a goal, the system plans the task, performs actions, observes the results, evaluates the outcome, and may repeat certain steps until a completion condition is reached.</p><p>For example, consider the request:</p><p>“Create a project plan for an AI-powered attendance management system.”</p><p>A traditional AI system may generate a project plan in one response.</p><p>An agentic system can generate the plan, validate its required sections, evaluate its quality, request improvements, and check the revised version.</p><p>This makes the workflow more structured and suitable for multi-step tasks.</p><h3>3. The Core Components of an Agentic AI Workflow</h3><p>An agentic workflow can contain several interconnected components. Six important stages are planning, action, observation, evaluation, revision, and completion.</p><h3>3.1 Planning</h3><p>Planning is the stage where the system understands the user’s objective and decides what needs to be done.</p><p>A complex task is divided into smaller and more manageable steps.</p><p>For example, when generating a project plan, the planning stage can identify:</p><ul><li>Project objectives.</li><li>Required technologies.</li><li>Implementation milestones.</li><li>Timeline.</li><li>Resources.</li><li>Expected deliverables.</li><li>Potential risks.</li></ul><p>Planning provides direction to the remaining workflow.</p><h3>3.2 Action</h3><p>After planning, the system performs an action.</p><p>An action can involve calling an API, processing data, validating information, searching for resources, or executing a task through an available tool.</p><p>For example, an AI project planner may check whether the generated plan contains all the required sections.</p><p>Actions turn decisions into operations that produce observable results.</p><h3>3.3 Observation</h3><p>Observation is the process of collecting information about what happened after an action was performed.</p><p>The system needs this information to understand whether the action produced the expected result.</p><p>For example:</p><ul><li>Were all required sections found?</li><li>Was any information missing?</li><li>Did the validation succeed?</li><li>Were errors detected?</li></ul><p>The observation becomes feedback for the next stage.</p><h3>3.4 Evaluation</h3><p>Evaluation determines whether the current result meets the desired quality or completion criteria.</p><p>An AI evaluator may examine:</p><ul><li>Completeness.</li><li>Clarity.</li><li>Feasibility.</li><li>Accuracy.</li><li>Quality of deliverables.</li></ul><p>Based on the evaluation, the system can approve the result or request further improvements.</p><h3>3.5 Revision and Feedback</h3><p>If the result does not meet the expected requirements, the workflow can return to an earlier stage.</p><p>The system uses evaluation feedback to improve the existing result instead of starting the entire process without considering previous output.</p><p>For example, if a project plan lacks implementation details, the evaluator can request clearer milestones and more specific technical information.</p><p>The revision stage uses this feedback to produce an improved plan.</p><p>This creates a feedback loop.</p><h3>3.6 Completion</h3><p>A workflow needs a clear condition for deciding when to stop.</p><p>Possible completion conditions include:</p><ul><li>The evaluator approves the result.</li><li>The maximum number of revisions is reached.</li><li>A required task cannot be completed.</li><li>An execution limit is reached.</li></ul><p>Without termination conditions, an agentic workflow could continue repeating actions without reaching a useful conclusion.</p><h3>4. Understanding Feedback Loops in Agentic AI</h3><p>A feedback loop is one of the most important concepts in agentic workflows.</p><p>It allows a system to evaluate its output and make improvements based on the feedback received.</p><p>Consider this simplified example:</p><ol><li>The AI generates a project plan.</li><li>The validation process checks its structure.</li><li>The evaluator identifies missing details.</li><li>The system receives a revision request.</li><li>The AI improves the plan.</li><li>The revised plan is validated and evaluated again.</li><li>The workflow stops when the plan is approved or a revision limit is reached.</li></ol><p>The process can be represented as:</p><p><strong>Plan → Action → Observation → Evaluation → Feedback → Revision → Re-evaluation</strong></p><p>The feedback loop helps improve the quality of the result through repeated evaluation.</p><p>However, repeated execution does not automatically guarantee a better result. The quality of feedback, evaluation criteria, and revision instructions also matter.</p><h3>5. Workflow Orchestration with LangGraph</h3><p>When an AI task contains multiple stages, managing the order of execution becomes important.</p><p>A workflow orchestration framework helps organize these stages and define how information moves between them.</p><p>One such framework is LangGraph.</p><p>LangGraph allows developers to represent workflows as graphs containing nodes and connections.</p><p>Important concepts include:</p><p><strong>Nodes:</strong> Individual functions responsible for specific tasks, such as planning, validation, evaluation, and revision.</p><p><strong>Edges:</strong> Connections that determine which node executes next.</p><p><strong>State:</strong> Shared information maintained throughout the workflow.</p><p><strong>Conditional routing:</strong> Logic that determines the next step based on the current state.</p><p><strong>Cycles:</strong> Connections that allow a workflow to return to an earlier node, enabling feedback and revision.</p><p>For example, an evaluator node can route an approved result to completion or send a result requiring improvement to a revision node.</p><p>This makes LangGraph useful for building controlled, multi-step AI applications.</p><h3>6. Challenges in Building Agentic AI Systems</h3><p>Although agentic workflows provide flexibility, they also introduce several challenges.</p><h3>Non-deterministic AI responses</h3><p>Large Language Models may produce different responses to similar prompts. They may also occasionally ignore a requested output format.</p><p>Therefore, relying entirely on natural-language instructions for important decisions can be risky.</p><h3>Workflow loops</h3><p>A system may repeatedly request revisions without reaching approval.</p><p>A maximum revision count and an execution limit can help prevent unlimited execution.</p><h3>Evaluation quality</h3><p>An evaluator may approve an incomplete result or request unnecessary revisions.</p><p>Clear evaluation criteria and deterministic validation checks can make the process more reliable.</p><h3>API and execution failures</h3><p>Agentic systems often depend on external APIs and services. Network issues, timeouts, unavailable models, and invalid responses can interrupt execution.</p><p>Error handling and appropriate execution limits are therefore important.</p><h3>Resource consumption</h3><p>Every additional LLM call may increase execution time and API usage.</p><p>A workflow should avoid unnecessary repetitions and use clear stopping conditions.</p><h3>7. A Practical Example: AI Project Planning Agent</h3><p>Consider an AI system that helps users generate structured project plans.</p><p>The user enters a project idea, such as:</p><p>“Build an AI-powered plant disease detection system.”</p><p>The agentic workflow can follow these stages:</p><ol><li><strong>Planning:</strong> Generate a structured project plan.</li><li><strong>Action:</strong> Validate whether all required sections are present.</li><li><strong>Observation:</strong> Collect the validation result.</li><li><strong>Evaluation:</strong> Review the plan for completeness, clarity, and feasibility.</li><li><strong>Revision:</strong> Improve the plan using evaluator feedback when necessary.</li><li><strong>Completion:</strong> Return the approved plan or stop when the revision limit is reached.</li></ol><p>This example demonstrates how different components can work together to solve a multi-step task.</p><p>The system does not simply generate content. It follows a controlled process in which the output is checked and improved.</p><h3>8. Why Agentic AI Matters</h3><p>Agentic AI is useful for problems that require more than a single AI-generated response.</p><p>It provides a way to organize complex tasks into smaller operations and connect them through decision-making and feedback.</p><p>Potential applications include:</p><ul><li>Automated research assistance.</li><li>Software development support.</li><li>Project planning and management.</li><li>Data analysis workflows.</li><li>Customer support automation.</li><li>Document processing.</li><li>Business process automation.</li></ul><p>The effectiveness of these systems depends on how well their goals, actions, evaluation criteria, and safety limits are designed.</p><h3>Conclusion</h3><p>Agentic AI represents an important approach to building AI applications that can work through multi-step tasks.</p><p>By combining planning, action, observation, evaluation, feedback, and termination conditions, developers can create workflows that are more structured than simple prompt-and-response interactions.</p><p>Frameworks such as LangGraph help organize these workflows through nodes, state management, conditional routing, and cycles.</p><p>However, building a reliable agentic system requires more than connecting multiple LLM calls. It requires thoughtful workflow design, validation, error handling, and clear termination conditions.</p><p>Understanding these concepts provides a foundation for implementing practical agentic AI applications.</p><p>In the next article, I will explore the practical implementation of an AI Project Planning Agent using Python, the Gemini API, and LangGraph, including its workflow architecture, feedback loop, and testing process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec4b41a265cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>