<?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 Shrikant Koltur on Medium]]></title>
        <description><![CDATA[Stories by Shrikant Koltur on Medium]]></description>
        <link>https://medium.com/@shikantkoltur?source=rss-e63d4dbf1bb0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*k07XgvjZeuWPbNws</url>
            <title>Stories by Shrikant Koltur on Medium</title>
            <link>https://medium.com/@shikantkoltur?source=rss-e63d4dbf1bb0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:31:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shikantkoltur/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[AI TRiSM Framework for data protection]]></title>
            <link>https://medium.com/@shikantkoltur/ai-trism-framework-for-data-protection-97b455cab982?source=rss-e63d4dbf1bb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/97b455cab982</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[trust]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Shrikant Koltur]]></dc:creator>
            <pubDate>Wed, 06 Mar 2024 01:28:28 GMT</pubDate>
            <atom:updated>2024-03-06T01:28:28.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujyWTqc2XnSvtygF4mi1aQ.png" /></figure><p>Hello, everyone!</p><p>Today, let’s delve into the fascinating realm of AI TRiSM, which stands for AI Trust, Risk, and Security Management. This framework, as defined by Gartner, serves as a guiding beacon for AI model governance, ensuring trustworthiness, fairness, reliability, robustness, efficacy, and data protection.</p><h3><strong>Understanding AI TRiSM</strong></h3><p>So, what exactly is AI TRiSM? Gartner defines it as a comprehensive framework that upholds the governance of AI models, focusing on critical aspects like trustworthiness, fairness, reliability, robustness, efficacy, and data protection. This framework serves as a safeguard, ensuring that AI decisions rely on dependable data sources, leading to authentic and realistic outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-LCX4owW85XpAmJs3zrIw.jpeg" /><figcaption>AiTRISM Architecture</figcaption></figure><h3><strong>Benefits and Adoption Rates</strong></h3><p>By incorporating AI TRiSM into business operations, organizations can witness a remarkable 50% improvement in adoption rates. This adoption is directly linked to the heightened accuracy of AI models, ensuring that decisions made are grounded in reliable data. As we navigate the evolving landscape of technology, AI TRiSM becomes a cornerstone for secure and reliable AI implementation.</p><h3><strong>AI TRiSM in Action</strong></h3><p>AI models are susceptible to cyber threats, from malware attacks to data breaches and phishing scams. The AI TRiSM framework acts as a shield, allowing businesses to use AI models securely. It employs techniques such as data encryption, secure data storage, and multi-factor authentication to guarantee accurate outcomes and protect against potential threats.</p><h3><strong>Use Cases and Real-world Examples</strong></h3><p>Let’s explore two compelling use cases illustrating the power of AI TRiSM. In the first case, the Danish Business Authority ensured fairness, transparency, and accountability in AI models, building trust with customers. In the second case, Abzu, a Danish startup, created AI models with explainable cause-and-effect relationships, leading to breakthroughs in developing effective breast cancer drugs.</p><h3><strong>AI TRiSM Framework: Pillars and Actions</strong></h3><p>The AI TRiSM framework stands on four pillars: Explainability/Model Monitoring, Model Operations, AI Application Security, and Model Privacy. These pillars focus on making AI models transparent, managing their lifecycle, ensuring security, and respecting privacy. By adopting best practices like organizational task forces, involving diverse experts, prioritizing explainability, and tailoring methods to use cases, companies can maximize the potential of AI TRiSM.</p><h3><strong>Conclusion</strong></h3><p>In conclusion, AI TRiSM emerges as a transformative force in the AI landscape, ensuring not just the reliability and security of AI models but also fostering trust, accountability, and innovation. By adopting the pillars and actions of the AI TRiSM framework, organizations can confidently navigate the dynamic challenges of AI implementation, unlocking the full potential of artificial intelligence for a brighter and more secure future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97b455cab982" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate MLOps Learning Path: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@shikantkoltur/ultimate-mlops-learning-path-a-step-by-step-guide-c272b4246384?source=rss-e63d4dbf1bb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c272b4246384</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[aiops]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shrikant Koltur]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 14:16:54 GMT</pubDate>
            <atom:updated>2023-09-06T14:16:54.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*2scxhNYgPzHSRsqGhEew3A.png" /><figcaption>MLOps Logo</figcaption></figure><h3>Introduction:</h3><p>Welcome to your comprehensive guide on mastering MLOps (Machine Learning Operations). Whether you’re a seasoned data scientist looking to expand your skill set or a beginner eager to dive into the world of AI and ML, this roadmap will take you from the basics to becoming an MLOps expert. This guide is designed to be shared with others, so feel free to pass it along to anyone interested in the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vf9bqXM9l4XQzEEU31ByBw.png" /><figcaption>The MLOps lifecycle. Credit: Matlab</figcaption></figure><h4>Step 1: Lay the Foundation</h4><p>Before delving into MLOps, you need a strong foundation in machine learning and data science. If you’re new to these fields, consider taking introductory courses or reading books on the subject. If you’re already familiar, you can skip ahead.</p><h4>Step 2: Master Version Control</h4><p>Version control is the cornerstone of MLOps. Start by learning Git and GitHub, which are essential for tracking code changes and collaborating on projects. You’ll need this knowledge throughout your MLOps journey.</p><blockquote>Github</blockquote><blockquote>Gitlab</blockquote><blockquote>SVN</blockquote><blockquote>DVC</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/0*NyX_M0URO-aaD4CL.PNG" /><figcaption>Github</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/0*GXw1XqNjI7IdDbz3.JPEG" /><figcaption>Gitlab</figcaption></figure><h4>Step 3: Dive into Algorithms</h4><p>Understanding machine learning and deep learning algorithms is crucial. Study the fundamentals, and don’t forget to practice by working on basic projects. This knowledge will come in handy when you start training models in MLOps.</p><blockquote>List of Algorithms</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*fpxpyHppFji-Y71pu__GFg.png" /></figure><h4>Step 4: Explore CI/CD Pipelines</h4><p>Continuous Integration and Continuous Deployment (CI/CD) pipelines are at the heart of MLOps. Begin by grasping the concepts behind CI/CD. Familiarize yourself with tools like GitHub Actions, Jenkins, and GitLab. Experiment with automation and deployment techniques in these environments.</p><blockquote>Github Actions</blockquote><blockquote>Jenkins</blockquote><blockquote>CircleCI</blockquote><blockquote>Grafana</blockquote><blockquote>Prometheus</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*ZsTaCD_3xeA4605q" /><figcaption>Github Actions</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*9CjoJ6O2SgWtMk-H" /><figcaption>Circle CI</figcaption></figure><h4>Step 5: Embrace Containerization with Docker</h4><p>Docker is a key tool in MLOps. Learn how to containerize your applications and models. Understand the advantages of containerization, such as consistent environments and easier deployment.</p><blockquote>Docker</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*oB19WKrDwMPuaG_N.png" /><figcaption>Docker</figcaption></figure><h4>Step 6: Scaling with Kubernetes</h4><p>Kubernetes is essential for scaling your applications. Explore Kubernetes to manage containerized applications efficiently. Learn how to deploy, scale, and orchestrate containers.</p><blockquote>Kubernetes</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6MxW5soSvyLGLRQqsUeaA.png" /></figure><h4>Step 7: Master Cloud Platforms</h4><p>AWS, GCP, and Azure are leading cloud platforms for deploying ML models. Dive into these platforms and understand their services. Learn how to deploy your applications on cloud infrastructure.</p><blockquote>AWS, Azure, GCP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7HvooYUUtNV87NIK.png" /></figure><h4>Step 8: Advanced DevOps Tools</h4><p>Expand your knowledge with advanced DevOps tools like Kubeflow, Airflow, and Ansible. These tools enable more complex automation and orchestration tasks, making your MLOps processes even more efficient.</p><blockquote>Kubeflow</blockquote><blockquote>Airflow</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*iXSwnGrDq22_YHPm" /><figcaption>Kubeflow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FmwMAfW3ktakCaPV.png" /><figcaption>Airflow</figcaption></figure><h4>Step 9: Enter the World of AI Ops</h4><p>Now that you have a solid foundation in MLOps, it’s time to delve into AI Ops. AI Ops combines the principles of MLOps with AI and ML deployments. You’ll learn how to manage AI models in real-world scenarios, ensuring smooth operation and scalability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*cWBscLd_wjT9jsOR.jpg" /></figure><h4>Step 10: Hands-On Projects</h4><p>The best way to solidify your MLOps skills is by working on hands-on projects. Join industry-ready data science projects that incorporate MLOps principles. Apply your knowledge to real-world situations and gain practical experience.</p><h4>Step 11: Stay Updated</h4><p>MLOps is a rapidly evolving field. Stay up to date with the latest trends, tools, and best practices. Follow blogs, attend webinars, and engage with the MLOps community to continually improve your skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WVQ4FFLEGebK2XhS" /><figcaption>Photo by <a href="https://unsplash.com/@catherineheath?utm_source=medium&amp;utm_medium=referral">Catherine Heath</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Conclusion:</h4><p>Congratulations! You’ve now completed your comprehensive MLOps learning journey. From mastering version control to becoming proficient in AI Ops, you’ve acquired the skills needed to excel in the world of machine learning operations. Share this roadmap with others who are eager to embark on the same path, and together, let’s advance the field of MLOps.</p><p><em>! Good Luck</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c272b4246384" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fine-Tuning Unleashed: Deep Dive into GPT-3.5 Turbo Customization]]></title>
            <link>https://medium.com/@shikantkoltur/fine-tuning-unleashed-deep-dive-into-gpt-3-5-turbo-customization-c0b636e320cc?source=rss-e63d4dbf1bb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0b636e320cc</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Shrikant Koltur]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 08:00:01 GMT</pubDate>
            <atom:updated>2023-08-24T08:00:34.576Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fine-tuning-unleashed-deep-dive-into-gpt-3–5-turbo-customization</h3><blockquote>Refining Your AI Experience for Optimal Performance</blockquote><figure><img alt="SDXL" src="https://cdn-images-1.medium.com/max/1024/1*4Gxzm5EtkB0bi-umaIyqEg.png" /></figure><p>In the realm of AI language models, there’s a significant update on the horizon. As we are aware, the fine-tuning options for “davinci” and “babbage” models are soon to be phased out. To address this, a new solution has emerged — Fine-tuning for <strong>GPT-3.5 Turbo.</strong>This eagerly anticipated update brings with it the opportunity to refine the model’s performance, customizing it to better suit the unique requirements of developers. This advancement opens up new avenues for tailoring the AI’s capabilities, empowering developers to create even more specialized and effective applications.</p><h4><strong>Exploring Fine-Tuning: Optimizing AI for Your Needs</strong></h4><p>The concept of fine-tuning brings a new level of customization to GPT-3.5 Turbo. While the standard version of GPT-3.5 Turbo or even GPT-4 serves well in many scenarios, certain situations call for a more tailored approach.</p><p>Fine-tuning serves as a tool for developers to precisely adapt GPT-3.5 Turbo to specific use cases. This might involve refining its output style, ensuring consistent formatting, or even infusing a distinct tone into its responses.</p><h4><strong>A Practical Walkthrough: Navigating the Fine-Tuning Process</strong></h4><p>In this illustrative example, we embark on the journey of creating an expert model tailored for crafting compelling Amazon Product Descriptions.</p><blockquote>Step 1: Preparing the Ground</blockquote><p>Our expedition commences with the launch of Google Colab. Within this environment, our initial stride involves installing the OpenAI library. With the toolkit in place, the next stride beckons — integrating our unique API key to establish a seamless connection with the OpenAI interface.</p><pre># installing package<br>!pip install openai<br><br># importing package<br>import os<br>import openai<br>openai.api_key = os.getenv(&quot;OPENAI_API_KEY&quot;)</pre><blockquote>Step 2: Sculpting Your Personalized Dataset</blockquote><p>At the core of the fine-tuning process lies the data you provide. Let’s delve into the intricacies of its structure. Below is an exemplar JSONL format encompassing three distinct training datasets.</p><pre>{&quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;GalaxyGuide is an astronomical chatbot with a cosmic sense of humor.&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Tell me about the red spot on Jupiter?&quot;}, {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;That&#39;s the Great Red Spot, a massive storm on Jupiter that&#39;s been raging for centuries. Imagine a never-ending celestial fireworks show!&quot;}]}<br>{&quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;GalaxyGuide is an astronomical chatbot with a cosmic sense of humor.&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;What&#39;s a black hole?&quot;}, {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;A black hole is an incredibly dense region in space where gravity is so intense that nothing, not even light, can escape its grasp. It&#39;s like the universe&#39;s ultimate vacuum cleaner!&quot;}]}<br>{&quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;GalaxyGuide is an astronomical chatbot with a cosmic sense of humor.&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Tell me about the Mars rovers?&quot;}, {&quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Ah, the Mars rovers – those intrepid explorers! They&#39;re robotic missions sent by NASA to roam the Martian surface, snapping selfies, conducting experiments, and making us all feel like virtual astronauts.&quot;}]}</pre><p>To make things easier, I’ve got a clever technique ready to go. We’ll utilize the OpenAI code interpreter to create a batch of 10 product description messages.</p><pre>[<br>  {<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Provide a description for a kitchen blender.&quot; },<br>      { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Blend, mix, and puree with ease using our versatile kitchen blender. Engineered for efficiency and equipped with multiple speed options, it&#39;s a must-have appliance for every culinary enthusiast.&quot; }<br>    ]<br>  },<br>  {<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Write a captivating description for a fantasy book.&quot; },<br>      { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Embark on an epic journey with our enchanting fantasy book. Immerse yourself in a world of magic, adventure, and intrigue as you follow unforgettable characters through realms of wonder and danger.&quot; }<br>    ]<br>  },<br>  {<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Describe a garden solar light.&quot; },<br>      { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Illuminate your garden with our elegant solar light. Powered by the sun, its enchanting glow adds a touch of magic to outdoor spaces. A perfect blend of aesthetics and functionality.&quot; }<br>    ]<br>  },<br>  {<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Create a description for a hiking backpack.&quot; },<br>      { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Embark on adventures with confidence using our rugged hiking backpack. Designed for comfort and durability, it features ample storage, ergonomic design, and weather-resistant materials.&quot; }<br>    ]<br>  },<br>  {<br>    &quot;messages&quot;: [<br>      { &quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot; },<br>      { &quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Describe a telescope for beginners.&quot; },<br>      { &quot;role&quot;: &quot;assistant&quot;, &quot;content&quot;: &quot;Explore the cosmos with our beginner-friendly telescope. Unveil the mysteries of the night sky with ease, thanks to its user-friendly features, clear optics, and adjustable tripod. Your window to the stars awaits.&quot; }<br>    ]<br>  }<br>...<br>]</pre><blockquote>Step 3: Starting the Fine-Tuning Process</blockquote><p>Now comes the exciting part — getting the fine-tuning process up and running. To begin, we need to set up the fine-tuning job. This involves pointing to the training dataset file you’ve prepared and specifying the model name you want to fine-tune.</p><p>This initiation step triggers the fine-tuning process and in return, you’ll receive a unique JOB ID that serves as your ticket to track progress as things unfold. It’s like setting the gears in motion for your custom-tailored AI experience.</p><pre>openai.File.create(<br>  file=open(&quot;/product_description_data.jsonl&quot;, &quot;rb&quot;),<br>  purpose=&#39;fine-tune&#39;<br>)<br><br>openai.FineTuningJob.create(training_file=&quot;file-id&quot;, model=&quot;gpt-3.5-turbo&quot;)</pre><pre>Output<br><br>&lt;FineTuningJob fine_tuning.job id=ftjob-JOBID at 0x7f3e4767a020&gt; JSON: {<br>  &quot;object&quot;: &quot;fine_tuning.job&quot;,<br>  &quot;id&quot;: &quot;ftjob-JOBID&quot;,<br>  &quot;model&quot;: &quot;gpt-3.5-turbo-0613&quot;,<br>  &quot;created_at&quot;: 1796545088,<br>  &quot;finished_at&quot;: null,<br>  &quot;fine_tuned_model&quot;: null,<br>  &quot;organization_id&quot;: &quot;org-ORGID&quot;,<br>  &quot;result_files&quot;: [],<br>  &quot;status&quot;: &quot;created&quot;,<br>  &quot;validation_file&quot;: null,<br>  &quot;training_file&quot;: &quot;file-JOBID&quot;,<br>  &quot;hyperparameters&quot;: {<br>    &quot;n_epochs&quot;: 5<br>  },<br>  &quot;trained_tokens&quot;: null<br>}</pre><blockquote>Step 4: Harnessing the Power of Your Fine-Tuned Model</blockquote><p>As the fine-tuning process hums away in the background (which might take some time), you’re probably eager to see how things are shaping up. Thankfully, you can keep tabs on the progress by checking the status.</p><p>To do this, you can use the OpenAI Python library with the command:</p><pre>openai.FineTuningJob.retrieve(&quot;ftjob-JOBID&quot;)</pre><p>And now for the exciting part — once the fine-tuning is complete, your newly refined model is ready to roll. It’s neatly tucked away in a remote container, primed for action through the OpenAI API endpoints. This means you don’t have to worry about deploying the model yourself, saving you time and effort. However, it’s important to keep in mind that while this convenience is fantastic, there are associated costs and rate limits to be aware of. It’s all about striking that balance between convenience and considerations.</p><h4>Putting Your Custom Model to the Test</h4><p>With your fine-tuned model now in hand, it’s time to witness its capabilities in action. Let’s dive right in and give it a fresh prompt to work with.</p><p>You can initiate this evaluation process using the following code snippet:</p><pre>completion = openai.ChatCompletion.create(<br> model=&quot;ft:gpt-3.5-turbo-0613:MODELID&quot;, # Add your own model FT ID here<br> messages=[<br> {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;You are an assistant that crafts compelling product descriptions for Amazon listings.&quot;},<br> {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Describe an acoustic guitar.&quot;}<br> ]<br>)</pre><p>Now, what you’re eager to see — the outcome! You can access it using:</p><pre>console.print(completion.choices[0].message)</pre><p>The Result Unveiled</p><p>Behold, the result of your inquiry is presented below:</p><pre>&lt;OpenAIObject at 0x7b75e36fac00&gt; JSON: {<br> &quot;role&quot;: &quot;assistant&quot;,<br> &quot;content&quot;: &quot;You&#39;re in for a treat! Get ready to explore the world of music with our exquisite acoustic guitar. <br>            Meticulously crafted for both seasoned musicians and aspiring artists, this guitar delivers rich, <br>            warm tones that resonate with every strum. With its hand-selected tonewoods, impeccable craftsmanship, <br>            and attention to detail, our acoustic guitar becomes an extension of your passion for music. &quot;<br>}</pre><p>What’s truly fascinating here is the seamless alignment of tone. As you can observe, the response resonates with the characteristics you’ve imparted to your fine-tuned dataset. This has significant implications, particularly for enterprises that possess a unique brand voice or specific tone prerequisites. The process of fine-tuning facilitates a remarkable congruence with these distinctive needs, resulting in a more reliable and resonant AI output. This tailored approach ensures a consistent and compelling narrative that perfectly embodies your brand’s essence.</p><h4>Examining Cost-Efficiency</h4><p>Let’s delve into the impact of fine-tuning on both speed and cost-effectiveness. Developers have managed to trim down input prompts significantly — sometimes by as much as 90%. This not only speeds up API calls but also has the potential to save on expenses. However, it’s crucial to grasp the financial dynamics at play.</p><p>Cost Analysis: Unpacked</p><p>There are two main cost components to evaluate:</p><ol><li><strong>Training Cost</strong>: The initial training phase incurs a charge of 0.8 cents for every thousand tokens.<br>2. <strong>Usage Cost</strong>: Usage expenses can be further categorized into input and output costs. GPT-3.5 Turbo has an input cost of 1.2 cents per thousand tokens. On the output side, the expenditure goes up to 1.6 cents for the same token volume.</li></ol><figure><img alt="pricing" src="https://cdn-images-1.medium.com/max/925/1*lU9qjRjBznkfuHw30YFFOg.png" /></figure><p>Navigating the Trade-offs</p><p>While fine-tuning holds the potential to shrink prompt sizes, it’s important to note that this customization comes with a higher price tag. Balancing the advantages of tailor-made responses against the financial considerations requires thoughtful assessment.</p><p>Have you considered the areas where fine-tuning could make a difference? Feel free to share your thoughts in the comments section, and let us know about your journey with data model fine-tuning!</p><p><em>Reference:-</em></p><p><a href="https://platform.openai.com/docs/guides/fine-tuning">OpenAI Platform</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0b636e320cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to remove a specific entity label in SpaCy]]></title>
            <link>https://medium.com/@shikantkoltur/how-to-remove-a-specific-entity-label-in-spacy-b255900ef453?source=rss-e63d4dbf1bb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b255900ef453</guid>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[spacy]]></category>
            <category><![CDATA[named-entity-recognition]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Shrikant Koltur]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 15:26:30 GMT</pubDate>
            <atom:updated>2022-11-18T17:02:14.149Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A guide for deleting certain entities from the SpaCy model.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*eOZ8MEzjNJzdkj1I.jpeg" /><figcaption>Image by (<a href="https://www.inspiringmeme.com/why-pipeline-line-stopping-services-are-essential/">inspiringmeme</a>)</figcaption></figure><p>As we know SpaCy is one of the well-known NER(Named entity recognition) library written in python by <a href="https://explosion.ai/">explosion.io</a></p><p>Large amounts of text can be processed and “understood” by the natural language processing which is provided by SpaCy. <br>SpaCy does this by employing a number of features. A basic statistical model must be loaded in order to use the features or we can custom-train our own named entity model. Because spaCy uses statistical models, its “decisions” are really just statistical forecasts.</p><p><strong>Spacy NLP Pipeline <br></strong>The idea of connecting different text processing components so that the result of one serves as the input for the following component is known as the pipeline in NLP. Spacy offers a pre-built pipeline capability that is simple to set up. We will walk you through the Spacy NLP Pipeline’s capabilities and provide examples in this lesson.</p><p><strong>Spacy NLP Pipeline Components</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*X2rB1PCRUotr33OgjvFrbA.png" /><figcaption>The Preprocessing Pipeline</figcaption></figure><p>You will understand how to remove single or multiple entities in spaCy to remove unnecessary tags.</p><p>Here we are invoking the English model, ‘en_core_web_md’. which consists of a total of 6 pipelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*LtzzWru-gxVv4xv3aElLrg.png" /><figcaption>Exiting Pipeline</figcaption></figure><pre>import spacy<br>#To load model<br>nlp = spacy.load(&quot;en_core_web_md&quot;)  </pre><blockquote>Code to load the model and to check the existing labels in the pre-trained model ‘en_core_web_md’</blockquote><pre>nlp.pipe_labels[&#39;ner&#39;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4ndpQn0cf4iB4bFh3zEVg.png" /><figcaption>NER pipeline entity label list.</figcaption></figure><blockquote>By using our model we are going to extract NER (named entity recognition) from a sample text.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0dhp0xTyKaD4SEtytJjdA.png" /><figcaption>NER on sample data</figcaption></figure><p>Here we can see <strong>Alice </strong>and the <strong>Charles Lutwidge Dodgson</strong> were correctly recognized as <strong>PERSON </strong>tags which is great, but the tag for wonderland is recognized as <strong>GPE</strong>(Countries, cities, states) is correct in the context but not necessarily important.<br>So to remove the GPE tag we will be using the spacy language component function and write our own custom pipeline and adding it to our spacy medium model.</p><pre>from spacy.language import Language<br>@Language.component(&quot;gpe_remove&quot;)<br>def remove_gpe(doc):<br>    ents = list(doc.ents)<br>    for ent in ents:<br>        if ent.label_ == &quot;GPE&quot;:<br>            ents.remove(ent)<br>    ents = tuple(ents)<br>    doc.ents = ents<br>    return (doc)<br>Language.component(&quot;gpe_remove&quot;, func=remove_gpe)</pre><p>In this code, we imported SpaCy language component and wrote a pipeline function that will remove the GPE entity label when we add this function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-ZyZOL_QCZdDg28e0ZUZQ.png" /><figcaption>Add pipeline</figcaption></figure><p>YEAH!</p><p>our first pipeline has been added to the model <br>now let&#39;s try the above code to check whether our pipeline is working or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NSdUIYesvzNll5cgEH0OKw.png" /></figure><p>Let&#39;s have a look here ………………..<br>OK, we did it the GPE entity label is gone.</p><p>But if you want your GPE label back we can disable the pipeline or remove the pipeline permanently.</p><p>Today we learned how to remove a certain entity label from the spacy model, and learned how the language component of SpaCy works.</p><p>Thank you for reading and have a whimsical day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*h2dq-UK65mRcFFcJ" /></figure><p>Happy Coding ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b255900ef453" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>