<?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 Shirley Han on Medium]]></title>
        <description><![CDATA[Stories by Shirley Han on Medium]]></description>
        <link>https://medium.com/@shirleyhan3?source=rss-e41dec2cf1c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HcRFHTwrs-knJKDyJG2DfQ.jpeg</url>
            <title>Stories by Shirley Han on Medium</title>
            <link>https://medium.com/@shirleyhan3?source=rss-e41dec2cf1c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:19:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shirleyhan3/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[Meta Llama 3.2: Everything you need to know]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@shirleyhan3/meta-llama-3-2-everything-you-need-to-know-13c47729475c?source=rss-e41dec2cf1c7------2"><img src="https://cdn-images-1.medium.com/max/830/1*IzFrNoQnBlZCd0_uL2OOjg.png" width="830"></a></p><p class="medium-feed-snippet">Meta has once again made major Generative AI development for the open-source large language models (LLMs). Meta released Llama 3.2 on&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@shirleyhan3/meta-llama-3-2-everything-you-need-to-know-13c47729475c?source=rss-e41dec2cf1c7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@shirleyhan3/meta-llama-3-2-everything-you-need-to-know-13c47729475c?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/13c47729475c</guid>
            <category><![CDATA[llama-3]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[meta]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 06:13:46 GMT</pubDate>
            <atom:updated>2024-09-26T06:13:46.149Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[6 Essential Python Pandas Function Every Data Scientist Should Know]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@shirleyhan3/6-essential-python-pandas-function-every-data-scientist-should-know-83a10640b3e4?source=rss-e41dec2cf1c7------2"><img src="https://cdn-images-1.medium.com/max/2600/0*K2Pg9GsWFo6-tlmz" width="6000"></a></p><p class="medium-feed-snippet">If you are a Data Scientist, you will use pandas at one point when handling data. Pandas is a powerful open-source data analysis and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@shirleyhan3/6-essential-python-pandas-function-every-data-scientist-should-know-83a10640b3e4?source=rss-e41dec2cf1c7------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@shirleyhan3/6-essential-python-pandas-function-every-data-scientist-should-know-83a10640b3e4?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/83a10640b3e4</guid>
            <category><![CDATA[pandas-tutorial]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 04:11:19 GMT</pubDate>
            <atom:updated>2024-09-26T04:11:19.378Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why it’s important to govern LLMs?]]></title>
            <link>https://medium.com/@shirleyhan3/why-its-important-to-govern-llms-70e380557a2c?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/70e380557a2c</guid>
            <category><![CDATA[watsonx]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[watsonx-governance]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 19:53:09 GMT</pubDate>
            <atom:updated>2024-09-24T19:53:09.088Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: <a href="https://medium.com/u/e41dec2cf1c7?source=post_page-----c1a3314d2f6e--------------------------------">Shirley Han</a> and <a href="https://medium.com/u/c4134b0f640d?source=post_page-----c1a3314d2f6e--------------------------------">Madison Lee</a></p><p>Table of Contents</p><ul><li><a href="#a380">What is generative AI governance?</a></li><li><a href="#4eba">Incidents of Security Breaches</a></li><li><a href="#e8d4">watsonx.governance</a></li><li><a href="#c985">Conclusion</a></li></ul><h3><strong>What is generative AI governance?</strong></h3><p>Generative AI governance refers to the set of standardized policies and practices designed to ensure responsible and ethical usage of generative AI technology. Once upon a time, machine learning models primarily required regulations around drift and training datasets. However, with the advent of large language models (LLMs), developers and researchers must additionally ensure that model outputs are properly governed. As artificial intelligence evolves at at exponential rate, more and more people are unclear about how the technology works, making it challenging to regulate its use effectively. The consequences for failing to govern generative AI models are severe -</p><ul><li>Unintended data exposure: The datasets that models are trained on could include sensitive or private information, so a lack of governance could lead to exposure of this confidential data.</li><li>Data Poisoning: Weak governance may lead to attackers injecting malicious data into training sets in order to affect the output of the model.</li><li>Unauthorized Access and Usage: Lack of proper access control governance may lead to unauthorized individuals gaining access to sensitive AI models or the confidential data that it was trained on.</li><li>Lack of Monitoring and Transparency: Models may produce harmful, biased, or deceptive content without adequate monitoring of how generative AI models are built and trained, affecting both organizations and individuals.</li><li>Inadequate Responses to Security Breaches: Poor governance may lead to a lack of standardized regulations for how to respond to security breaches, which may in turn, lead to delays in breach detection.</li></ul><p>These are just a few potential outcomes of insufficient governance, highlighting the critical importance of generative AI governance.</p><h3><strong>Incidents of Security Breaches</strong></h3><p>To underscore the importance of governance for generative AI models, here are a few recent incidents of security breaches.</p><ol><li><a href="https://www.wiz.io/blog/38-terabytes-of-private-data-accidentally-exposed-by-microsoft-ai-researchers">38TB of Data Exposed at Microsoft</a> (2023): There was a data exposure incident within the Microsoft AI Github repository, where over 30,000 internal Microsoft Teams messages were leaked due to one misconfigured SAS token. The incident demonstrates how there needs to be additional security checks and safeguards in place as more and more organizations race to release new AI solutions, and thus, more engineers work with AI training data.</li><li><a href="https://www.malwarebytes.com/blog/news/2022/04/cash-app-breached-by-a-former-employee-could-affect-millions">Cash App breached by malicious former employee</a> (2022): A disgruntled former employee of Cash App downloaded the personal data of around 8.2 million customers, then the company only notified the affected customers 4 months later. It was able to occur because the company failed to revoke access permissions even though the employee was terminated, thus creating a proper termination procedure would protect organizations from this kind of data theft.</li><li><a href="https://www.forbes.com/sites/siladityaray/2023/05/02/samsung-bans-chatgpt-and-other-chatbots-for-employees-after-sensitive-code-leak/">Samsung Data Leak via ChatGPT</a> (2023): Samsung employees from the semiconductor division accidentally disclosed confidential company information while using ChatGPT to double-check source code. This breach led to three documented instances of employees unintentionally disclosing sensitive information through ChatGPT.</li></ol><p>Data governance is critical for the protection of company assets, to learn more about the IBM perspective, click <a href="https://www.ibm.com/think/topics/data-governance-for-ai">here</a>. Another crucial protective measure is model governance, which brings us to the <a href="http://watsonx.gov/">watsonx.gov</a> platform.</p><h3><strong>watsonx.governance</strong></h3><p>⁤IBM’s <a href="https://www.ibm.com/products/watsonx-governance?utm_content=SRCWW&amp;p1=Search&amp;p4=43700076341632643&amp;p5=e&amp;p9=58700008385933280&amp;gbraid=0AAAAAD-_QsQ5Uq2MEihRiMJAwyB5-7Qwc&amp;gclid=EAIaIQobChMIpIKL1rbKiAMVpXFHAR1BmCrwEAAYASAAEgKlAfD_BwE&amp;gclsrc=aw.ds">watsonx.governance</a> is a solution that is designed to help enterprises manage and monitor Machine Learning and Generative AI models across different platforms. This way companies can have a governance solution that ensure models are compliant and fair. ⁤⁤Some benefits of watsonx.governance include compliance capabilities, risk management, and lifecycle governance. It can detect bias and drift, monitor model health, and track new Large Language Model metrics. It will also ensure models are complying to regulations like the EU AI Act. ⁤⁤The platform offers automated workflows, customizable dashboards, and risk management tools to ensure responsible AI usage and lifecycle management. ⁤Common use cases include credit risk, customer care, supply chain management, and Human Resources. In each use case, models that are used can be monitored to ensure fairness and transparency while improving decision-making workflows.</p><p>Let’s deep dive on the Human Resources use case and how governance can be applied. Every company hires many candidates all the time, and leveraging LLMs and ML can significantly accelerate the hiring process. Using resume summarization and entity extraction Large Language Models to quickly identify key qualifications of a candidate, while machine learning model trained on historical hiring data can help with selecting which candidate to hire. LLMs can also write personalized emails for all communication with applicants. However, to ensure fairness and compliance, all these models need to be continuously monitored and managed to mitigate biases and maintain transparency during the hiring process. This is exactly what watsonx.governance can do.</p><p>Deployment details with test details, model health, fairness, quality, and drift information. For each metric, score and violation are provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GjWEVFj_JhjSaa-WBQyPA.png" /></figure><p>The solution also provides global explanation and lists all the features with the corresponding influence score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12c6t5OxHILL30FyoOR0yA.png" /></figure><p>You can dive deeper by clicking into fairness to see the disparate impact and visualize how it changed overtime through the graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5n8mwEJQhZ31ZSds40wYA.png" /></figure><p>Similarly, you can see additional graphs for drift history, output confidence distribution, significant intervals, and feature drift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKKwSEhwKrZancghHy3kQg.png" /></figure><h3><strong>Conclusion</strong></h3><p>With the adoption of Large Language Models becoming increasingly more common, a proper governance for these LLMs are becoming more crucial. This monitoring ensures models are transparent, compliant, and fair while also mitigating risks like data poisoning and unintended data exposure. With a governance strategy, companies can detect any vulnerabilities and risks early and align with any regulatory compliance and guidelines.</p><blockquote>This article was developed through the Financial Services Market (FSM) AI Engineering Community in IBM Client Engineering. The views and opinions expressed in this article are those of the authors and do not necessarily reflect the official policy or position of IBM as a whole.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70e380557a2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Popular Large Language Models (LLMs) on watsonx.ai]]></title>
            <link>https://medium.com/@shirleyhan3/popular-large-language-models-llms-on-watsonx-ai-c1a3314d2f6e?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1a3314d2f6e</guid>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 17:40:04 GMT</pubDate>
            <atom:updated>2024-08-29T17:40:04.535Z</atom:updated>
            <content:encoded><![CDATA[<p>Authors: <a href="https://medium.com/u/c4134b0f640d">Madison Lee</a> and <a href="https://medium.com/u/e41dec2cf1c7">Shirley Han</a></p><p>Table of Contents</p><ul><li><a href="#b81f">What is an LLM?</a></li><li><a href="#ad06">What is watsonx.ai?</a></li><li>Best Practices for <a href="#bd6b">Granite</a>, <a href="#a609">Llama</a>, <a href="#448c">Mixtral</a>, and <a href="#c1a7">FLAN</a></li><li><a href="#57d6">Hugging Face</a></li><li><a href="#e708">Conclusion</a></li><li><a href="#5a77">Resources</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g2Rkzm-5jg-2JnEV" /></figure><h3><strong>What is an LLM?</strong></h3><p>A large language model (LLM) is a type of artificial intelligence (AI) model that typically excels in natural language processing tasks. These models are trained on massive amounts of training data to <em>understand</em> then generate human-like text. LLMs have achieved remarkable advancements in various language-related applications, such as text generation, summarization, and more, and continue to grow in accuracy and scale.</p><h3><strong>What is watsonx.ai?</strong></h3><p>Navigating the market of large language models is a stressful process with so many viable contenders available, each with its own set of differentiating features and performance strengths. However, the choice of which model to choose ultimately boils downs to the specific needs of the use case at hand. Users can explore and experiment with the a <a href="https://www.ibm.com/products/watsonx-ai/foundation-models">library of foundation models</a> on the IBM watsonx.ai platform to select an LLM that best fits your needs.</p><p>This article will cover a few of the models hosted on watsonx.ai regarding their features, intended use cases, and best prompt engineering practices. If you would like to explore additional models in the landscape, there are various leaderboards that compare current LLMs, such as <a href="https://tatsu-lab.github.io/alpaca_eval/">AlpacaEval</a> which measures how well LLMs follow instructions, <a href="https://chat.lmsys.org/?arena">Chatbot Arena</a> which ranks based on typical 1v1 battle criteria, and the <a href="https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard">OpenLLM Leaderboard</a> which measures on a set of key benchmarks from the <a href="https://github.com/EleutherAI/lm-evaluation-harness">Eleuther AI Language Model Evaluation Harness</a>.</p><h3><strong>Granite</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xP5NoCMFeFV-3MW0keAXCA.png" /></figure><p>The Granite models were developed by IBM Research, specifically tailed for enterprises concerned about risk and transparency. All Granite models are trained on a carefully curated dataset, with <a href="https://www.ibm.com/granite">industry-leading levels of transparency</a>. These models are open-source and available on the Hugging Face and watsonx platform.</p><p><strong>Available Models:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7nFo_dDjw4tYnxVRqiFkg.png" /></figure><p><strong>Best Practices for Prompt Engineering:</strong></p><p>It is recommended to utilize the following structure when prompt engineering in Granite:</p><pre>&lt;|system|&gt;<br>You are Granite Chat, an AI language model developed by IBM. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior. You always respond to greetings (for example, hi, hello, g&#39;day, morning, afternoon, evening, night, what&#39;s up, nice to meet you, sup) with &quot;Hello! I am Granite Chat, created by IBM. How can I help you today?&quot;. Please do not say anything else and do not start a conversation.<br>&lt;|user|&gt;<br>{PROMPT}<br>&lt;|assistant|&gt;</pre><p>For additional information, check out <a href="https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-ibm-chat.html?context=wx">this documentation page</a> for Granite best practices.</p><h3><strong>Llama</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSJnsU8mhXa70Qm4Tt_xJg.png" /></figure><p>The Llama family of models was created by Meta. Its primary draw is that the models were trained on trillions of tokens using exclusively publicly available datasets. <a href="https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/">According to Meta</a>, Llama-13b outperforms GPT-3 on most benchmarks and Llama-65B is competitive with Chinchilla70B and PaLM-540B. These models are open to the research community and available on Hugging Face and the watsonx platform.</p><p><strong>Available Models:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6qB_CmZXkWz6V31peDP1w.png" /></figure><p><strong>Best Practices for Prompt Engineering:</strong></p><p>It is recommended to utilize the following structure when prompt engineering in Llama:</p><pre>&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;<br><br>Cutting Knowledge Date: December 2023<br><br>Today Date: 30 August 2024<br><br>You are a helpful assistant&lt;|eot_id|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;<br><br>{PROMPT}&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;</pre><p>For additional information, check out <a href="https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1">this documentation page</a> for Llama best practices.</p><h3><strong>Mixtral</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKjFOftTZdtEUOxV0Tyc7A.png" /></figure><p>Mistral Large 2 is a state-of-the-art generalist model and mixtral8x7b is a research model and the first dense modeldeveloped by Mistral AI. What is unique about the mistral8x7b is that it is a sparse mixture of experts model (SMoE) with open weights. The Mistral Large 2 also has a size of 123 billion parameters and 128k context window, making it one of the largest and better-performing models that is open-source.</p><p><strong>Available Models:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlMvCJbj5cLEryar57piNg.png" /></figure><p><strong>Best Practices for Prompt Engineering:</strong></p><p>The following is an example summarization prompt that can be utilized (<a href="https://docs.mistral.ai/guides/prompting_capabilities/">Link</a>):</p><pre>You are a commentator. Your task is to write a report on an essay.<br><br>When presented with the essay, come up with interesting questions to ask, and answer each question.<br><br>Afterward, combine all the information and write a report in the markdown format.<br><br># Essay:<br><br>{essay}<br><br># Instructions:<br><br>## Summarize:<br><br>In clear and concise language, summarize the key points and themes presented in the essay.<br><br>## Interesting Questions:<br><br>Generate three distinct and thought-provoking questions that can be asked about the content of the essay. For each question:<br><br>- After &quot;Q: &quot;, describe the problem<br><br>- After &quot;A: &quot;, provide a detailed explanation of the problem addressed in the question.<br><br>- Enclose the ultimate answer in &lt;&gt;.<br><br>## Write a report<br><br>Using the essay summary and the answers to the interesting questions, create a comprehensive report in Markdown format.</pre><p>For additional information, check out <a href="https://docs.mistral.ai/guides/prompting_capabilities/">this documentation page</a> for Mistral best practices.</p><h3><strong>FLAN</strong></h3><p>The FLAN models are developed by Google and they stand for fine-tuned LAnguage Net (FLAN). FLAN models use instruction fine-tuning to make them better at solving a variety of NLP tasks without needing large, task-specific datasets. The flan-t5-xl-3b, the flan-t5-xxl-11b, and the flan-ul2–20b are available on watsonx.ai platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVMKzle6kAZMUeY9R8I6hA.png" /></figure><p><strong>Available Models:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MFNxEw28vv4CMGTzLoq7_A.png" /></figure><p><strong>Best Practices for Prompt Engineering:</strong></p><p>The following is an example prompt that can be utilized (<a href="https://research.google/blog/introducing-flan-more-generalizable-language-models-with-instruction-fine-tuning/">Link</a>):</p><pre>Russian Cosmonaut Valery Polyakov set the record for the longest amount of time spent in space.<br>Based on the paragraph above, can we conclude that Russians hold the record for the longest stay in space?<br>OPTIONS<br>- yes<br>- no</pre><p>For additional information, check out <a href="https://research.google/blog/introducing-flan-more-generalizable-language-models-with-instruction-fine-tuning/">this documentation page</a> for FLAN best practices.</p><h3><strong>Hugging Face</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKJivQ0XWksRgSq0_rMRAg.png" /></figure><p>IBM has partnered with Hugging Face to integrate open-source AI models into IBM’s watsonx.ai platform. This collaboration allows enterprises to efficiently train, validate, and deploy AI models at scale using Hugging Face’s extensive libraries while leveraging IBM’s platform that supports cloud and on-premise deployments. The partnership emphasizes open-source solutions, enabling businesses to innovate rapidly and maintain control over their data. It is also important to note that open-source promotes transparency, collaboration, and innovation. It provides an opportunity for people with diverse backgrounds to access, contribute, and advance technology. IBM’s large language models are being made available on the Hugging Face Hub. IBM has also partnered with NASA and Hugging Face to open-source <a href="https://huggingface.co/ibm-granite/granite-geospatial-biomass">geospatial foundation models</a>. Find more information regarding IBM’s open-source models <a href="https://huggingface.co/ibm-granite">here</a>.</p><ul><li><strong>Open LLM Leaderboard</strong>: <a href="https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard">https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard</a></li><li><strong>LMSYS Chatbot Arena Leaderboard</strong>: <a href="https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard">https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard</a></li></ul><h3><strong>Conclusion</strong></h3><p>With rapid Large Language Model developments, it is crucial to keep up to date on the different capabilities and limitations of every model. This article highlighted the most popular LLMs that are on watsonx.ai and/or Hugging Face along with their ideal usage and best practices for prompt engineering. Many models are open-source and this encourages collaborative innovation. We encourage trying different models and implement them into your applications and workflows!</p><h3><strong>Resources</strong></h3><p>Leaderboards</p><ul><li><a href="https://tatsu-lab.github.io/alpaca_eval/">https://tatsu-lab.github.io/alpaca_eval/</a></li><li><a href="https://github.com/EleutherAI/lm-evaluation-harness">https://github.com/EleutherAI/lm-evaluation-harness</a></li><li><a href="https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard">https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard</a></li></ul><p>Granite</p><ul><li><a href="https://www.ibm.com/granite">https://www.ibm.com/granite</a></li><li><a href="https://www.ibm.com/downloads/cas/X9W4O6BM">https://www.ibm.com/downloads/cas/X9W4O6BM</a></li><li><a href="https://www.ibm.com/products/watsonx-ai/foundation-models">https://www.ibm.com/products/watsonx-ai/foundation-models</a></li><li><a href="https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-ibm-chat.html?context=wx">https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-ibm-chat.html?context=wx</a></li></ul><p>Llama</p><ul><li><a href="https://llama.meta.com/docs/overview">https://llama.meta.com/docs/overview</a></li><li><a href="https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md">https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md</a></li><li><a href="https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/">https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/</a></li><li><a href="https://ai.meta.com/blog/meta-llama-3/">https://ai.meta.com/blog/meta-llama-3/</a></li></ul><p>Mixtral</p><ul><li><a href="https://mistral.ai/news/mistral-large-2407/">https://mistral.ai/news/mistral-large-2407/</a></li><li><a href="https://mistral.ai/news/mixtral-of-experts/">https://mistral.ai/news/mixtral-of-experts/</a></li><li><a href="https://docs.mistral.ai/guides/prompting_capabilities/">https://docs.mistral.ai/guides/prompting_capabilities/</a></li></ul><p>FLAN</p><ul><li><a href="https://research.google/blog/introducing-flan-more-generalizable-language-models-with-instruction-fine-tuning/">https://research.google/blog/introducing-flan-more-generalizable-language-models-with-instruction-fine-tuning/</a></li><li><a href="https://arxiv.org/pdf/2109.01652">https://arxiv.org/pdf/2109.01652</a></li></ul><p>Helpful Blogs</p><ul><li><a href="https://quiq.com/blog/navigating-the-sea-of-ai-lets-compare-current-llms/">https://quiq.com/blog/navigating-the-sea-of-ai-lets-compare-current-llms/</a></li><li><a href="https://www.elastic.co/what-is/large-language-models">https://www.elastic.co/what-is/large-language-models</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1a3314d2f6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrieval-Augmented Generation (RAG) with IBM watsonx.ai — No Code, Low Code, and Coding Methods]]></title>
            <link>https://medium.com/@shirleyhan3/retrieval-augmented-generation-rag-with-ibm-watsonx-ai-no-code-low-code-and-coding-methods-4b5e8d3630ef?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b5e8d3630ef</guid>
            <category><![CDATA[watsonx]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[retrieval-augmented]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Tue, 13 Aug 2024 21:17:28 GMT</pubDate>
            <atom:updated>2024-08-13T21:24:04.845Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Retrieval-Augmented Generation (RAG) with IBM </strong><a href="http://watsonx.ai/"><strong>watsonx.ai</strong></a> <strong>— No Code, Low Code, and Coding Methods</strong></h3><p>Authors: <a href="https://medium.com/u/e41dec2cf1c7">Shirley Han</a> and <a href="https://medium.com/u/c4134b0f640d">Madison Lee</a></p><h3>Table of Contents</h3><ol><li><a href="#87b9">What is RAG?</a></li><li><a href="#3aa0">No Code Method</a></li><li><a href="#386d">Low Code Method</a></li><li><a href="#5171">The Coding Method</a></li><li><a href="#9c0b">Conclusion</a></li></ol><h3><strong>What is RAG?</strong></h3><p>RAG is the abbreviation for Retrieval-Augmented Generation, which is a difficult-sounding word for a fairly intuitive process. RAG is simply a technique used in AI models where the model receives relevant information from a large database or set of documents and then uses that information to generate a more relevant response. This process enables the model to produce more accurate and informed answers by combining its generative abilities with external and applicable knowledge. Large language models (LLMs) are incredibly sophisticated, however they have limitations because once trained, the knowledge in LLMs is static. Meaning, LLMs cannot access the most current data or specialized knowledge beyond its training cut-off. RAG therefore addresses this issue by allowing the model to reference external resources that make the generated output more accurate and relevant to the specific query.</p><p>Today, <a href="https://www.frontier-enterprise.com/85-of-the-software-workforce-using-generative-ai-in-2-years/#:~:text=Generative%20AI%20is%20expected%20to,in%20the%20next%20two%20years">85% of enterprises</a> using generative AI are augmenting their LLMs with knowledge search and documents. Human Resource Departments use RAG to enhance their customer support chatbots. When a customer asks a question, the system may retrieve up-to-date past customer interactions and relevant company internal documentation to generate a more precise and context-aware response. Healthcare providers utilize RAG-based tools to assist with patient consultations. The model retrieves the latest medical research, patient history, and treatment guidelines, then generate insights that can help healthcare workers make more informed decisions. Law firms use RAG to assist in reviewing legal documents. The system retrieves relevant legal precedents and past case outcomes in order to then generate summaries or suggestions for how to proceed with a case.</p><p>For all approaches, you can get access to all the technology needed on IBM Cloud at this <a href="https://cloud.ibm.com/registration">link</a>.</p><h3><strong>Approach #1 — The No Code Method</strong></h3><p>Technology needed: watsonx.ai</p><p>IBM watsonx makes RAG easy with its “Chat with Documents“ content-grounded Q&amp;A feature in watsonx.ai that lets users upload a collection of documents (PDF, PPTX, text, or docx) or connect to a vector database. Let’s walk through how to do this.</p><ol><li>Create a new Prompt Lab asset in a watsonx project.</li><li>Under Chat mode, click on the Grounding Data button on the menu bar.</li><li>Under the drop down menu, click on “Create vector index +” and when it prompts to Add Files, click on the Browse button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LMukY4pRkaOVRlztSw94lQ.png" /></figure><ol><li>Upload the file which you would like to ground your output on. Then, click Create.</li><li>Start asking questions and get answers based on the document content.</li><li>For a more advanced approach, scale your grounding fidelity with vector stores like Milvus or Elasticsearch.</li></ol><p>For an easy-to-follow demo, check out <a href="https://www.linkedin.com/feed/update/urn:li:activity:7216893677552496640/">this LinkedIn post</a> that Maryam Ashoori, Senior Director of Product Management of watsonx wrote about the “Chat with Documents“ feature.</p><h3><strong>Approach #2 — The Low Code Method</strong></h3><p>Technology needed: watsonx assistant, Watson Discovery, watsonx.ai</p><p>RAG is easy to implement on watsonx assistant with Watson Discovery serving as the knowledge base and watsonx.ai serving as the LLM home. Let’s walk through how to do this.</p><p><strong>Setup Watson Discovery</strong></p><ol><li>Click on New Project and name your project something descriptive. Set it as Conversational Search project type.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKZs5XGT95JNqIvoKuYJcA.png" /></figure><p>2. Name your collection something descriptive, then upload the file(s) that you would like to serve as your knowledge base.</p><p>3. It will take a few minutes for your document to upload completely. In the meantime, complete the rest of the steps. Once it’s complete, it should look like the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C9mrlmarwl_IpTwk3L9Ieg.png" /></figure><p><strong>Integrate the Watson Discovery custom extension onto watsonx assistant</strong></p><ol><li>In Assistant, navigate to the Integrations page.</li><li>Click on “Build custom extensions” and click Next. Input the extension name “Watson Discovery” then click Next.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XO4g-tHv-3EMjGM3xQdUeQ.png" /></figure><ol><li>Download the JSON file <a href="https://github.com/watson-developer-cloud/assistant-toolkit/blob/master/integrations/extensions/starter-kits/watson-discovery/watson-discovery-query-openapi.json">watson-discovery-query-openapi</a> and import this file into watsonx assistant. Click next, then finish.</li><li>In the lower right corner of the new Watson Discovery custom extension, click on Add then click Add then click Next.</li><li>In the Authentication tab, on the dropdown menu, select “Basic auth”</li></ol><ul><li>For the username, enter “apikey”</li><li>For password, create and copy a new API key from <a href="https://cloud.ibm.com/iam/apikeys">API key</a></li><li>For discovery_url, within IBM Cloud, go to the resource list, navigate to the Watson Discovery Instance, click on Manage, navigate to the Credentials section, copy the URL</li></ul><p>6. Paste URL into discovery_url and remove “https://” from the beginning of the string</p><p>7. Click Next, click Finish, then click Close.</p><p><strong>Integrate the watsonx.ai custom extension onto watsonx assistant</strong></p><ol><li>In Assistant, navigate to the Integrations page.</li><li>Click on “Build custom extensions” and click Next. Input the extension name “Watson Discovery” then click Next.</li><li>Download the JSON file <a href="https://github.com/watson-developer-cloud/assistant-toolkit/blob/master/integrations/extensions/starter-kits/language-model-watsonx/watsonx-openapi.json">watsonx-openapi.json</a> and import file to watsonx assistant. Click Next, then click Finish.</li><li>On the lower right corner of the extension, click Add, click Add, then click Next.</li><li>In the Authentication tab, on the dropdown menu, select “OAuth 2.0”</li><li>For apikey, create and copy a new API key from <a href="https://cloud.ibm.com/iam/apikeys">API key</a></li><li>Click Next, click Finish, then click Close.</li></ol><p><strong>Configure Watson Assistant actions to integrate conversational search using Watson Discovery</strong></p><ol><li>Navigate to the Actions page, click the Global Settings icon on the upper right corner.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBvv4kg9CP5ilN3ZAneAhg.png" /></figure><p>2. Scroll horizontally on the header to the Upload/Download tab, upload this file <a href="https://github.com/watson-developer-cloud/assistant-toolkit/blob/master/integrations/extensions/starter-kits/language-model-conversational-search/discovery-watsonx-actions.json">discovery-watsonx-actions.json</a> and click Upload and Replace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49Uvpy9QmNhaNcerGGtuLQ.png" /></figure><p>3. In the Actions page, navigate to “Actions/Variables/Created by you” and set <em>discovery_project_id</em> and <em>watsonx_project_id</em> session variable to the following -</p><ul><li><em>discovery_project_id</em>: Within Watson Discovery, click on the upper-left hamburger icon, then Integrate and deploy, then click on API information.</li><li><em>watsonx_project_id</em>: Go to the watsonx platform, then click on Projects, Manage, General, Details, then grab the Project ID to paste.</li></ul><p><strong>Configure Embedded Links with Watson Discovery</strong></p><ol><li>To add links to the source documents within the Assistant outputs, two actions need to be configured. Navigate to the Search action -</li></ol><ul><li>On step 5, click “Set new value” in the set variable values section.</li><li>Click on “New session variable” from the dropdown and input the <em>source_url</em>, select Any for the type, then click Apply.</li><li>In the text box after To, select Expression from the dropdown, and input “${step_474_result_2}.body.results[0].metadata.source.url” then click Apply.</li><li>Save, and Close.</li></ul><p>2. Navigate to the Generate Answer action. For step 10, at bottom of the “Assistant says” text box, type the following input, “For more information, click $source_url” then save and close.</p><p><strong>Call watsonx.ai with a Custom Prompt</strong></p><ol><li>When the user prompts watsonx assistant with a unique request or question, watsonx.ai should be called to output a model generated answer. Let’s make sure this happens -</li><li>Navigate to the Generate Answer action.</li></ol><ul><li>Add a new step after step 5, and select “Is taken with conditions” from the dropdown.</li><li>Underneath “If all of this is true” click on the left-most box and select Expression from the dropdown.</li><li>Enter “${query_text}.toLowerCase().contains(“answer in bullet points”)”</li><li>Click the Set Variable button at the right of the “Is taken with conditions” blurb.</li><li>Click Set new value and type “model_input” and select variable.</li><li>In the box after To, select Expression from the dropdown.</li><li>Enter the following prompt text:</li></ul><pre>```(&quot;&lt;s&gt;[INST] &lt;&lt;SYS&gt;&gt;\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Be brief in your answers. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don&#39;t know the answer to a question, please don&#39;t share false information.\n&lt;&lt;/SYS&gt;&gt;\n\nGenerate the next agent response in bullet points by answering the question. You are provided several documents with titles. If the answer comes from different documents please mention all possibilities and use the titles of documents to separate between topics or domains. If you cannot base your answer on the given documents, please state that you do not have an answer.\n\n&quot;).concat(${passages}).concat(&quot;\n\n&quot;).concat(${query_text}).concat(&quot;[/INST]&quot;)```<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*th0BY2iIe5Cjt7-dZgeN4A.png" /></figure><p>3. The last step is to configure the inactivity timeout if the model for some reason takes too long to answer.</p><ul><li>In Watson Assistant, navigate to Environments.</li><li>Click on the Settings icon next to Draft Environment.</li><li>Navigate to “Inactivity Timeout” to set the timeout limit.</li></ul><h3><strong>Approach #3 — The Coding Method</strong></h3><p>Make the RAG approach even more customizable by using Python. This approach makes custom integration with different applications easier.</p><p>Technology used: watsonx.ai, chroma, and Langchain:</p><ol><li>Install dependencies and imports</li></ol><pre>!pip install &quot;langchain==0.1.10&quot; | tail -n 1<br>!pip install &quot;ibm-watsonx-ai&gt;=0.2.6&quot; | tail -n 1<br>!pip install -U langchain_ibm | tail -n 1<br>!pip install wget | tail -n 1<br>!pip install sentence-transformers | tail -n 1<br>!pip install &quot;chromadb==0.3.26&quot; | tail -n 1<br>!pip install &quot;pydantic==1.10.0&quot; | tail -n 1<br>!pip install &quot;sqlalchemy==2.0.1&quot; | tail -n 1<br>import os, getpass<br>import wget<br>from langchain.document_loaders import TextLoader<br>from langchain.text_splitter import CharacterTextSplitter<br>from langchain.vectorstores import Chroma<br>from ibm_watsonx_ai.foundation_models.utils import get_embedding_model_specs<br>from langchain_ibm import WatsonxEmbeddings<br>from ibm_watsonx_ai.foundation_models.utils.enums import EmbeddingTypes<br>from ibm_watsonx_ai.foundation_models.utils.enums import ModelTypes<br>from ibm_watsonx_ai.metanames import GenTextParamsMetaNames as GenParams<br>from ibm_watsonx_ai.foundation_models.utils.enums import DecodingMethods<br>from langchain_ibm import WatsonxLLM<br>from langchain.chains import RetrievalQA</pre><p>2. Provide watsonx API credential and project ID.</p><pre>credentials = {<br>    &quot;url&quot;: &quot;https://us-south.ml.cloud.ibm.com&quot;,<br>    &quot;apikey&quot;: getpass.getpass(&quot;Please enter your WML api key (hit enter): &quot;)<br>}<br><br>try:<br>    project_id = os.environ[&quot;PROJECT_ID&quot;]<br>except KeyError:<br>    project_id = input(&quot;Please enter your project_id (hit enter): &quot;)</pre><p>4. Build knowledge base by embed and load a text file to Chroma</p><pre>filename = &#39;state_of_the_union.txt&#39;<br>url = &#39;https://raw.github.com/IBM/watson-machine-learning-samples/master/cloud/data/foundation_models/state_of_the_union.txt&#39;<br><br>if not os.path.isfile(filename):<br>    wget.download(url, out=filename)<br><br>loader = TextLoader(filename)<br>documents = loader.load()<br>text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)<br>texts = text_splitter.split_documents(documents)<br><br>get_embedding_model_specs(credentials.get(&#39;url&#39;))<br><br>embeddings = WatsonxEmbeddings(<br>    model_id=EmbeddingTypes.IBM_SLATE_30M_ENG.value,<br>    url=credentials[&quot;url&quot;],<br>    apikey=credentials[&quot;apikey&quot;],<br>    project_id=project_id<br>    )<br>docsearch = Chroma.from_documents(texts, embeddings)</pre><p>5. Define the watsonx.ai Large Language Model you want to use and its parameters</p><pre>model_id = ModelTypes.GRANITE_13B_CHAT_V2<br>parameters = {<br>    GenParams.DECODING_METHOD: DecodingMethods.GREEDY,<br>    GenParams.MIN_NEW_TOKENS: 1,<br>    GenParams.MAX_NEW_TOKENS: 100,<br>    GenParams.STOP_SEQUENCES: [&quot;&lt;|endoftext|&gt;&quot;]<br>}</pre><p>6. Use Langchain wrapper for the model</p><pre>watsonx_granite = WatsonxLLM(<br>    model_id=model_id.value,<br>    url=credentials.get(&quot;url&quot;),<br>    apikey=credentials.get(&quot;apikey&quot;),<br>    project_id=project_id,<br>    params=parameters<br>)</pre><p>7. Build Langchain RetrievalQA (question answering chain)</p><pre>qa = RetrievalQA.from_chain_type(llm=watsonx_granite, chain_type=&quot;stuff&quot;, retriever=docsearch.as_retriever())</pre><p>8. Submit query to get an answer</p><pre>query = &quot;What did the president say about Ketanji Brown Jackson&quot;<br>qa.invoke(query)</pre><p>Example query output:</p><pre>{&#39;query&#39;: &#39;What did the president say about Ketanji Brown Jackson&#39;,<br> &#39;result&#39;: &#39; The president said, &quot;One of our nation&#39;s top legal minds, who will continue Justice Breyer&#39;s legacy of excellence.&quot; This statement was made in reference to Ketanji Brown Jackson, who was nominated by the president to serve on the United States Supreme Court.&#39;}</pre><p>Alternatively, you can use Watson Discovery as the knowledge database when retrieving relevant chunks that are related to the user query. Another popular approach is to use embedding model for the documents and then store them in Elasticsearch vector database. Moreover, you can use watsonx.ai Python SDK to perform queries directly. For additional methods on implementing RAG using code, please see the notebook examples below.</p><ul><li><a href="https://dataplatform.cloud.ibm.com/exchange/public/entry/view/ba4a9e35-2091-49d3-9364-a1284afab7ec?context=wx">Simple introduction to retrieval-augmented generation with watsonx.ai and Discovery</a></li><li><a href="https://ibm.biz/watsonx-llm-search">Answering watsonx.ai questions by using a foundation model</a></li><li><a href="https://dataplatform.cloud.ibm.com/exchange/public/entry/view/d3a5f957-a93b-46cd-82c1-c8d37d4f62c6?context=wx">Use watsonx and LangChain to answer questions by using RAG</a></li><li><a href="https://dataplatform.cloud.ibm.com/exchange/public/entry/view/ebeb9fc0-9844-4838-aff8-1fa1997d0c13?context=wx&amp;audience=wdp">Use watsonx, Elasticsearch, and LangChain to answer questions (RAG)</a></li><li><a href="https://dataplatform.cloud.ibm.com/exchange/public/entry/view/bdbc8ad4-9c1f-460f-99ee-5c3a1f374fa7?context=wx&amp;audience=wdp">Use watsonx, and Elasticsearch Python library to answer questions (RAG)</a></li><li><a href="https://dataplatform.cloud.ibm.com/exchange/public/entry/view/daf645b2-281d-4969-9292-5012f3b18215?context=wx">RAG with SingleStore and watsonx</a></li></ul><p>Source: <a href="https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-rag.html?context=wx#examples">Link</a></p><h3><strong>Conclusion</strong></h3><p>With Retrieval-Augmented Generation (RAG) becoming more and more ubiquitous, it is important to understand the different implementations. Whether a user is looking for a no-code solution that simplifies implementation, a low-code option that offers flexibility without requiring deep technical expertise, or a complete coding approach for maximum control and customization, IBM offers all of these methods. Effectively leveraging RAG will enhance enterprise capabilities, driving innovation and improving decision-making processes across various domains.</p><blockquote><strong><em>Madison Lee (</em></strong><a href="https://www.linkedin.com/in/madisonklee/"><em>LinkedIn</em></a><strong><em>) </em></strong>is an AI Engineer at IBM. Previously, she studied computer science at Columbia University.</blockquote><blockquote><strong><em>Shirley Han (</em></strong><a href="https://medium.com/www.linkedin.com/in/shirley-han"><em>LinkedIn</em></a><strong><em>) </em></strong>is an AI Engineer at IBM. Prior to her current role, she worked as a Data Scientist. She received a Master’s degree in Data Science from Johns Hopkins University. During her undergraduate studies, she studied Cognitive Science with a Specialization in Machine Learning &amp; Neural Computation and Computer Science at the University of California, San Diego.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b5e8d3630ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Explained: A Multidisciplinary Approach to Extracting Meaning from Data]]></title>
            <link>https://medium.com/@shirleyhan3/data-science-explained-a-multidisciplinary-approach-to-extracting-meaning-from-data-4b9bfcf5d39c?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b9bfcf5d39c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[use-cases]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 07:30:57 GMT</pubDate>
            <atom:updated>2022-12-12T07:30:57.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*7sOkvc76FtXKEz_4_aQuaQ.jpeg" /></figure><p>Data science is a rapidly growing field that has become increasingly important in recent years. It is a multidisciplinary approach that combines principles and practices from various fields, including mathematics, statistics, artificial intelligence, and computer science, to extract meaningful insights from data. Data science is important because it allows organizations to make better decisions by providing them with insights into their data.</p><p>The history of data science dates back to the 1960s, when the term was first used as an alternative name for statistics. In the late 1990s, computer science professionals formalized the definition of data science, defining it as a separate field with three aspects: data design, collection, and analysis. It wasn’t until the 2000s that the term began to be used outside of academia.</p><p>Today, data science is used in a variety of ways, including descriptive analysis, diagnostic analysis, predictive analysis, and prescriptive analysis. The descriptive analysis examines data to gain insights into what happened or what is happening in a given data environment. Diagnostic analysis, on the other hand, is a more detailed examination of data to understand why something happened. Predictive analysis uses historical data to make accurate forecasts about future data patterns, while prescriptive analysis takes predictive data to the next level by not only predicting what is likely to happen but also suggesting an optimum response to that outcome.</p><p>Data science is transforming the tech industry by providing organizations with the ability to extract insights from large amounts of data. This allows tech companies to make more informed and data-driven decisions, which can lead to the development of new products and services.</p><p>There are many customer use cases for data science. Some examples include:</p><ul><li>A retail company using data science to analyze customer purchasing patterns and preferences in order to personalize their marketing efforts and make recommendations for products that the customer is likely to be interested in.</li><li>A financial institution using data science to detect fraudulent activity by analyzing customer transaction data and identifying patterns that may indicate fraudulent behavior.</li><li>A healthcare organization using data science to identify trends and patterns in patient data, such as medical history, test results, and treatment outcomes, in order to improve patient care and treatment plans.</li><li>An e-commerce company using data science to improve their website and app user experience by analyzing customer data to identify areas for improvement and optimize the user experience.</li><li>A transportation company using data science to optimize routes and schedules by analyzing data on traffic patterns, weather, and customer demand.</li></ul><p>These are just a few examples of how data science can be used to provide valuable insights and improve customer experiences.</p><p>The future of data science looks bright. Advances in artificial intelligence and machine learning have made data processing faster and more efficient, and there is a growing demand for data science professionals in various industries. This has led to an ecosystem of courses, degrees, and job positions within the field of data science. Because of the cross-functional skillset and expertise required, data science is expected to continue to grow and evolve in the coming decades.</p><p>Key Takeaways:</p><ul><li>Data science is a multidisciplinary field that extracts meaning from data.</li><li>It is important for making data-driven decisions.</li><li>It has a rich history and is used for various purposes, including descriptive, diagnostic, predictive, and prescriptive analysis.</li><li>The field is expected to continue growing due to the increasing availability of data and advancements in AI and machine learning.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b9bfcf5d39c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Pandas: An Introduction to Data Manipulation and Analysis in Python]]></title>
            <link>https://medium.com/@shirleyhan3/getting-started-with-pandas-an-introduction-to-data-manipulation-and-analysis-in-python-9a399e42be5d?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a399e42be5d</guid>
            <category><![CDATA[dataframes]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-manipulation]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 07:15:29 GMT</pubDate>
            <atom:updated>2022-12-12T07:15:55.301Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xXKVq5XDzh56kDiIDW6Tw.png" /></figure><p>Pandas is a popular open-source library for data manipulation and analysis in Python. It provides a high-performance, easy-to-use data structure called a DataFrame, which allows you to organize and manipulate tabular data in rows and columns. In this article, we will provide a brief introduction to using pandas in Python.</p><p>To use pandas in your Python code, you will first need to install it. This can be done by running the following command in your terminal:</p><pre>pip install pandas</pre><p>Once pandas is installed, you can import it into your code by using the following import statement:</p><pre>import pandas as pd</pre><p>This allows you to access all of pandas’ functions and classes using the pd alias.</p><p>One of the key features of pandas is its ability to read and write data to a variety of formats, including CSV, Excel, JSON, SQL, and more. This allows you to easily load and save data from various sources, such as files on your computer or databases on a remote server.</p><p>For example, to read a CSV file into a DataFrame, you can use the pd.read_csv() function, like this:</p><pre>df = pd.read_csv(&quot;path/to/file.csv&quot;)</pre><p>This will load the data from the CSV file into a DataFrame, which you can then manipulate and analyze using pandas’ powerful tools and methods.</p><p>Once you have your data in a DataFrame, you can use pandas to perform a wide range of operations on it, such as selecting specific columns or rows, aggregating and summarizing data, and more. For example, you can use the df.head() method to view the first few rows of a DataFrame, or the df.describe() method to generate summary statistics for the data.</p><p>In addition, pandas integrates seamlessly with other popular Python libraries for data analysis, such as NumPy and matplotlib, allowing you to easily combine and visualize your data in powerful ways.</p><p>Here is an example of a pandas DataFrame:</p><pre>import pandas as pd<br><br># Example DataFrame<br>df = pd.DataFrame({<br>    &quot;name&quot;: [&quot;Charlie&quot;, &quot;Frank&quot;, &quot;Irene&quot;, &quot;Dave&quot;, &quot;Grace&quot;, &quot;Jack&quot;, <br>              &quot;Bob&quot;, &quot;Alice&quot;, &quot;Eve&quot;, &quot;Heather&quot;],<br>    &quot;age&quot;: [95, 40, 51, 65, 97, 23, 74, 69, 38, 87],<br>    &quot;city&quot;: [&quot;Singapore&quot;, &quot;Madrid&quot;, &quot;Berlin&quot;, &quot;Paris&quot;, <br>            &quot;Toronto&quot;, &quot;London&quot;, &quot;Rome&quot;, &quot;Hong Kong&quot;, &quot;New York&quot;, &quot;Sydney&quot;]<br>})<br><br># Print the DataFrame<br>print(df)</pre><p>This code creates a DataFrame with multiple rows and three columns, representing the names, ages, and cities of the individuals. The output of the print() statement would look like this:</p><pre>     name  age      city<br>0  Charlie   95  Singapore<br>1     Frank   40   Madrid<br>2    Irene   51    Berlin<br>3     Dave   65     Paris<br>4    Grace   97   Toronto<br>5     Jack   23    London<br>6     Bob   74     Rome<br>7   Alice   69  Hong Kong<br>8     Eve   38  New York<br>9  Heather   87    Sydney<br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a399e42be5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Advanced Technology Behind chatGPT: GPT-3]]></title>
            <link>https://medium.com/@shirleyhan3/the-advanced-technology-behind-chatgpt-gpt-3-e13d2785032?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13d2785032</guid>
            <category><![CDATA[gpt-3]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 07:04:33 GMT</pubDate>
            <atom:updated>2022-12-12T07:04:33.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0fQziEpgiNZDrrT5wm53Pg.jpeg" /></figure><p>What exactly is the technical wizardry behind chatGPT, the newest and most advanced chatbot platform on the market? chatGPT uses the state-of-the-art GPT-3 language processing model, developed by OpenAI, to power its conversational AI. Let’s dive into the technical details and see what makes chatGPT and GPT-3 so special.</p><p>GPT-3, or Generative Pretrained Transformer 3, is a state-of-the-art language processing model developed by OpenAI. It is the most powerful language model to date, with 175 billion parameters, and has been trained on a massive amount of text data to generate human-like text.</p><p>From a data scientist’s perspective, GPT-3 is a machine learning model that uses a transformer architecture to process natural language. It has been trained on a large corpus of text data using unsupervised learning techniques, allowing it to learn the statistical patterns and relationships between words and sentences.</p><p>The result is a model that can generate text that sounds like it was written by a human, making it useful for a wide range of applications such as natural language generation, language translation, and text summarization.</p><p>GPT-3’s ability to generate human-like text and its massive scale make it a valuable tool for data scientists working in natural language processing and other related fields. Its performance on benchmarks and in practical applications has shown its potential to advance the state of the art in the field.</p><p>One such application is chatGPT, a chatbot platform that uses GPT-3 to power its conversational AI, that is getting a ton of attention recently. chatGPT allows users to create custom chatbots that can engage in natural, human-like conversations with their customers and users. To use chatGPT, users simply need to provide some example conversation prompts and responses, as well as a description of the chatbot’s personality and tone. chatGPT then uses GPT-3 to generate responses that match the provided prompts and align with the specified personality and tone.</p><p>One of the key advantages of chatGPT and GPT-3 is that the chatbots can be customized to fit the specific needs and personality of each business. This means that businesses can create chatbots that align with their brand and tone, providing a more personalized and engaging experience for their customers.</p><p>GPT-3 and chatGPT offer a powerful tool for businesses looking to improve their customer interactions and make their online presence more engaging. With its ability to generate human-like text and customizable chatbot personalities, chatGPT powered by GPT-3 is a game-changer for businesses looking to improve their customer experience.</p><p>Key Takeaways:</p><ul><li>chatGPT is a chatbot platform that uses GPT-3 to power its conversational AI.</li><li>GPT-3 is a state-of-the-art language processing model developed by OpenAI, with 175 billion parameters.</li><li>GPT-3 uses a transformer architecture and unsupervised learning techniques to generate human-like text.</li><li>chatGPT allows users to create custom chatbots with human-like conversation abilities.</li><li>chatGPT and GPT-3 provide businesses with a powerful tool for improving customer interactions and creating a more engaging online presence.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13d2785032" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring the Pros and Cons of ChatGPT for Businesses]]></title>
            <link>https://medium.com/@shirleyhan3/exploring-the-pros-and-cons-of-chatgpt-for-businesses-afdbd49cad40?source=rss-e41dec2cf1c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/afdbd49cad40</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Shirley Han]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 06:34:56 GMT</pubDate>
            <atom:updated>2022-12-12T06:34:56.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tt_U9lKATcU2V4IoiVKywA.jpeg" /></figure><p>ChatGPT is a new language processing tool that uses natural language processing and machine learning to understand and respond to text-based conversations. Developed by OpenAI, ChatGPT has the ability to generate responses in a conversational style, making it a useful tool for businesses looking to automate customer service or improve communication within their organization. However, like all new technologies, ChatGPT has its pros and cons, and it is important for businesses to carefully consider how it may affect their operations.</p><p>One of the biggest advantages of ChatGPT is its ability to handle complex conversations and provide accurate responses. Because it uses natural language processing, ChatGPT is able to understand the context and intent of a conversation and generate a response that is relevant and on-topic. This means that businesses can use ChatGPT to automate customer service tasks, such as answering common questions or providing information about products and services. This can save time and resources, allowing businesses to focus on more important tasks, and provide a more efficient and personalized experience for their customers.</p><p>Another advantage of ChatGPT is its ability to improve communication within organizations. Because it is a text-based tool, ChatGPT can be integrated into a variety of messaging platforms, such as Slack or Microsoft Teams. This allows teams to use ChatGPT to collaborate and share information in real-time, making it easier to stay up-to-date on projects and tasks. ChatGPT can also help teams stay organized by providing reminders and alerts or automating tasks like scheduling meetings or tracking progress.</p><p>Despite these advantages, ChatGPT also has some drawbacks that businesses should be aware of. One of the biggest challenges is ensuring that ChatGPT provides accurate and relevant responses. Because it is a machine learning tool, ChatGPT’s responses are based on the data it has been trained on, and it may not always provide the right answer. This can be frustrating for customers or employees who are relying on ChatGPT for information, and it may lead to misunderstandings or errors. To address this issue, businesses will need to carefully monitor ChatGPT’s responses and provide additional training or input as needed.</p><p>Another potential drawback of ChatGPT is its cost. While it can save businesses time and resources in the long run, ChatGPT requires a significant investment in terms of training data and infrastructure. This can be prohibitive for small businesses or organizations with limited budgets, who may not be able to afford the upfront costs of implementing ChatGPT. Additionally, ChatGPT requires ongoing maintenance and support, which can add to the overall cost of using the tool.</p><p>Despite these challenges, ChatGPT has the potential to revolutionize the way businesses communicate and interact with customers and employees. As natural language processing and machine learning continue to advance, ChatGPT and other tools like it will become even more powerful and sophisticated, making it easier for businesses to automate tasks and improve communication within their organizations. Ultimately, the decision to use ChatGPT will depend on a business’s specific needs and goals, and whether the potential benefits outweigh the costs and challenges.</p><p>Key Takeaways:</p><ul><li>ChatGPT is a natural language processing tool that uses machine learning to understand and respond to text-based conversations.</li><li>It has the potential to automate customer service tasks, improve communication within organizations, and save time and resources.</li><li>Some challenges of using ChatGPT include ensuring the accuracy and relevance of responses, and the high upfront and ongoing costs of the tool.</li><li>The decision to use ChatGPT will depend on a business’s specific needs and goals, and whether the potential benefits outweigh the costs and challenges.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afdbd49cad40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>