<?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 Summer on Medium]]></title>
        <description><![CDATA[Stories by Summer on Medium]]></description>
        <link>https://medium.com/@yoloshe302?source=rss-c98d2c413ea1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*H-dQpQnmKaUqB4s0hkQ3yg.png</url>
            <title>Stories by Summer on Medium</title>
            <link>https://medium.com/@yoloshe302?source=rss-c98d2c413ea1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:18:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yoloshe302/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[Unlocking Customer Insights at Scale: Batch Inference with LLMs on Databricks]]></title>
            <link>https://levelup.gitconnected.com/unlocking-customer-insights-at-scale-batch-inference-with-llms-on-databricks-84c4b3326b2d?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/84c4b3326b2d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Wed, 07 May 2025 14:17:54 GMT</pubDate>
            <atom:updated>2025-05-07T14:17:54.567Z</atom:updated>
            <content:encoded><![CDATA[<h4>Analyze multilingual survey data at scale — translated, summarized, and classified using AI — all within Databricks.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AkPcd8WOu9F4TPz19Qyt0w.png" /><figcaption>Image by ChatGPT-4o</figcaption></figure><h3>Why This Matters</h3><p>Modern organizations constantly collect feedback through surveys, support tickets, and product reviews. However, most of this feedback is unstructured, diverse in language, and difficult to process manually. Trying to understand it all without automation is labor-intensive and limits how fast teams can respond to customer needs.</p><p>Batch inference offers a scalable solution to this problem. By combining Databricks’ AI platform capabilities with generative AI models, we can automate the translation, classification, and summarization of customer feedback. The outcome: faster insights and data-driven decisions.</p><p>This isn’t just about improving efficiency — it’s about giving cross-functional teams access to insights they can trust. With batch inference, product managers, analysts, and support teams don’t need to wait for data science teams to tag survey responses. The insights are continuously updated as new data arrives.</p><p>In this post, we’ll walk through a complete example of how to:</p><ul><li>Load customer survey data from CSV files using Auto Loader</li><li>Use ai_translate() to convert feedback into English</li><li>Apply ai_query() with Llama 3 to identify sentiment, summarize responses, and detect key topics</li><li>Build a real-time dashboard for easy exploration</li></ul><p>This project showcases how batch inference can bring value to both technical and business teams by automating insight generation from qualitative feedback.</p><h3>What Is Batch Inference with LLMs on Databricks?</h3><p><a href="https://docs.databricks.com/aws/en/machine-learning/model-inference"><strong>Batch inference</strong></a> is the process of applying machine learning models — like LLMs — to large datasets all at once, rather than in real-time. It’s useful when you have a backlog of data or routinely process data in batches, such as weekly survey exports or monthly customer reviews.</p><p>On Databricks, you can use SQL-native functions like <a href="https://docs.databricks.com/en/sql/language-manual/functions/ai_query.html">ai_query()</a> and <a href="https://docs.databricks.com/en/sql/language-manual/functions/ai_translate.html">ai_translate()</a> to apply these models directly inside your workflows—no external APIs or custom ML infrastructure required.</p><h3>Key Benefits:</h3><ul><li><strong>Scalable</strong>: Works with billions of rows thanks to serverless compute</li><li><strong>Efficient</strong>: Process new data incrementally with Auto Loader</li><li><strong>Secure and governed</strong>: Integrated with Unity Catalog and Delta Lake</li><li><strong>Accessible</strong>: Use SQL and Python, no ML engineering required</li></ul><h3>Setting the Stage: The Survey</h3><p>To demonstrate this workflow, we built a sample survey using <a href="https://docs.google.com/forms/u/0/?tgif=d">Google Forms</a>. It includes 5 questions:</p><ol><li>How satisfied are you with our service?</li><li>What did you like most?</li><li>What could we improve?</li><li>How likely are you to recommend us to a friend or colleague?</li><li>Any additional comments?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*hNzbd17Darjb9GDthxLR_Q.png" /><figcaption>Image by Author</figcaption></figure><p>We generated responses in English, Spanish, Chinese, French, and Japanese to reflect real-world feedback diversity. You can download the CSVs <a href="https://github.com/Hehehe421/databricks-genai"><strong>here</strong></a> and follow along in your own workspace.</p><h3>Step 1: Incremental Ingestion with Auto Loader</h3><p>To start, we saved each batch of survey results as a CSV file and uploaded them into a Databricks Volume. Using <a href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/"><strong>Auto Loader</strong></a>, we ingested the data into a Delta table incrementally:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bde6c83ba776eb0a0856b9c45268c4f/href">https://medium.com/media/2bde6c83ba776eb0a0856b9c45268c4f/href</a></iframe><p>Auto Loader ensures that new files are processed exactly once, supports schema evolution, and works well for production pipelines. It’s ideal for survey systems that may evolve over time.</p><p>Before we move forward, let’s take a quick look at the raw dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAMoHZxSDucFYzVco9qKsg.png" /><figcaption>Image by Author</figcaption></figure><p>As shown in the image above, the original survey results are a mix of different languages, with inconsistent formats and open-ended responses. It’s messy and unstructured — exactly the type of data that’s difficult to summarize manually. Without AI, turning this into actionable insights would be extremely time-consuming and error-prone.</p><h3>Step 2: Translate Responses with ai_translate()</h3><p>Next, we applied ai_translate() to convert non-English feedback to English:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e35e6a8f7834f70b24b59870ad5bb3b3/href">https://medium.com/media/e35e6a8f7834f70b24b59870ad5bb3b3/href</a></iframe><p>This approach gives us access to both the original and translated versions, helping maintain transparency and traceability.</p><h3>Step 3: Normalize and Prepare Data for AI</h3><p>With the translated responses available, we built a view that uses English as the standard language for all downstream analyses:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee7a46b9d545bff2bdcb353d5463afcf/href">https://medium.com/media/ee7a46b9d545bff2bdcb353d5463afcf/href</a></iframe><p>By coalescing the original and translated columns, we ensure each record is complete and ready for inference.</p><h3>Step 4: Generate Insights with ai_query() and LLaMA 3</h3><p>Now for the most exciting part — extracting insights using LLMs. The ai_query() function allows us to embed natural language prompts inside SQL queries. For each customer response, we extract:</p><ul><li><strong>Sentiment</strong> (Positive / Neutral / Negative)</li><li><strong>A one-sentence summary</strong> of the feedback</li><li><strong>Topic classification</strong> (e.g., Support, UI, Shipping)</li></ul><p>These insights can help <strong>product and support teams prioritize improvements</strong> based on real customer data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf05b644d862be7e776c125b953a0f2f/href">https://medium.com/media/bf05b644d862be7e776c125b953a0f2f/href</a></iframe><p>Because ai_query() is built into Databricks SQL, you don’t need to host your own models or manage APIs. Everything runs on serverless infrastructure and scales automatically.</p><h3>Step 5: Visualize Results in a Dashboard</h3><p>The final step is making insights accessible to stakeholders. We can create a dashboard using the Databricks SQL editor:</p><ul><li>Pie chart of sentiment (Positive, Neutral, Negative)</li><li>Bar chart of topics categorized by sentiment</li><li>Table of feedback summaries</li><li>Filters for topic and translation status</li></ul><p>Business users can explore trends over time, highlight areas for improvement, and identify customer pain points — without writing a single line of code.</p><p>The dashboard updates automatically when new survey files are ingested.</p><h3>Why This Approach Works</h3><p>This workflow provides a fast, scalable way to process and analyze unstructured survey feedback. With just a few SQL and Python commands, we:</p><ul><li>Automated ingestion of multilingual survey data</li><li>Used AI functions to translate and enrich responses</li><li>Applied LLM-powered classification and summarization</li><li>Built a fully interactive dashboard</li></ul><p>It’s a reusable solution that can be adapted for product reviews, support tickets, internal employee feedback, and more.</p><h3>Try It Yourself</h3><p>Want to build this for your team? Start with a CSV file of survey responses and use Auto Loader to ingest them. From there, apply ai_translate() and ai_query() to generate insights. You’ll be amazed at how much value is hidden in free-text feedback.</p><p>While this post focused on customer surveys, the same workflow applies to many real-world applications — such as product reviews, app store feedback, support tickets, and onboarding responses. Anywhere your team is dealing with open-ended text, this pattern can automate insight generation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84c4b3326b2d" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/unlocking-customer-insights-at-scale-batch-inference-with-llms-on-databricks-84c4b3326b2d">Unlocking Customer Insights at Scale: Batch Inference with LLMs on Databricks</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Model Context Protocol vs. AI Agents: Choosing the Right Brain for Your AI App]]></title>
            <link>https://levelup.gitconnected.com/model-context-protocol-vs-ai-agents-choosing-the-right-brain-for-your-ai-app-9d576e036c3d?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d576e036c3d</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 16:00:37 GMT</pubDate>
            <atom:updated>2025-04-15T16:00:37.299Z</atom:updated>
            <content:encoded><![CDATA[<h4>MCP vs. AI Agents: Understanding Two Powerful Approaches to Tool-Using Language Models</h4><h3>Introduction</h3><p>Hey there, AI builders! If you’ve worked with LLMs, you’ve probably run into a familiar challenge:</p><blockquote><em>“How do I give my model access to tools — like search, calculators, or APIs — </em><strong><em>and</em></strong><em> still keep it smart, adaptive, and manageable?”</em></blockquote><p>Today, there are two dominant approaches for equipping your models with tool-using powers:</p><ul><li><strong>AI Agents</strong> (think: planning, tools, autonomy, and orchestration)</li><li><strong>Model Context Protocol (MCP)</strong> (think: modularity, flexibility, model-driven decision-making)</li></ul><p>Both approaches aim to create intelligent systems that can reason, act, and adapt — but <strong>the way they do it is fundamentally different</strong>.</p><p>In this article, we’ll break down what MCP and AI agents really are, how they differ, and when to use which — with practical analogies and side-by-side comparisons.</p><h3>AI Agent is Like Building a House</h3><p>An <a href="https://github.com/resources/articles/ai/what-are-ai-agents">AI agent</a> is a framework that allows large language models (LLMs) to <strong>reason, plan, and execute tasks over multiple steps</strong> using external tools. Rather than solving everything in a single turn, agents break down goals into smaller sub-tasks, execute them in sequence, and adjust based on results.</p><p>Think of an <strong>AI Agent</strong> like constructing a house. You <strong>must plan everything in advance</strong>: lay the foundation, build the walls, then add the roof. Each step is <strong>sequential</strong> and <strong>depends on the previous one</strong>.</p><p>You typically define:</p><ul><li>A <strong>planner</strong>: what steps to take</li><li>A <strong>tool registry</strong>: which APIs or functions to call</li><li>A <strong>runtime</strong> (like LangChain AgentExecutor or LangGraph) to track state and outputs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZKZ5ZBlIdHtb5nj8cJho5A.png" /><figcaption>Author by ChatGPT-4o</figcaption></figure><h3>Agent Workflow Example</h3><p>Here’s a high-level plan to handle a customer request:</p><pre># User: “Summarize this email and schedule a meeting tomorrow if I&#39;m free at 2pm”<br>plan = [<br>    {&quot;tool&quot;: &quot;summarize_email&quot;, &quot;input&quot;: &quot;email_body&quot;},<br>    {&quot;tool&quot;: &quot;check_calendar&quot;, &quot;input&quot;: &quot;2pm tomorrow&quot;},<br>    {&quot;tool&quot;: &quot;create_meeting&quot;, &quot;condition&quot;: &quot;if free&quot;}<br>]</pre><p>Each tool is executed in <strong>exact order</strong>, often with error handling and retries. You orchestrate the entire process — just like an architect overseeing each brick.</p><h3>MCP is Like a Chef Making a Custom Dish</h3><p>The <a href="https://www.anthropic.com/news/model-context-protocol">Model Context Protocol (MCP)</a> is a community-driven open standard initiated by developers at Anthropic and adopted by contributors across the AI ecosystem, including OpenAI, LangChain, and others. It aims to standardize how language models interact with tools, memory, and context — allowing a model to act like a reasoning and decision-making orchestrator. Rather than enforcing rigid tool-calling sequences, MCP allows the model to autonomously determine <strong>which tools to use, when to use them, and how to use them</strong>, based on the current input and available context.</p><p>Now imagine a <strong>chef (the LLM)</strong> in a well-stocked kitchen. There’s sugar, salt, and flour (or, in AI terms, search, summarize, translate).</p><p>The customer gives a request:</p><blockquote><em>“I’d like a brownie — but make it light and less sweet.”</em></blockquote><p>The chef:</p><ul><li>Picks only the needed ingredients</li><li>Chooses the <strong>right order on the fly</strong></li><li>Skips anything irrelevant</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHK5KyFMdQdTIIj7J3k8Hg.png" /><figcaption>Author by ChatGPT-4o</figcaption></figure><h3>MCP Workflow Example</h3><p>Here’s a high-level plan to handle a summary request:</p><pre>{<br>  &quot;tool_calls&quot;: [<br>    {<br>      &quot;name&quot;: &quot;search_docs&quot;,<br>      &quot;arguments&quot;: {<br>        &quot;query&quot;: &quot;password reset not working&quot;<br>      }<br>    }<br>  ]<br>}</pre><p>You don’t define the plan — the <strong>LLM decides</strong> when to search, when to summarize, and when to escalate. This gives you <strong>flexibility and modularity</strong>, making it easy to <strong>reuse</strong> tools without predefined steps.</p><h3>MCP vs. AI Agent — Side-by-Side Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*S-zz81XmKaJF4fZgJYhGXw.png" /><figcaption>Created by the Author</figcaption></figure><h3>Use Case Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*f8QBm5kw6g9-XlB77U_TXQ.png" /><figcaption>Created by the Author</figcaption></figure><h3>Final Thoughts</h3><p>Both MCP and AI Agents are powerful — but they’re <strong>built for different styles of AI interaction</strong>.</p><ul><li>If you want <strong>tight control</strong>, long-form planning, and deterministic workflows — go with <strong>AI agents</strong>.</li><li>If you want <strong>flexibility</strong>, rapid development, and adaptive LLM behavior — try <strong>MCP</strong>.</li></ul><p>And here’s the best part: <strong>They’re not mutually exclusive</strong>. You can use MCP-style tools <em>inside</em> an AI Agent, or build hybrid systems where simple tasks are delegated to MCP and complex ones to agent planners.</p><p>Choose your building blocks wisely — whether it’s bricks or brownie mix.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d576e036c3d" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/model-context-protocol-vs-ai-agents-choosing-the-right-brain-for-your-ai-app-9d576e036c3d">Model Context Protocol vs. AI Agents: Choosing the Right Brain for Your AI App</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Advanced Fine-Tuning Techniques: Chat Completion, Continued Pre-training, and Instruction…]]></title>
            <link>https://generativeai.pub/mastering-advanced-fine-tuning-techniques-chat-completion-continued-pre-training-and-instruction-25550667e6d3?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/25550667e6d3</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Thu, 17 Oct 2024 13:49:46 GMT</pubDate>
            <atom:updated>2024-10-17T13:49:46.874Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering Advanced Fine-Tuning Techniques: Chat Completion, Continued Pre-training, and Instruction Fine-tuning</h3><h4>A Practical Guide to Choosing the Right Fine-Tuning Method for Your Chatbots or Domain-Specific AI Tasks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n5HvuEVvMSPO6n41xrgQDA.png" /><figcaption>Image generated using DALL·E by OpenAI</figcaption></figure><h3>Introduction</h3><p>Hey there, fellow AI enthusiasts! Whether you’ve been immersed in the exciting world of <strong>Generative AI</strong> or are just starting to explore its potential, you’ve likely noticed how far this field has come. We’ve evolved from proprietary large language models (LLMs) that dominated the early AI landscape, to prompt engineering, and now into the advanced techniques of <strong>fine-tuning</strong> and <strong>pre-training</strong>. Today, businesses are no longer just relying on out-of-the-box AI solutions — they’re looking for ways to refine and tailor models to meet specific needs.</p><p>The question is: How do you choose the right approach when fine-tune your AI for specific tasks, or dive deeper into continued pre-training? As companies increasingly seek to stand out from their competitors, these advanced techniques offer a way to optimize models for domain-specific tasks, chatbots, and other specialized applications. But understanding the difference between these methods is key to selecting the right one for your project.</p><p>That’s where I come in. In this guide, I’ll walk you through <strong>three advanced fine-tuning techniques</strong>: <strong>Chat Completion</strong>, <strong>Continued Pre-training</strong>, and <strong>Instruction Fine-tuning</strong>. We’ll break down what each method offers, and how to choose the best one for your AI needs.</p><p>So let’s dive in — because your AI model deserves more than just good prompts, it deserves to be a fine-tuned powerhouse.</p><h3>Key Differences at a Glance</h3><p>Let’s first take a quick look at the <strong>key differences</strong> between these methods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sL-wWI4ceYIl4LUXyD5FrQ.png" /><figcaption>Image by Author</figcaption></figure><h3>1. Chat Completion: The AI Conversation Star</h3><p>First up is <strong>Chat Completion</strong> — the technique that teaches your model to be the life of the (virtual) party. This is where your AI learns how to hold a conversation, handle multiple back-and-forths, and <em>ideally</em> not sound like it’s reading from a script.</p><h4>Key Characteristics:</h4><ul><li>Uses <strong>chat logs</strong> or structured conversational data (think customer service logs, chatbots, or text exchanges).</li><li>Works great with both real-world chats and good old-fashioned question-answering tasks.</li><li>Automatically formats input data according to the model’s chat template, so it knows how to handle interactions.</li></ul><h4>Use Cases:</h4><ul><li><strong>Customer service chatbots</strong>: You want your chatbot to respond to “Where’s my order?” with something better than “Error 404: Empathy Not Found.”</li><li><strong>Virtual assistants</strong>: Siri, Alexa, or your custom in-house assistant that helps your team track project milestones.</li><li><strong>Conversational AI</strong> for specific industries: Whether it’s talking patients through symptoms in healthcare or handling a bank account inquiry, conversational AI can bring human-like interaction to specialized fields.</li><li><strong>Question-answering systems</strong>: Make your AI smarter by having it answer user questions with clear, concise, and informed replies.</li></ul><p>Think of <strong>Chat Completion</strong> as making your model an extroverted problem-solver who never tires of answering “Can you reset my password?” with grace and efficiency.</p><h4>Sample Data of training for Chat completion</h4><pre>User: Hi, can you help me find a recipe for chocolate chip cookies?<br>AI: Sure! Here’s a simple recipe. You’ll need flour, sugar, butter, eggs, vanilla extract, and chocolate chips.<br>User: How long do I need to bake them?<br>AI: Bake the cookies at 350°F for 10-12 minutes until golden brown.</pre><p>In this case, the model is trained to understand conversation flow, user intent, and context from prior exchanges.</p><h3>2. Continued Pre-training: The Deep Dive Specialist</h3><p>Next, we have <strong>Continued Pre-training</strong>, the approach that turns your AI from a jack-of-all-trades into a <em>domain expert</em>. Do you have a boatload of medical research papers? Legal documents? Scientific studies? This method takes an existing language model and narrows its focus by training it on <strong>unstructured text data</strong> related to a specific industry or subject area.</p><h4>Key Characteristics:</h4><ul><li>Uses <strong>unstructured text data</strong> (typically in .txt format), so it’s reading a LOT — think Wikipedia meets an endless library of industry-specific jargon.</li><li>Expands the model’s knowledge or focuses it on a niche area, like law, medicine, or the highly technical lingo of a specialized field.</li><li><strong>Requires large amounts of data</strong> (we’re talking at least 1.5 million tokens — yep, this AI is reading more than you ever will).</li></ul><h4>Use Cases:</h4><ul><li><strong>Industry-specific models</strong>: Want an AI that understands clinical trial data or financial reports? Pre-training it on domain-specific texts will ensure it speaks your industry’s language (literally).</li><li><strong>Up-to-date expertise</strong>: Need to update a general-purpose model to reflect the latest research or industry trends? Continued Pre-training helps keep your AI relevant.</li><li><strong>Specialized vocabulary and concepts</strong>: From legal jargon to scientific methodologies, this method helps your model get fluent in specialized terms.</li></ul><p>For example, if you’re a healthcare company, you can take an off-the-shelf AI model and <strong>pre-train</strong> it with medical journals, clinical guidelines, and patient records so it’s ready to tackle more specific tasks, like reading X-rays or suggesting treatment plans. It’s like sending your AI to med school!</p><h4>Sample Data for Continued Pre-training (Medical Domain):</h4><pre>&quot;Patient presented with acute myocardial infarction (AMI), elevated ST-segment <br>on ECG, and abnormal troponin I levels. Initial treatment included <br>administration of aspirin, beta-blockers, and heparin. <br>Emergency PCI was performed with the insertion of a drug-eluting stent to <br>restore coronary blood flow. The patient was placed on dual antiplatelet <br>therapy post-procedure.&quot;</pre><p>In this case, the model becomes more proficient in understanding medical terminology, treatments, and procedures, which is crucial for applications in the healthcare domain.</p><h3>3. Instruction Fine-tuning: The Taskmaster</h3><p>Finally, we’ve got <strong>Instruction Fine-tuning</strong> — the method that turns your AI into a well-behaved, multi-talented assistant that follows specific directions like a champ. Here, the model is fine-tuned on <strong>structured prompt-response pairs</strong>, helping it to generalize better across various tasks.</p><h4>Key Characteristics:</h4><ul><li>Uses <strong>prompt-response data</strong>: You’re teaching it to follow specific instructions, like “Translate this to French” or “Summarize this email in two sentences.”</li><li>This method doesn’t automatically apply formatting to data, which means you get more control over the structure of inputs and outputs.</li><li>Perfect for adapting models to specific tasks or making them behave a certain way (think tone, format, or language).</li></ul><h4>Use Cases:</h4><ul><li><strong>Specialized tasks</strong>: Whether it’s code generation, data analysis, or even generating structured output like JSON or XML, fine-tuning helps the model perform tasks accurately.</li><li><strong>Custom responses</strong>: Teach your AI to write in your company’s tone or adhere to a specific writing style (hello, brand consistency!).</li><li><strong>Command following</strong>: Need an AI to respond to clear instructions like “Summarize this financial report” or “Write an email reply with a friendly but professional tone”? Fine-tuning is your friend.</li></ul><p>Imagine you’re a software development company. You can fine-tune your model to generate code snippets or follow specific commands to assist your team with repetitive tasks. This method turns your model into a multi-tasker, ready to tackle whatever instruction you throw its way — like an AI Swiss Army knife.</p><h4>Sample Data for Instruction Fine-tuning:</h4><p><strong>Task</strong>: Summarize a document.</p><pre>Instruction: Summarize the following text in 2 sentences.<br>Text: &quot;The quick brown fox jumps over the lazy dog. The dog, startled by the fox, barked loudly and chased the fox across the field. Eventually, the fox escaped, leaving the dog tired but determined.&quot;<br>Output: &quot;A fox jumps over a dog, startling it. The dog chases the fox, but the fox escapes.&quot;</pre><p><strong>Task</strong>: Convert temperature.</p><pre>Instruction: Convert 100°F to Celsius.<br>Output: &quot;100°F is approximately 37.78°C.&quot;</pre><h3>How to Choose the Right Approach?</h3><p>So, how do you decide which approach to use? Here’s the cheat sheet:</p><ul><li><strong>Chat Completion</strong>: If you’re building a chatbot or virtual assistant and need your model to handle <strong>conversations</strong>.</li><li><strong>Continued Pre-training</strong>: When you have loads of <strong>specialized text data</strong> and want your model to become a subject matter expert.</li><li><strong>Instruction Fine-tuning</strong>: Perfect for when your model needs to <strong>follow specific instructions</strong> or perform detailed tasks with precision.</li></ul><h4>Pro Tip: Combine the Approaches!</h4><p>Many real-world applications blend these methods. For example, a company might:</p><ol><li><strong>Pre-train</strong> their model on legal documents to give it deep domain expertise.</li><li><strong>Fine-tune</strong> it with task-specific instructions, like generating contract summaries.</li><li>Use <strong>Chat Completion</strong> to polish up its conversational skills so it can answer client queries about those contracts.</li></ol><p>With these approaches in your toolkit, you can create models that are not only smart but specialized, helpful, and downright impressive!</p><h3>Conclusion</h3><p>Training AI models might sound like rocket science, but when you break it down, it’s all about choosing the right approach for your goals. So, the next time you’re thinking about how to make your AI smarter, just remember: sometimes all it needs is a little chat, a deep dive into its favorite texts, or a nudge in the right direction with fine-tuned instructions.</p><p>Now, if you’ll excuse me, I’ve got an AI to teach how to make the perfect cup of coffee. ☕ Until next time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Du7V61mEX_yIrfmF.png" /></figure><p>This story is published on <a href="https://generativeai.pub/">Generative AI</a>. Connect with us on <a href="https://www.linkedin.com/company/generative-ai-publication">LinkedIn</a> and follow <a href="https://www.zeniteq.com/">Zeniteq</a> to stay in the loop with the latest AI stories.</p><p>Subscribe to our <a href="https://www.generativeaipub.com/">newsletter</a> and <a href="https://www.youtube.com/@generativeaipub">YouTube</a> channel to stay updated with the latest news and updates on generative AI. Let’s shape the future of AI together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pvLAT3it1FkdhVU0.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25550667e6d3" width="1" height="1" alt=""><hr><p><a href="https://generativeai.pub/mastering-advanced-fine-tuning-techniques-chat-completion-continued-pre-training-and-instruction-25550667e6d3">Mastering Advanced Fine-Tuning Techniques: Chat Completion, Continued Pre-training, and Instruction…</a> was originally published in <a href="https://generativeai.pub/">Generative AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building AI-Powered Tools Using Large Language Models (LLMs) on Databricks]]></title>
            <link>https://generativeai.pub/building-ai-powered-tools-using-large-language-models-llms-on-databricks-a566e5c8717a?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a566e5c8717a</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Fri, 04 Oct 2024 02:13:55 GMT</pubDate>
            <atom:updated>2024-10-04T02:13:55.705Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Step-by-Step Guide to Automating Data Generation and Model Deployment with LangChain and MLflow</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTuxPshZauTRCUhvHDZsfA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@santesson89?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Andrea De Santis</a> on <a href="https://unsplash.com/photos/black-and-white-robot-toy-on-red-wooden-table-zwd435-ewb4?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Large Language Models (LLMs) are rapidly becoming essential tools for addressing a wide range of business challenges, from automating data workflows to generating synthetic data. In this guide, we’ll walk through the process of building an AI-powered data generation tool on Databricks using LLMs. Leveraging Databricks’ unified platform, you’ll learn how to integrate LLMs to automate code generation workflows, manage models, and handle deployment.</p><p>By the end of this guide, you’ll have a tool capable of automatically generating synthetic datasets based on sample input data, enabling businesses to test with non-sensitive data in various use cases.</p><p>· <a href="#e3ad">Problem Statement: The Data Generation Challenge</a><br>· <a href="#767f">Framework for Leveraging LLMs for Data Generation</a><br>· <a href="#2190">Step 1: Setting Up Databricks and LLM Integration</a><br>· <a href="#4472">Step 2: Define the Few-Shot Learning Example</a><br>· <a href="#2eca">Step 3: Create and Run the LLM Chain</a><br>· <a href="#2cf8">Step 4: Automating the Process</a><br>· <a href="#3706">Step 5: Logging and Registering the Model with MLflow</a></p><h3>Problem Statement: The Data Generation Challenge</h3><p>Many organizations, especially those that deal with sensitive data like Personally Identifiable Information (PII), face the challenge of generating synthetic or anonymized versions of their datasets. These datasets are crucial for:</p><ul><li>Testing and validating models.</li><li>Proof-of-concept (PoC) development.</li><li>Sharing across teams without violating data privacy or regulatory requirements.</li></ul><p>However, manual data generation processes can be <strong>time-consuming </strong>and <strong>error-prone</strong> with inaccuracies in synthetic data.</p><h3>Our Goal</h3><p>In this blog, we’ll build an AI-powered tool that can generate synthetic data automatically using LLMs. The generated data will be saved into <strong>Delta Lake</strong>, ensuring scalability and reliability for future use.</p><p>Key features of the tool include:</p><ol><li>Generating synthetic datasets that mimic real-world data.</li><li>Automating the process using PySpark code.</li><li>Logging and monitoring datasets and models for easy tracking and reproducibility.</li></ol><h3>Framework for Leveraging LLMs for Data Generation</h3><p>The high-level framework we’ll use integrates LLMs and Databricks with PySpark. Below is a breakdown of the process:</p><h3>Steps:</h3><ol><li><strong>Input Sample Dataset</strong>: A dataset containing sensitive information is fed as input.</li><li><strong>LLM Integration</strong>: We use LangChain to connect an LLM to generate PySpark code based on the input dataset.</li><li><strong>Synthetic Data Generation</strong>: The tool generates synthetic versions of the input data.</li><li><strong>Code Execution &amp; Output</strong>: The generated PySpark code is executed on Databricks, with the synthetic dataset saved to Delta Lake for future use.</li></ol><h3>Step 1: Setting Up Databricks and LLM Integration</h3><p>Before we begin building, we need to ensure that our Databricks environment is properly set up. This includes installing necessary libraries and configuring the platform.</p><h3>Installing Required Libraries</h3><p>In your Databricks environment, you’ll need to install the following libraries:</p><ul><li>mlflow: For experiment tracking and model logging.</li><li>langchain: To connect and manage LLM workflows.</li><li>pandas and pyspark: For data manipulation and processing.</li><li>Faker: For generating synthetic data.</li></ul><p>To install these libraries, run the following command:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3cc05fea1294342dc1ca3e49c14eca3/href">https://medium.com/media/b3cc05fea1294342dc1ca3e49c14eca3/href</a></iframe><h3>Step 2: Define the Few-Shot Learning Example</h3><p>Next, we’ll use LangChain to set up the LLM and generate PySpark code. Few-shot learning involves giving the model a few examples of how to transform a sample dataset into synthetic data. This will help guide the LLM in generating the appropriate code.</p><h3>Core Logic for Few-Shot Learning:</h3><p>We define a few-shot prompt with a simple dataset and a corresponding output in PySpark code. Here’s an example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c706b9eb4453b4981b25700ced6e5bf3/href">https://medium.com/media/c706b9eb4453b4981b25700ced6e5bf3/href</a></iframe><h3>Step 3: Create and Run the LLM Chain</h3><p>Now that the prompt is defined, we can set up the LLM chain using the few-shot examples. We’ll also ensure the LLM chain is integrated with Databricks for seamless execution. Here, I will leverage the Databricks DBRX as my foundational model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/67d31e35169df2b5daf946211f1b0899/href">https://medium.com/media/67d31e35169df2b5daf946211f1b0899/href</a></iframe><p>let’s run a quick test to see how it looks like so far</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*8LM33YulxXccXxjldDw_qQ.png" /></figure><p>This setup will enable the generation of PySpark code that can be executed within Databricks to create synthetic data. However, some formatting and indentation issues may arise, so we’ll add a helper function to fix these before executing the code. You can find helper functions for indent corrections and execution <a href="https://gist.github.com/Hehehe421/499af0b22ee23e7ae2da62d6661c6d34">here</a>.</p><p>Then, let’s define a new function that can automate every step above and run the test.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e90bb0ffb38bf6a2ab9d7244a4348295/href">https://medium.com/media/e90bb0ffb38bf6a2ab9d7244a4348295/href</a></iframe><p>let’s run a simple test as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*LH-T2SK0ldP_JtU6hWrF7A.png" /></figure><h3>Step 4: Automating the Process</h3><p>We now have the LLM chain generating PySpark code and handling most tasks, but we want to automate the entire process, including logging and saving the dataset to Delta Lake.</p><p>To streamline the process, we can wrap everything into a function. This allows us to automate execution, logging, and dataset generation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19279bad8551ff003f330a41fbaf9ed5/href">https://medium.com/media/19279bad8551ff003f330a41fbaf9ed5/href</a></iframe><h3>Step 5: Logging and Registering the Model with MLflow</h3><p>Finally, we’ll log the LLM model and the generated synthetic datasets using MLflow. By registering the model in <strong>Unity Catalog</strong>, you can manage lineage, versioning, and access controls.</p><p>Here’s how you can log and register the model:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebf68d6a0763e488395ebc179891740a/href">https://medium.com/media/ebf68d6a0763e488395ebc179891740a/href</a></iframe><p>By logging and registering the model, you ensure that it’s available for future use and deployment across different environments.</p><h3>Conclusion</h3><p>In this guide, we have demonstrated how to build and deploy an AI-powered tool for synthetic data generation using Large Language Models (LLMs) on Databricks. The power of LLMs enables automation in code generation, allowing businesses to tackle data-related challenges efficiently.</p><p>The key workflow follows a structured approach:</p><ul><li><strong>Few-Shot Learning</strong>: The LLM is trained with a few-shot learning example, enabling it to understand and generate PySpark code for various data scenarios.</li><li><strong>Code Generation</strong>: Once the input dataset is provided, the LLM automatically generates clean, executable code to create synthetic data.</li><li><strong>Automated Execution</strong>: Databricks handles the code execution, ensuring proper formatting and managing potential errors seamlessly.</li><li><strong>Tracking &amp; Monitoring</strong>: With MLflow, we log and monitor the entire process, from generated code to synthetic datasets, ensuring reproducibility and traceability.</li></ul><p>This framework can be applied to various real-world business problems beyond data generation. For instance, organizations dealing with large datasets that include sensitive information can use this tool to create anonymized data for testing environments. Additionally, businesses looking to enhance operational efficiencies through automation — whether in code generation, testing, or data analytics — can leverage LLMs to minimize manual effort, reduce errors, and ensure scalability.</p><p>By combining Databricks, LLMs, and tools like LangChain and MLflow, businesses can unlock a wide range of AI-powered solutions, driving innovation while maintaining control over data privacy and compliance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HVWCJxTNVoKapefR.png" /></figure><p>This story is published on <a href="https://generativeai.pub/">Generative AI</a>. Connect with us on <a href="https://www.linkedin.com/company/generative-ai-publication">LinkedIn</a> and follow <a href="https://www.zeniteq.com/">Zeniteq</a> to stay in the loop with the latest AI stories.</p><p>Subscribe to our <a href="https://www.generativeaipub.com/">newsletter</a> and <a href="https://www.youtube.com/@generativeaipub">YouTube</a> channel to stay updated with the latest news and updates on generative AI. Let’s shape the future of AI together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*c_6X1qamQljz917x.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a566e5c8717a" width="1" height="1" alt=""><hr><p><a href="https://generativeai.pub/building-ai-powered-tools-using-large-language-models-llms-on-databricks-a566e5c8717a">Building AI-Powered Tools Using Large Language Models (LLMs) on Databricks</a> was originally published in <a href="https://generativeai.pub/">Generative AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Organize Your Gmail Like a Pro: 6 Google Apps Script Hacks to Save You Time]]></title>
            <link>https://medium.com/@yoloshe302/organize-your-gmail-like-a-pro-6-google-apps-script-hacks-to-save-you-time-6cd015ca9ee0?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cd015ca9ee0</guid>
            <category><![CDATA[productivity-tips]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[google-scripts]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 13:21:38 GMT</pubDate>
            <atom:updated>2024-09-25T13:21:38.821Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNBRno8gEJS4YRy-E-CY7A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@gainingvisuals?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Gaining Visuals</a> on <a href="https://unsplash.com/photos/person-in-blue-denim-jeans-wKu5yvAT0bg?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Do you find yourself overwhelmed by a cluttered Gmail inbox? Whether it’s old unread emails, promotional offers, or a flood of daily newsletters, managing your mailbox can become a tedious task. But what if you could automate much of this work and streamline your email experience? That’s where <a href="https://developers.google.com/apps-script"><strong>Google Apps Script</strong></a> comes in!</p><p>With <a href="https://developers.google.com/apps-script"><strong>Google Apps Script</strong></a>, you can automate key tasks in Gmail, like deleting old emails, snoozing less urgent messages, or even sending daily summaries of important emails to your Slack channel. In this blog, I’ll walk you through <strong>6 powerful Gmail automation scripts</strong> that can help you organize your inbox and boost your productivity — all without breaking a sweat.</p><p>Let’s dive in!</p><p>· <a href="#9630">Getting Started with Google Apps Script for Gmail Automation</a><br>· <a href="#fe32">1. Automatically Delete Emails from the Promotions Tab</a><br>· <a href="#e1cf">2. Mark Unread Emails from Important Senders as “Important”</a><br>· <a href="#19b7">3. Archive Emails with Specific Labels After X Days</a><br>· <a href="#9514">4. Snooze Emails and Remind Yourself Later</a><br>· <a href="#b046">5. Send a Daily Summary of Important Emails to Slack</a><br>· <a href="#2098">6. Auto-Reply to Weekend Emails</a><br>· <a href="#acb7">Bonus: How to Schedule a Google Apps Script</a><br>· <a href="#f5f6">Final Thoughts: Automate and Relax</a></p><h3>Getting Started with Google Apps Script for Gmail Automation</h3><p>Google Apps Script is a cloud-based scripting platform designed to automate tasks across Google products like Gmail, Drive, and Sheets. It’s easy to use and integrates seamlessly with your Gmail account.</p><p>To create your first script:</p><ol><li>Open the <a href="https://script.google.com/">Google Apps Script Editor</a>.</li><li>Click <strong>New Project</strong>.</li><li>Write your script in the editor and click <strong>Save</strong>.</li><li>You can test your script by clicking <strong>Run</strong>.</li></ol><p>You’ll need to authorize your script the first time you run it, so don’t worry if you see an authorization prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvsQHClpFDYx6ULZJnCxOA.png" /></figure><h3>1. Automatically Delete Emails from the Promotions Tab</h3><p>The <strong>Promotions</strong> tab in Gmail is often full of marketing emails, special offers, and newsletters. While some are useful, many pile up over time and clutter your inbox. With this simple script, you can automatically delete old emails in the <strong>Promotions</strong> category that are older than a certain number of days.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/25d5651e573e016049860bd3b6e0832e/href">https://medium.com/media/25d5651e573e016049860bd3b6e0832e/href</a></iframe><h3>2. Mark Unread Emails from Important Senders as “Important”</h3><p>You never want to miss an email from key contacts like your manager, clients, or teammates. This script allows you to mark unread emails from specific senders as “<strong><em>Important</em></strong>” automatically, so they stand out in your inbox.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac163b7ea1f2fddd7fb6a67ea9df92e4/href">https://medium.com/media/ac163b7ea1f2fddd7fb6a67ea9df92e4/href</a></iframe><h3>3. Archive Emails with Specific Labels After X Days</h3><p>You may want to archive emails that you’ve already labeled for future reference, but which don’t need to sit in your inbox indefinitely. This script automatically archives emails labeled with a specific tag (like “<strong><em>Project</em></strong>”) once they’re older than a certain number of days.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ed97d3a2da698c76794f15490e69e6c/href">https://medium.com/media/9ed97d3a2da698c76794f15490e69e6c/href</a></iframe><h3>4. Snooze Emails and Remind Yourself Later</h3><p>Not all emails need to be dealt with right away. Sometimes, it’s better to snooze them and revisit them when the timing is right. This script moves emails with specific keywords (like “<strong><em>follow up</em></strong>” or “<strong><em>later</em></strong>”) out of your inbox and brings them back after a set number of days.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16e5e30f72eac5bf6cbe08bb33b2a42b/href">https://medium.com/media/16e5e30f72eac5bf6cbe08bb33b2a42b/href</a></iframe><h3>5. Send a Daily Summary of Important Emails to Slack</h3><p>Need a quick way to stay updated on important emails without checking your inbox all the time? This script sends a summary of <strong><em>unread</em></strong>, <strong><em>important</em></strong> emails to your Slack channel each day, keeping you in the loop without the distraction of frequent inbox checks.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/667f10d26c378a5b68a9794a985f4da0/href">https://medium.com/media/667f10d26c378a5b68a9794a985f4da0/href</a></iframe><h3>6. Auto-Reply to Weekend Emails</h3><p>Work-life balance is crucial, and sometimes that means letting people know you’re off the clock. Use this script to automatically send an out-of-office reply to any email received over the weekend, so you can take a break without guilt.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/10cce7780d205dbd88cb2f5f5e99cbad/href">https://medium.com/media/10cce7780d205dbd88cb2f5f5e99cbad/href</a></iframe><h3>Bonus: How to Schedule a Google Apps Script</h3><p>Now that you’ve learned how to create powerful scripts to organize your Gmail inbox, it’s time to <strong>automate</strong> them. The true magic of Google Apps Script lies in its ability to run scripts on a schedule without any manual effort. Whether it’s clearing your Promotions tab every day, snoozing emails for later, or sending daily summaries, setting up time-based triggers ensures that these tasks happen automatically.</p><p>Here’s a step-by-step guide to scheduling your Gmail automation scripts:</p><h4>1. Open the Script Editor</h4><p>Once you’ve written/saved your script, follow these steps to schedule it:</p><ol><li>In the Apps Script Editor, click the clock icon in the left toolbar. This is the <strong>Triggers</strong> section.</li><li>If this is your first time scheduling a trigger, you’ll see a button labeled <strong>“Add Trigger”</strong>. Click it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KoshNI8-GWzDeR3ZoNFstQ.png" /></figure><h4>2. Set the Function to Run</h4><p>After clicking <strong>“Add Trigger”</strong>, a form will pop up allowing you to define the trigger settings:</p><ol><li><strong>Choose which function to run</strong>: From the dropdown menu, select the function you want to schedule (for example, deleteOldPromotionsEmails, markImportantUnreadEmails, etc.).</li><li><strong>Select event source</strong>: Choose <strong>Time-driven</strong> from the dropdown. This option allows you to schedule the function to run at regular intervals.</li></ol><h4>3. Choose How Often the Script Should Run</h4><p>Once you’ve selected <strong>Time-driven</strong> as the event source, you can specify the frequency by <strong>selecting the type of time-based trigger.</strong> You’ll see options such as <strong>a Minutes</strong>, <strong>Hour</strong>, <strong>day</strong>, <strong>Week</strong>, or <strong>Month timer</strong>.</p><ul><li><strong>Daily</strong>: If you want the script to run every day (e.g., to clear promotional emails every day).</li><li><strong>Weekly</strong>: Perfect for scripts that need to run less frequently, like sending a weekly email summary.</li><li><strong>Specific time of day</strong>: For example, you can set your script to run every day at 8 a.m. to prepare your inbox for the day.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*F_sN15W58El_B46JnXE9Cw.png" /></figure><h4>4. Save the Trigger</h4><p>After choosing the frequency and function, click <strong>Save</strong>. You’ll see the trigger added to your list of active triggers.</p><h4>5. Monitor and Manage Triggers</h4><p>At any time, you can return to the <strong>Triggers</strong> section to:</p><ul><li>View your active triggers.</li><li><strong>Edit</strong> or <strong>delete</strong> them as needed.</li><li><strong>Add new triggers</strong> for additional scripts you want to automate.</li></ul><h4>6. Authorizing the Script (First Time Only)</h4><p>The first time you schedule a script, Google will ask for permission to access your Gmail account and perform actions such as reading or modifying your inbox. Simply follow the prompts to authorize the script.</p><h3>Final Thoughts: Automate and Relax</h3><p>By scheduling your scripts, you no longer have to worry about maintaining your Gmail inbox manually. Whether it’s deleting emails, archiving messages, or sending summaries to Slack, Google Apps Script can handle it all while you focus on more important tasks.</p><p>Happy scripting, and here’s to a more organized inbox!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd015ca9ee0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering PySpark: Top 5 Built-in Functions for Efficient Big Data Analysis]]></title>
            <link>https://levelup.gitconnected.com/mastering-pyspark-top-5-built-in-functions-for-efficient-big-data-analysis-30dd9d3b241a?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/30dd9d3b241a</guid>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-processing]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 16:47:24 GMT</pubDate>
            <atom:updated>2024-09-24T16:47:24.486Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to Use PySpark’s Powerful Functions to Solve Real-World Business Problems</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-zSoXguC2XP0CvIr57e88Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@summer2333?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Summer He</a> on <a href="https://unsplash.com/photos/Dickx6px61M?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>In today’s data-driven world, companies generate vast amounts of data daily. Effectively processing and analyzing this data is crucial for making informed business decisions, improving operations, and gaining valuable insights. <a href="https://spark.apache.org/docs/latest/api/python/index.html">PySpark</a>, the Python API for <a href="https://spark.apache.org/">Apache Spark™</a>, simplifies working with large datasets by offering powerful built-in functions that make data transformation and analysis efficient.</p><p>In this blog, we’ll dive into some of the most popular built-in functions in PySpark, how they are used in real business scenarios, and why they matter whether you’re a technical expert or someone exploring big data solutions for the first time.</p><h3>Business Use Case: Analyzing E-Commerce Sales Data</h3><p>Imagine you’re running a successful e-commerce business. Understanding your sales data is essential to identifying trends, improving customer experience, and boosting profits. In this example, let’s say the company wants to analyze sales data from 2023 with the following goals:</p><ul><li>Filter transactions that occurred in 2023.</li><li>Aggregate sales to calculate monthly revenue per customer.</li><li>Handle missing customer satisfaction scores.</li><li>Transform the dataset to anonymize customer details.</li><li>Join sales data with customer demographics for deeper analysis.</li></ul><p>To illustrate, we’ll walk through each step using PySpark in <a href="https://docs.databricks.com/en/notebooks/index.html">Databricks Notebook</a>, which already had a spark session built in. Let’s start by generating a fake dataset using the Python Faker library. If you are running on a different platform, you will need to create your own spark session.</p><p>Here is the code to generate a fake transaction table:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09dd77881c5aef32c763d355470da84b/href">https://medium.com/media/09dd77881c5aef32c763d355470da84b/href</a></iframe><p>Take a glance at the generated dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTOVJ0B2wr2waO_caDvWfQ.png" /></figure><h3>Step 1: Filtering Data with filter() and where()</h3><p>To analyze only the sales from <strong>2023</strong>, we can filter out unnecessary data using PySpark filter() and where() functions. These functions allow you to extract specific rows based on a given condition.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fc37c9d38545fefed2420e0ee5f235b/href">https://medium.com/media/1fc37c9d38545fefed2420e0ee5f235b/href</a></iframe><ul><li><strong>Why It Matters:</strong> Filtering data helps businesses focus on relevant information, making it easier to analyze trends and inform decision-making.</li><li>Learn more about <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.filter.html">filter</a>() and <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.where.html">where()</a></li></ul><h3>Step 2: Aggregating Sales with groupBy() and agg()</h3><p>Now that we have the sales for 2023, the next step is to calculate how much each customer spent monthly. The groupBy() function groups data by one or more columns (like customer_id), while agg() applies aggregation functions (such as sum() or avg()).</p><p>Here’s how to aggregate sales data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0258ec4c69fd89aa0425added4ecc80/href">https://medium.com/media/f0258ec4c69fd89aa0425added4ecc80/href</a></iframe><ul><li><strong>Why It Matters:</strong> Aggregation allows businesses to spot patterns in customer spending behavior and identify high-value customers or seasonal trends.</li><li>Learn more about <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.groupBy.html">groupBy()</a> and <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.agg.html">agg()</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*djk6oQ0pxDb-uTI6dI2UxQ.png" /><figcaption>result of groupBy()</figcaption></figure><h3>Step 3: Handling Missing Data with fillna() and dropna()</h3><p>Real-world data is often messy, and missing values are common. PySpark provides fillna() to replace missing values with a default and dropna() to remove rows with missing values.</p><p>Here’s how you can handle missing customer satisfaction scores by filling them with a default value, where I was applying a 5-star score for all the missing scores:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6726d0c5d0315f8bf1f9bcb0129b41f5/href">https://medium.com/media/6726d0c5d0315f8bf1f9bcb0129b41f5/href</a></iframe><ul><li><strong>Why It Matters:</strong> Properly handling missing data ensures the accuracy of analysis and helps businesses avoid incorrect conclusions.</li><li>Learn more about <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.fillna.html">fillna()</a> and <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.dropna.html">dropna()</a></li></ul><h3>Step 4: Data Transformation with select() and withColumn()</h3><p>Data transformation is essential for preparing data for analysis or feature engineering. PySpark’s select() function helps extract specific columns, while withColumn() creates or modifies columns in a dataset.</p><p>In this scenario, to comply with privacy regulations, we’ll anonymize customer IDs by replacing them with generated UUIDs:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6fa105d703f7dffb1cf84e57feb4615/href">https://medium.com/media/e6fa105d703f7dffb1cf84e57feb4615/href</a></iframe><ul><li><strong>Why It Matters:</strong> Data transformation enables businesses to adapt data to their needs, whether for compliance or optimization, while still preserving valuable insights.</li><li>Learn more about <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.select.html">select()</a> and <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.withColumn.html">withColumn()</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*HhYCKXu4VMWcJwcCVsHChQ.png" /><figcaption>result of anonymization</figcaption></figure><h3>Step 5: Joining Datasets with join()</h3><p>Finally, to enrich the sales data, we’ll join it with customer demographic profiles. This can help the company analyze trends based on age, gender, and location to refine marketing strategies.</p><p>Here’s how you can join the sales data with customer profiles:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bcc647d79e181bb567755899e49288c/href">https://medium.com/media/9bcc647d79e181bb567755899e49288c/href</a></iframe><ul><li><strong>Why It Matters:</strong> Joining datasets provides deeper insights by combining data from multiple sources. This is critical for businesses that need a comprehensive view of their customers.</li><li>Learn more about <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.join.html">join()</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2k1Cb6JX3BPU90O92dibA.png" /><figcaption>result of join()</figcaption></figure><h3>Conclusion</h3><p>In this blog, we walked through a practical business use case of analyzing e-commerce sales data using PySpark’s top built-in functions. Whether filtering data, aggregating results, handling missing values, transforming columns, or joining datasets, PySpark provides the tools businesses need to unlock the full potential of their big data.</p><p>By mastering these functions, you can start solving real-world business problems and uncover insights that drive growth and success.</p><h3>P.S.</h3><p>I’ve assembled a collection of my PySpark tutorials, all designed to help you master various aspects of PySpark. If you have specific topics or techniques you’d like me to prioritize in my future articles, please feel free to suggest them. Your feedback is invaluable. If you found this PySpark tutorial insightful and beneficial, I encourage you to follow me on Medium for more in-depth content. Enjoy your journey through the world of PySpark! Happy learning and coding!</p><p><a href="https://medium.com/@yoloshe302/list/21464c4d739a">Pyspark with Databricks</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30dd9d3b241a" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/mastering-pyspark-top-5-built-in-functions-for-efficient-big-data-analysis-30dd9d3b241a">Mastering PySpark: Top 5 Built-in Functions for Efficient Big Data Analysis</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero-Shot vs. Few-Shot Learning: Simplifying LLM Use for Data Scientists]]></title>
            <link>https://levelup.gitconnected.com/zero-shot-vs-few-shot-learning-simplifying-llm-use-for-data-scientists-7644982ff246?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7644982ff246</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 01:36:19 GMT</pubDate>
            <atom:updated>2024-04-01T01:36:19.197Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discover how to apply LLMs to solve data science tasks</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*QLDt3Umpcq0Pz5qNtJAw0g.png" /><figcaption>Simplified version by author with source on <a href="https://www.oreilly.com/library/view/natural-language-processing/9781098136789/ch09.html">OREILLY</a></figcaption></figure><p>Introducing zero-shot and few-shot learning through <a href="https://en.wikipedia.org/wiki/Large_language_model">Large Language Models</a> (LLMs) like <a href="https://openai.com/">OpenAI</a>’s GPT and <a href="https://huggingface.co/docs/transformers/en/index">Hugging Face’s Transformer</a> models has been a game-changer for Data Science. These methodologies empower AI to handle tasks beyond their explicit training, offering data scientists the power to navigate complex datasets with a mix of intuition and accuracy. By exploring a real business scenario<strong> </strong>of each learning approach, we will walk through how each method works and its significance in solving challenges within data science.</p><p><strong>Note</strong>: This article delves into the distinctions between zero-shot and few-shot learning via examples. Although I include example code for practical insights, running these examples requires an OpenAI API key. However, you don’t need an API key — just keep reading and grasp the underlying concepts.</p><p>Quick Steps to generate an OpenAI key:</p><ol><li>You need to <a href="https://platform.openai.com/signup">create an account</a> on OpenAI.</li><li>Generate an OpenAI <a href="https://platform.openai.com/account/api-keys">API key here</a>.</li></ol><p><strong>IMPORTANT</strong>: Keep your OpenAI API key confidential to prevent unauthorized usage charges.</p><h3>Understanding Zero-Shot Learning (ZSL)</h3><p><a href="https://en.wikipedia.org/wiki/Zero-shot_learning">Zero-shot learning</a> (ZSL) enables models to interpret and respond to tasks they haven’t been explicitly trained on, leveraging generalized knowledge acquired during training. The idea appeared before modern LLMs, but recent advances in LLMs have made zero-shot learning much more flexible and powerful, especially for data scientists facing unique or evolving data challenges. Let’s dive deep into a real-world use case as below.</p><h4>Business Use Case: Customer Feedback Analysis</h4><p><strong>Scenario</strong>: An e-commerce platform seeks to automate the analysis of diverse customer feedback. The goal is to categorize feedback into distinct themes such as Product Quality, Customer Service, Pricing, Technical Support, and Delivery to better understand customer sentiments and identify areas for improvement. This process is currently <strong>manual, time-consuming, and prone to inconsistency</strong>.</p><p><strong>Solution</strong>: Implementing a zero-shot learning approach using the OpenAI API to automatically categorize customer feedback into predefined themes, offering a scalable solution without the need for task-specific model training.</p><figure><img alt="https://gist.github.com/Hehehe421/1af94feb452e7415cf13787d97eda584" src="https://cdn-images-1.medium.com/max/1024/1*uan1tsxj3-gcVairHsbZ_A.png" /><figcaption>Image by Author (<a href="https://gist.github.com/Hehehe421/1af94feb452e7415cf13787d97eda584">source</a>)</figcaption></figure><p>In the above example, you can see I only specify all the choices of the labels and then leverage the general knowledge that GPT acquired during training to help me solve the customer feedback analysis problem The detailed code can be found <a href="https://gist.github.com/Hehehe421/1af94feb452e7415cf13787d97eda584">here</a>. Let’s now take a look at some examples of the result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1834c29f7f560e7a46eaf2eb392be872/href">https://medium.com/media/1834c29f7f560e7a46eaf2eb392be872/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pKU1Cb6hszChbGietIxew.png" /><figcaption>Results of the zero-shot learning</figcaption></figure><p>Wow, it looks great! we successfully leveraged zero-shot learning on a classification problem without any model training.</p><h3>Understanding Few-Shot Learning</h3><p>In <a href="https://huggingface.co/blog/few-shot-learning-gpt-neo-and-inference-api#what-is-few-shot-learning">few-shot learning</a> (FSL) tasks, you give the model instructions, and a few query-response examples of how to follow that instruction, and then adapt it to a new task. This allows models to be reused across various applications, enabling data scientists to tackle specialized problems efficiently. Let’s also dive deep into a real-world use case as below.</p><h4>Business Use Case: Product Feature Extraction from Reviews</h4><p><strong>Scenario: </strong>Again, the same e-commerce platform aims to improve its product recommendation system by understanding the <strong>specific features</strong> customers mention in their reviews. However, reviews are diverse and cover numerous aspects, from battery life in electronics to comfort in clothing. <strong>Manually tagging</strong> these features for each product category is <strong>impractical</strong> due to the sheer volume of reviews.</p><p><strong>Solution</strong>: By providing a few annotated examples for each product category, the model learns to identify and extract relevant features from new, unannotated reviews. The few-shot learning approach enables dynamic updating of product recommendations and insights based on customer feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_z5w3LiuMhOvBHnNCyBdw.png" /><figcaption>Image by Author (<a href="https://gist.github.com/Hehehe421/4c1e619c28845544baa7bed3b258651a">source</a>)</figcaption></figure><p>In the above example, you can see I provided three examples as instructions to help GPT understand my specific task of extracting the product features. The detailed code can be found <a href="https://gist.github.com/Hehehe421/4c1e619c28845544baa7bed3b258651a">here</a>. Let’s now take a look at some examples of the result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93ee0dcd103ae04a08bdf80f3baea6a6/href">https://medium.com/media/93ee0dcd103ae04a08bdf80f3baea6a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*27gsNCRjmwljfecdsOZFLQ.png" /><figcaption>Results of the zero-shot learning</figcaption></figure><p>It’s not bad, but in the last review, the customer discussed multiple product features and made comparisons with another product. However, the model seems to struggle to extract the relevant features. <em>In practical applications, few-shot learning can be somewhat capricious, and require significant prompt engineering to get good and reliable results.</em></p><h3>Navigating the Choice in Data Science</h3><p>The selection between zero-shot and few-shot learning methods depends on the specific needs of the data science task and the data assets available at hand. Here’s a simple guide to help you decide which approach might be more suitable for your needs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*QLDt3Umpcq0Pz5qNtJAw0g.png" /><figcaption>Simplified version by author with source on <a href="https://www.oreilly.com/library/view/natural-language-processing/9781098136789/ch09.html">OREILLY</a></figcaption></figure><ul><li><strong>Zero-shot learning</strong> is ideal when lacking task-specific data, enabling rapid prototyping and broad applicability with pre-existing model knowledge.</li><li><strong>Few-shot learning</strong> excels when high-quality examples are available, needing higher accuracy, specificity, or adaptation to specialized domains.</li></ul><p>Experimentation with both approaches is often beneficial due to task and data variability, allowing for a direct comparison of their performance and suitability.</p><h3>Conclusion</h3><p>Through the insights shared in this guide, I hope you gain a comprehensive understanding of both zero-shot learning and few-shot learning. With these concepts, I hope you’re ready to leverage the vast capabilities of Large Language Models (LLMs) in your data science projects. Welcome to the adventure of exploration in data science — happy exploring! 🚀📊</p><h3>References</h3><p>[1] <a href="https://www.oreilly.com/search?q=author:%22Lewis%20Tunstall%22">Lewis Tunstall</a>, <a href="https://www.oreilly.com/search?q=author:%22Leandro%20von%20Werra%22">Leandro von Werra</a>, <a href="https://www.oreilly.com/search?q=author:%22Thomas%20Wolf%22">Thomas Wolf</a>: <a href="https://www.oreilly.com/library/view/natural-language-processing/9781098136789/?_gl=1*mjc3zc*_ga*Mzc3MzAwODc0LjE3MTE1Njc1NTY.*_ga_092EL089CH*MTcxMTU5NjkyNi4yLjAuMTcxMTU5NjkyOC41OC4wLjA.">Natural Language Processing with Transformers, Revised Edition</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7644982ff246" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/zero-shot-vs-few-shot-learning-simplifying-llm-use-for-data-scientists-7644982ff246">Zero-Shot vs. Few-Shot Learning: Simplifying LLM Use for Data Scientists</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evolving as a Writer: Insights from My 2-Year Journey on Medium]]></title>
            <link>https://medium.com/@yoloshe302/evolving-as-a-writer-insights-from-my-2-year-journey-on-medium-e55a6b0b722d?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e55a6b0b722d</guid>
            <category><![CDATA[writing-tips]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[medium]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 01:04:21 GMT</pubDate>
            <atom:updated>2024-03-19T01:04:21.386Z</atom:updated>
            <content:encoded><![CDATA[<h4>Keep writing, keep growing, and let the journey unfold</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwQBz6tf8iVKdT5icBGMTg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@joshgordon?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Josh Gordon</a> on <a href="https://unsplash.com/photos/woman-walking-on-road-during-daytime-fzHmP6z8OQ4?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Embarking on a Medium journey in January 2022, I was a budding writer driven by a deep-seated curiosity and a fervent passion for knowledge sharing. Over the course of two transformative years, this adventure has not only enriched my life but also provided a vibrant platform for expressing my thoughts to a broader audience. This endeavor, while fraught with challenges, has been a powerful testament to the virtues of persistence, the pursuit of learning, and the sheer joy of sharing knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32ySkHfWTeDDbWqrbm3qOA.png" /><figcaption>Milestones on Medium — Image by Author</figcaption></figure><p>My initiation into the world of Medium was propelled by my professional background in data science and my enthusiasm for technology. The prospect of writing for Towards Data Science, one of Medium’s most esteemed publications and a resource I had long admired, further fueled my ambition. My objective was clear: improving my English writing and sharing valuable insights with a wider audience.</p><h4>The Road to Growth: Beyond the Numbers</h4><p><strong>Lesson 1: Don’t be upset by stats/numbers, discover your unique strength</strong></p><p>The milestone of joining the Medium Partner Program in May 2023 marked a significant point in my journey, signaling not just an uptick in followers but a deeper, more meaningful engagement with my readers. The path to this achievement was steep, marred by initial struggles for visibility. It took <strong>over a year and a half</strong> to amass my first hundred followers.</p><p>The beginning of the journey was riddled with moments of self-doubt and disappointment — seeing articles I poured my heart into go unnoticed initially was disheartening. Yet, it was these very challenges that fueled my resolve to persist and strive for improvement. Committing to a monthly publication schedule, I embarked on a quest for self-improvement, analyzing successful articles and integrating those insights into my work.</p><p><strong>Lesson 2: Crafting High-Quality Content</strong></p><p>The journey toward crafting high-quality content is multifaceted and subtle. Quality is determined not by the sheer number of hours dedicated to writing an article but by its significance and influence on the intended audience. My focus on serving <strong>data professionals</strong> guided me to emphasize clarity, utility, and simplicity in my writing. <em>Articles structured clearly, with practical code examples and visual aids to simplify complex ideas, deeply engaged my audience, as evidenced by an impressive read ratio exceeding </em><strong><em>40%</em></strong><em>. </em>Moreover, this process highlighted the value of maintaining a consistent format and cultivating a unique voice, both of which have significantly bolstered reader engagement and loyalty. So, consider who your intended audience is and ask yourself, what content would you find compelling if you were in their shoes?</p><p><strong>Lesson 3: The Power of Continuous Thought</strong></p><p>While I am not one of the top writers on Medium, this two-year odyssey of reflection and focused effort has honed my ability to think critically and continuously. In an era dominated by fleeting content, the discipline of writing has fortified my capacity for prolonged thought and strategic foresight, enriching both my professional endeavors and personal worldview.</p><h3>A Journey of Passion and Discovery</h3><p>Among the plethora of articles I’ve penned, one holds a special place in my heart: an intricate guide on using Python to create custom star maps for stargazing adventures. This article, born out of sheer passion and countless hours of dedication, not only signifies my love for the cosmos but also embodies the essence of what I enjoy most — melding technology with the natural wonder of the night sky.</p><p><a href="https://levelup.gitconnected.com/how-to-use-python-to-create-custom-star-maps-for-your-next-stargazing-journey-9908b421f30e">How to Use Python to Create Custom Star Maps for Your Next Stargazing Journey</a></p><p>On the flip side, the winds of popularity favored my exploration into the world of Sankey diagrams for customer journey mapping. This article resonated with a vast audience, becoming my most-read piece, and it’s thrilling to see my work appreciated on such a scale.</p><p><a href="https://medium.com/@yoloshe302/sankey-diagram-for-the-customer-journey-24bccb5f0503">Visualizing the Customer Journey with Python’s Sankey Diagram: A Plotly Example</a></p><p>Recognition from Medium and esteemed publications like Towards Data Science has been both humbling and motivating. These milestones, including being promoted by Medium and published by <a href="https://towardsdatascience.com/"><strong>Towards Data Science</strong></a>, have been highlights of my writing journey, underscoring the value of quality content and the platform’s ability to amplify voices.</p><p><a href="https://towardsdatascience.com/ultimate-hive-tutorial-essential-guide-to-big-data-management-and-querying-ce9ffe77a799">Ultimate Hive Tutorial: Essential Guide to Big Data Management and Querying</a></p><h3>A Message of Hope and Perseverance</h3><p>To those at the inception of their writing journey, feeling daunted by the mountain ahead, remember: <strong>persistence</strong> is key. Every article is a brick in the edifice of your growth as a writer. The journey may be fraught with challenges, but the rewards of self-expression and connection to the community are immeasurable.</p><p>Writing is not just about numbers or immediate gratification; it’s a labor of love, a medium for sharing your unique perspective with the world. Stay persistent, reflect on your journey, learn from the community, and most importantly, believe in your voice.</p><p>As we move forward, let us continue to inspire and be inspired, sharing our unique perspectives and collectively enriching our understanding. The journey of writing is a marathon of continuous learning and the joy found in the act of sharing knowledge. Keep writing, keep growing, and let the journey unfold.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e55a6b0b722d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding GenAI: Your Interactive Mindmap and Learning Compass]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/decoding-genai-your-interactive-mindmap-and-learning-compass-6cb1e4a231bc?source=rss-c98d2c413ea1------2"><img src="https://cdn-images-1.medium.com/max/1539/1*-7AGopDEnhu9S1bK7KuNpg.png" width="1539"></a></p><p class="medium-feed-snippet">From Terms to Trends: A Tailored Guide to Deep Dive into Generative AI</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/decoding-genai-your-interactive-mindmap-and-learning-compass-6cb1e4a231bc?source=rss-c98d2c413ea1------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/decoding-genai-your-interactive-mindmap-and-learning-compass-6cb1e4a231bc?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cb1e4a231bc</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 21:07:19 GMT</pubDate>
            <atom:updated>2023-12-27T21:47:24.150Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Ultimate Hive Tutorial: Essential Guide to Big Data Management and Querying]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/ultimate-hive-tutorial-essential-guide-to-big-data-management-and-querying-ce9ffe77a799?source=rss-c98d2c413ea1------2"><img src="https://cdn-images-1.medium.com/max/1344/1*4GXn6TO2rqCqDLFXCTe61Q.png" width="1344"></a></p><p class="medium-feed-snippet">Unlocking the power of Hive: your in-depth guide with visual mindmap Insights</p><p class="medium-feed-link"><a href="https://medium.com/data-science/ultimate-hive-tutorial-essential-guide-to-big-data-management-and-querying-ce9ffe77a799?source=rss-c98d2c413ea1------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/ultimate-hive-tutorial-essential-guide-to-big-data-management-and-querying-ce9ffe77a799?source=rss-c98d2c413ea1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce9ffe77a799</guid>
            <category><![CDATA[data-management]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[hive]]></category>
            <category><![CDATA[mindmap]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Summer]]></dc:creator>
            <pubDate>Fri, 10 Nov 2023 19:57:26 GMT</pubDate>
            <atom:updated>2023-11-10T19:57:26.304Z</atom:updated>
        </item>
    </channel>
</rss>