<?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 Hemapriya on Medium]]></title>
        <description><![CDATA[Stories by Hemapriya on Medium]]></description>
        <link>https://medium.com/@priyahemaa1512?source=rss-3dc8bf2bfb65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tFLHeKl_z3LSGZ3AVLyL8w.jpeg</url>
            <title>Stories by Hemapriya on Medium</title>
            <link>https://medium.com/@priyahemaa1512?source=rss-3dc8bf2bfb65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:14:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyahemaa1512/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[Boost your AI Applications with RAG: AGI at its best!]]></title>
            <link>https://medium.com/@priyahemaa1512/boost-your-ai-applications-with-rag-agi-at-its-best-307df4e421bf?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/307df4e421bf</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Thu, 27 Jun 2024 17:29:31 GMT</pubDate>
            <atom:updated>2024-06-27T17:29:31.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KRuXXLnrTpFhcb4L" /></figure><p>Hey there! Quick question. Have you ever been reading a news article and gotten completely lost 😕 ? You absolutely forgot what the historic day, the title page talked about once you reached the sports section? Haha, I feel you because I’ve been there. Maybe it’s because it talks about something that happened long time ago or mentions someone you don’t remember.</p><p>What if I say there’s a<strong> memory booster</strong> that helps you look at stuff when you can’t remember all the little updated details? That’s where <strong>RAG</strong> comes in 💪🏼, the ultimate detective in the AI world, helping LLMs understand the bigger picture.</p><p><strong>RAG: The Memory Booster</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KOgbFEJO9moDQFUO29lewA.png" /></figure><p>Imagine you have a super-smart bot assistant named NewsSage, who is going to help you with summarising, skimming, and detailing through the newspaper. NewsSage can access and process information at lightning speed, but sometimes he struggles with<strong> the “why” behind things</strong>. This is a potential drawback on the path to Artificial General Intelligence (AGI), where machines can understand and learn any intellectual task a human can.</p><p>Think of AGI as the ultimate goal — creating applications as intelligent and adaptable as humans. LLMs (Large Language Models) are stepping stones on this path where they can learn vast amounts of language data and generate creative text formats, but often lack the ability to connect the dots and understand the context of information.</p><p>This is where RAG comes in, acting as a memory booster. It’s like giving our NewsSage a special magnifying glass that helps him see the bigger picture and the relationships between different pieces of information.</p><p><strong>Why RAG ?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-FQ6rIyeFag6dIUHXzy_w.png" /></figure><p>Imagine you’re engrossed in a news article about a celebrity winning a prestigious award. But wait, the name rings no bells! You have no clue who this person is, and suddenly, the whole story feels confusing. Here’s where RAG steps in, acting like a smart detective helping models bridge the knowledge gap and make sense of the news.</p><p>RAG isn’t just a fancy acronym; it stands for Retrieval-Augmented Generation. Think of it as a three-step process that empowers LLMs to become information detectives:</p><ul><li><strong>Decoding the Clues</strong></li></ul><p>Imagine the news story about a celebrity, who might be a singer — is like a crime scene with missing context. RAG acts like a detective, exploring a vast digital library of information. This library includes websites, articles, videos, and even social media posts. It’s like RAG diving through mountains of evidence, searching for anything related to the singer mentioned in the story.</p><ul><li><strong>Connecting the Dots</strong></li></ul><p>Once RAG gathers a pool of relevant information, like a skilled detective piecing together the clues. In our scenario where the celebrity is a singer, RAG might find articles about their hit songs, past awards, or even interviews. By analyzing these clues, RAG starts to build a profile of the singer, understanding their background, career achievements, and why they might be deserving of the award.</p><ul><li><strong>Filling the Gaps</strong></li></ul><p>With all the retrieved information neatly organized, RAG bridges the knowledge gap for the model. Now, it knows who the singer is, their significance in the music industry, and why their win holds merit. This allows the model to not only understand the news but also potentially generate more insightful summaries or even answer follow-up questions you might have about the singer’s career.</p><p><strong>Why RAG matters?</strong></p><p>So, why is RAG such a big deal? Here’s the picture:</p><ul><li><strong>No More Wild Guesses:</strong> Our NewsSage won’t be making random guesses anymore. RAG ensures his answers are based on real information, just like a detective relies on evidence!</li><li><strong>Faster and smarter:</strong> RAG helps NewsSage learn more efficiently. Instead of starting from scratch every time, he can use the library to find what he needs, making him a quicker learner.</li><li><strong>Understanding the Whole Story:</strong> With RAG, NewsSage can understand how things are connected. This helps him answer your questions in a way that makes sense, considering all the relevant details.</li><li><strong>Better Personalisation: </strong>By understanding your past interactions and the context of your current query, RAG helps NewsSage tailor its responses to your specific needs. This could mean providing in-depth explanations for complex topics or offering simplified summaries for beginners.</li><li><strong>Keeping Up with the World: </strong>By continuously accessing and analyzing the ever-growing online library, RAG ensures NewsSage’s knowledge base stays up-to-date. This allows us to provide summaries and explanations that reflect the latest developments, making it a reliable source of information in our fast-paced world.</li></ul><p><strong>The Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0EayIC0nEYkOO7zE" /></figure><p>This diagram represents an architecture involving a Query, an Embedding Model, a Large Language Model (LLM), and a database to generate a response. Here’s a detailed explanation of each component and the overall process:</p><p><strong>Query:</strong> The process starts with a user input, in this case, a question: “How many Oscars was bagged by the singer?”. This query is the trigger for the subsequent steps in the architecture.</p><p><strong>Embedding Model: </strong>The query is processed by an embedding model which converts the query into a numerical format, called query embeddings. These embeddings capture the semantic meaning of the query, making it easier to match with relevant information in the database. This step is crucial for transforming the natural language query into a format that can be effectively used for searching the database.</p><p><strong>Vector Database:</strong> The embeddings generated by the embedding model are used to search the vector database that contains various types of information such as hit lists, songs, awards, accolades, albums, and more. It retrieves the relevant information based on the query embeddings.</p><p><strong>LLM (Large Language Model): </strong>The retrieved information from the database is then combined with the original query and fed into the LLM.</p><p>The LLM processes the prompt (which includes the original query and the retrieved context) to generate a coherent and contextually accurate response. It ensures that the response is framed in natural language, making it easily understandable to the user.</p><p><strong>Response: </strong>The final output is a natural language response that answers the original query. In this case, the response is: “The singer has won 2 Oscars and one Filmfare award.”</p><p>Overall, RAG leverages retrieved information to improve the accuracy and coherence of the generated answers. It combines techniques from information retrieval and natural language generation to create a powerful question-answering system.</p><p><strong>NewsSage just got a major upgrade! RAG, the memory booster, helps him understand the bigger picture behind every news story. With RAG, NewsSage becomes a smarter, faster, and more reliable source of information, keeping you informed in our fast-paced world.</strong></p><p><strong>Get ready for an exciting future where AI isn’t just reading the news, but truly understanding the stories that shape our world.</strong></p><p>Happy learning 🙌🏻 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=307df4e421bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling the Daily Delights of Gen AI : Exploring Everyday Efficiency Boosters]]></title>
            <link>https://medium.com/@priyahemaa1512/unraveling-the-daily-delights-of-gen-ai-exploring-everyday-efficiency-boosters-043f6ede1edf?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/043f6ede1edf</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 17:47:56 GMT</pubDate>
            <atom:updated>2024-03-26T11:29:09.520Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unraveling the daily delights of Gen AI: Exploring everyday efficiency boosters</h3><figure><img alt="Technology in Daily life" src="https://cdn-images-1.medium.com/max/1024/0*E1KUbesodTuvdJrN.jpg" /><figcaption>Image Source: GeekerBytes</figcaption></figure><p>Multi-tasking is indeed a skill. Gen AI, with all its abilities, has made it easily possible. Gen AI has revolutionized technology interaction, from writing emails to seamlessly juggling tasks using Chrome tab extensions. Follow along to learn about the magic of Gen AI and how it enables us to work more efficiently 😉.</p><p>✔️ <strong>Enhanced features of Chrome</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aD-2-uiv9eQwmU5q" /><figcaption>Image source: Google</figcaption></figure><p>Google Chrome has got new Tab Organizer feature that when you are working on multiple tabs and want it to be self-organized. It will automatically suggest and create groups based on the tabs open in the browser. Chrome will even suggest names and emojis for these groups to make them easy to find later.</p><p>✔️ <strong>Customize with AI themes in Chrome</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Df5O7sMerXQjRFb" /><figcaption>Image source: Google</figcaption></figure><p>A text-to-image diffusion model is deployed to Chrome to personalize the browser with our own generated AI theme. No prior prompt engineering knowledge is required to create the themes. We can specify just the subject, color, and mood. For example, Aurora Lights that is animated with a serene mood as depicted in the picture.</p><p>✔️ <strong>Advanced Google Search features</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ztS9hbf_0sQWKsRv" /><figcaption>Image source: Google</figcaption></figure><p>When we search for a product in Google, we do see a whole lot of information related to the product, related links, ads etc. We have advanced search responses now where we will be able to see important details and product options right away, including descriptions, reviews, prices, and images. This feature uses Gen AI and is based on Google’s massive Shopping Graph, which has over 35 billion product listings. It’s updated every hour with fresh information, so we always get reliable results for shopping/search needs.</p><p><strong>✔️ Scribble or Circle to search</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PIy2LWbbaRO28ynX-EoBg.png" /><figcaption>Image source: Google</figcaption></figure><p>A simple gesture on the touch screen is now enough to search for images, text, or videos right on the Android phone. We can just circle or highlight or scribble or tap on anything to find info about. Circle to Search was made available globally on selected premium Android smartphones starting January 31, 2024, including Pixel 8, Pixel 8 Pro, and Samsung Galaxy S24 series.”</p><p><strong>✔️ Easy writing with Google Docs</strong></p><p>Google Docs offers several AI capabilities to enhance the writing experience. Docs offers Smart Compose to suggest text completions, templates for drafting emails, creating a draft calendar event with grammar suggestions, outlining documents to decide the text, and table of contents. Google Docs also provides a voice typing feature that lets users dictate text using voice for hands-free writing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XGl73mLnzD4snROu" /></figure><p>Gen AI’s real-time updates offer a streamlined approach to information processing, empowering users with swift access to relevant insights and resources. With its ability to adapt to dynamic data streams, Gen AI ensures that users stay informed and equipped to make timely decisions. Whether it’s through smart suggestions, up-to-date analytics, or personalized recommendations, Gen AI revolutionizes the way we interact with and utilize data, driving efficiency and productivity in various domains.</p><p>It is indeed obvious that these features are very very few over everything that has been booming &amp; developed around 😉.</p><p><strong><em>Drop in your daily delightful encounters with Gen AI in the comments 🙌🏻</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=043f6ede1edf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Multimodal Marvel: An Exploration of AI’s Capabilities with Gemini Pro]]></title>
            <link>https://medium.com/@priyahemaa1512/unveiling-the-multimodal-marvel-an-exploration-of-ais-capabilities-with-gemini-pro-18704115cba4?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/18704115cba4</guid>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 16:33:06 GMT</pubDate>
            <atom:updated>2024-01-13T16:33:06.086Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Anmvw5lFc9FC457_.jpg" /><figcaption>Illustration of Multimodal — Vision, Image &amp; Text model</figcaption></figure><p>In the early days of AI, the focus was on solving real-time problems. However, as technology advanced, so did the purpose. The goal shifted towards creating machines that could not just perform tasks but understand and learn from the vast amount of data available.</p><p>The AI journey began with rule-based systems, where computers followed strict instructions. Then came machine learning, where computers could learn patterns from data. However, the real breakthrough came with deep learning that allowed machines to understand complex patterns, paving the way for significant advancements in various AI applications.</p><blockquote><strong>Why AI matters </strong>💪🏼 <strong>?</strong></blockquote><p>AI is more than just a buzzword. It indeed is transforming our daily lives. AI is everywhere, from virtual assistants and recommendation systems to medical diagnosis and autonomous vehicles. It enhances efficiency, automates tedious tasks, and augments human capabilities.</p><blockquote><strong>Meet Multimodal AI </strong>🤖</blockquote><p>Entering into the era of Multimodal AI — a step further in the AI evolution. While traditional AI excels in specific tasks, Multimodal AI takes it up by combining multiple forms of data, like text, images, and sounds. Imagine a machine that not only reads but also sees and hears, understanding the world more comprehensively.</p><p>Multimodal AI is a master at handling various types of data. We’ll delve into the fascinating world of Multimodal AI — why it’s essential, how it works, and the incredible possibilities it unlocks by integrating diverse sources of information.</p><blockquote><strong>Why Multimodal AI is needed </strong>🤔 <strong>?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*PAuPEvuHEldKVAhf.jpg" /><figcaption>Illustration of multi-modal AI</figcaption></figure><p>Imagine if our brains could only understand one type of information — like reading text but not recognizing pictures or understanding spoken words. That would be limiting! Multimodal AI is needed because the real world is diverse, and information comes in many forms. It helps computers make sense of the world like we do, by combining different types of data.</p><p>Let’s say you want your computer to know not only what you’re saying but also understand the emotions in your voice or recognize objects in a photo. That’s where multimodal AI comes in handy. It enables computers to learn from various sources, making them more versatile and intelligent.</p><blockquote><strong>Evolution of Multimodal AI </strong>😃</blockquote><p>The development of multimodal AI is similar to how we as humans learn. Initially, computers focused on a single task at a time, such as text recognition. Then, as technology advanced, we taught computers to recognize images and, later, speech.</p><p>But the real magic happens when we combine all of these abilities, resulting in a smarter and more capable AI. Multimodal AI evolution entails continuous learning, adaptation, and improvement, much like how we learn and grow.</p><blockquote><strong>Let’s see Gemini — Google’s Multimodal AI </strong>😎</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z33XujXIhtMUoLO5.jpg" /><figcaption>Logo : Google’s Gemini AI</figcaption></figure><p>Google AI developed the Gemini AI — a family of large language models (LLMs), which are renowned for their state-of-the-art multimodal understanding and processing capabilities. It’s a strong artificial intelligence tool that can perform a variety of tasks involving different kinds of data, not just text.</p><p>Gemini is offered in three different sizes — <strong>Gemini Pro, Gemini Ultra, and Gemini Nano</strong>. In comparison to previous LLM models, Gemini’s processing is substantially faster by the use of the Tensor Processing Units (<strong>TPUs</strong>) that Google specifically designed.</p><blockquote><strong>Getting into action — Building an end-to-end application using Gemini API </strong>🎉</blockquote><p>We are going to build an application that describes the image based on the prompt the user provides or even without the prompt. Let’s start with fetching the API key, creating a virtual environment, installing required dependencies, and then making use of the model.</p><p>🎉 <strong>Generating Gemini API Key</strong></p><ul><li>You have two options to start the process: click the link <a href="https://makersuite.google.com/">Google AI for developers</a> (https://makersuite.google.com) to go to MakerSuite, or search for it quickly on Google.</li><li>Click “Continue” after accepting the terms of service.</li><li>To generate the key, click the Create API key in the new project button and the Get API key link. Hold a copy of the API key.</li></ul><p>🎉 <strong>Creating a Python virtual environment</strong></p><p>Let us start with creating a virtual environment using conda. Python 3.9 or greater versions are very friendly with generative-ai libraries.</p><pre>conda create -p venv python==3.10 -y<br>conda activate venv</pre><p>🎉 <strong>Installing dependencies</strong></p><p>Define the below in the <strong>requirements.txt</strong></p><pre>streamlit<br>google-generativeai<br>python-dotenv</pre><p>Install the dependencies inside the virtual environment</p><pre>pip install -r requirements.txt</pre><p>🎉 <strong>Defining API key</strong></p><p>Define the Google Gemini Pro API key in .<strong>env</strong></p><pre>GOOGLE_API_KEY=&quot;ENTER_YOUR_API_KEY&quot;</pre><p>🎉 <strong>Project Structure</strong></p><p>Now that we have created the essential files required for the application, let’s take a quick look at the checklists.</p><ul><li>venv — The virtual environment (inside which the dependencies are installed) using which we develop &amp; run the application.</li><li>.env — The file where Gemini Pro API is defined</li><li>requirements.txt — Holds the package dependencies</li><li>Create an empty file - app.py wherein we will start coding our application.</li></ul><p>This is how the project structure would look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*RRgnfsI1ZZA1D-HGVNHIJg.png" /></figure><p><strong>🎉 Let’s gooo</strong></p><p>Let’s start with developing our application. Code along in your <strong>app.py</strong> 😉.</p><ul><li>Initially, import all the required packages and libraries for our application development.</li></ul><pre>#load all environment variables<br>from dotenv import load_dotenv<br>load_dotenv()<br><br>import streamlit as st #Streamlit to create web application<br>import os<br>import google.generativeai as genai #The primary LLM model that resides inside genAI library<br>from PIL import Image</pre><ul><li>Fetch the API key that is defined inside .env</li></ul><pre>genai.configure(api_key=os.getenv(&quot;GOOGLE_API_KEY&quot;))</pre><ul><li>Next, let’s define a function that generates a response from the Google Vision Pro model that inputs the image from the user.</li></ul><pre>def get_model_response(query, user_image):<br>    model = genai.GenerativeModel(&#39;gemini-pro-vision&#39;)<br>    if query != &quot;&quot;:<br>        model_response = model.generate_content([query, user_image])<br>    else:<br>        model_response = model.generate_content(user_image)<br>    return model_response.text</pre><ul><li>The above code snippet generates content based on the image and the query if the query is inputted by the user. If the query is not prompted by the user, it just generates the content based on the image.</li></ul><p>We’ll continue with utilizing Streamlit to create a web application to visualize the results.</p><pre>st.set_page_config(page_title=&quot;Visualize Image-Text&quot;)<br>st.header(&quot;Bring Image to words ✨!!&quot;)<br><br>#user defines the prompt - based on which the response is required from the model<br>user_input=st.text_input(&quot;What do you want to know about the image ? &quot;,key=&quot;user_input&quot;)<br>#load the image - for the model to analyse<br>uploaded_file = st.file_uploader(&quot;Pick your image ...&quot;, type=[&quot;jpg&quot;, &quot;jpeg&quot;, &quot;png&quot;])</pre><p>Once after the image is uploaded by the user, display the image for the user in the UI with the placeholder text “Uploaded image”</p><pre>image=&quot;&quot;   <br>if uploaded_file is not None:<br>    image = Image.open(uploaded_file)<br>    st.image(image, caption=&quot;Uploaded Image.&quot;, use_column_width=True)</pre><p>Then, let’s define a button that calls the get_model_response method (declared initially). Display the results/output of the model to the user</p><pre>submit=st.button(&quot;See the magic ✨&quot;)<br>if submit:<br>    model_response=get_model_response(user_input, image)<br>    st.subheader(&quot;Results here 👇🏻&quot;)<br>    st.write(model_response)</pre><p>We are all set with the code now. Let’s go ahead and run the Streamlit application. Use the below command to start the app.</p><pre>streamlit run app.py</pre><p>Hurray! You have just created an end-to-end application using Streamlit that makes of Gemini AI Pro API key. You should be able to see the below logs in your terminal.</p><p>If yes, then hit the local URL to play with the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*E9UptSREMupnKBgllZ6K2Q.png" /></figure><p><strong>🎉 The Results!</strong></p><p>I tested the application with &amp; without prompts for 5 different images and the results were amazing!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqxgW43R2AOKBJBBMMwEvg.png" /><figcaption>Prompt: Describe the dishes present in the image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvIOubfXgyWPHTEfeR2amA.png" /><figcaption>Prompt: Write a poem on this picture</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V6E0khfX4UgRE6567fA3OA.png" /><figcaption>Prompt: Write the steps to prepare the dish</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AmljMsABkZWX9a4Nw6nIqQ.png" /><figcaption>Prompt: Count the total characters in the picture</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YPZLpRX9CLeNtcKJbLYtQ.png" /><figcaption>Prompt: Give more details about the picture</figcaption></figure><p>It’s cool and great right !! Refer to my GitHub repository <a href="https://github.com/Nhemapriya/Image2Words-GeminiAI">Image2Words-GeminiAI</a>, for the entire code.</p><p>As we dive into the future, Multimodal AI holds promise across various domains. From revolutionizing communication to enhancing accessibility and personalizing user experiences, its applications are boundless.</p><p>Get ready for the next wave of possibilities in the ever-evolving saga of Artificial Intelligence!</p><p>Happy learning 🙌🏻 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18704115cba4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond words: Navigating LLM implementation using pre-trained models]]></title>
            <link>https://medium.com/@priyahemaa1512/beyond-words-navigating-llm-implementation-using-pre-trained-models-5c81e1d7dea4?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c81e1d7dea4</guid>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[pre-trained-model]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Sun, 31 Dec 2023 13:09:49 GMT</pubDate>
            <atom:updated>2023-12-31T13:09:49.476Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ws3aGYHCcHNmXwyl.jpg" /></figure><p>Large Language Models (LLMs) are like pioneers in the world of AI, changing how we use technology. We have delved deep into the basics and evolution of LLMs in the past two articles. Check it out — <a href="https://medium.com/@priyahemaa1512/words-to-wonders-journey-through-the-evolution-of-llms-51409f11034a">Words to Wonders: Journey through the evolution of LLMs</a> if you haven’t 😉</p><p>Now that we are aware of the fascinating history and evolution of LLMs, let’s look at them in action. This article delves into the specifics of using pre-trained models, revealing the true magic behind these language capabilities.</p><blockquote><strong><em>All about Pre-trained models</em> </strong>💪🏼</blockquote><p>Pre-trained models are advanced models that are extensively trained on huge amounts of diverse data before being fine-tuned for specific domain-focused applications. Pre-training in the context of Large Language Models (LLMs) entails exposing the model to a diverse set of textual data, allowing it to learn the complexities of language structure, grammar, context, and semantic relationships.</p><blockquote><strong><em>Why Pre-trained models ?</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*rD6Jqgt7akP2WmwL.png" /><figcaption>Illustration of Pre-trained model</figcaption></figure><p>With the help of large datasets, pre-trained models have already gained a thorough understanding of language, context, and semantic relationships. In fact, large datasets, a lot of processing power, and a lot of time are needed to train an advanced language model from scratch.</p><p>Pre-training lowers these resource needs dramatically. With little further training, models can swiftly adjust to new applications using the transfer learning technique. Pre-trained models eliminate the need for massive amounts of labeled data for specific tasks. They apply what they learned during pre-training to become more data-efficient for specific applications.</p><p>Certain pre-trained models can adjust to new incoming data and changing linguistic patterns, guaranteeing their continued applicability and efficiency. Owing to easier implementation techniques, a wider range of developers with different levels of expertise can use advanced language processing capabilities with pre-trained LLMs.</p><p>Pre-trained models can serve as a basis for future innovation from researchers and practitioners, allowing them to innovate different applications and push the limits of artificial intelligence in language-related tasks.</p><blockquote><strong><em>Significance of pre-trained models</em></strong></blockquote><p>👉🏻 Pre-trained models gather information from a variety of sources, such as web pages, books, and articles. Their extensive linguistic exposure gives them a thorough understanding of linguistic diversity.</p><p>👉🏻 Pre-trained models gain an understanding of semantics, comprehending not only the literal meaning of words but also their contextual implications and relationships.</p><p>👉🏻 Pre-trained models are the basis for transfer learning, which is the process of optimizing the pre-training phase’s knowledge for particular tasks. This method of transfer learning greatly minimizes the quantity of task-specific data required for efficient training.</p><p>👉🏻 Pre-training improves a model’s capacity to apply its understanding to new, untested data. This is essential for allowing the model to be applied to different scenarios without requiring a lot of retraining.</p><p>👉🏻 These models provide a useful solution in domains where obtaining large labeled datasets for specific tasks is difficult. They lessen the reliance on task-specific labeled data by utilizing large datasets that already exist.</p><blockquote><strong><em>Let’s get into action 🔥</em></strong></blockquote><p>We are going to visualize a simple implementation of LLM with the help of a pre-trained model using Google Colab. To follow along, create a colab notebook with your Google account. We will be using pytorch framework for the implementation</p><p>Initially , we have to install certain libraries to use the pre-trained model. Let us start with installing transformers, pytorch and accelerate using pip - python package installer.</p><pre>%pip install &quot;accelerate&gt;=0.16.0,&lt;1&quot; &quot;transformers[torch]&gt;=4.28.1,&lt;5&quot; &quot;torch&gt;=1.13.1,&lt;2&quot;</pre><ul><li>Accelerate library is designed to accelerate and optimize deep learning training using PyTorch and TensorFlow. The numbers denote the version.</li><li>Transformers library with the “torch” extra indicates that the PyTorch version of the library is desired. It provides pre-trained models for natural language processing tasks.</li><li>PyTorch is an open-source machine learning library widely used for deep learning applications. Library with a version greater than or equal to 1.13.1 and less than 2 will be installed.</li></ul><blockquote><strong><em>Pre-trained model: Dolly V2</em></strong></blockquote><p>Dolly is a pre-trained large language model trained on the Databricks machine learning platform that is licensed for commercial use and open-sourced. It is a 2.8 billion parameter causal language model created by <a href="https://databricks.com/">Databricks</a> that is derived from <a href="https://www.eleuther.ai/">EleutherAI&#39;s</a> <a href="https://huggingface.co/EleutherAI/pythia-2.8b">Pythia-2.8b</a> and fine-tuned on a <a href="https://github.com/databrickslabs/dolly/tree/master/data">~15K record instruction corpus</a> generated by Databricks employees <em>(Source : Databricks)</em></p><p>There are three versions of Dolly2 model — one with 3Billion parameters, one with 7Billion and one with 12Billion. We will be using 3b (3 Billion parameter model). We can now load the pre-trained model to get into visualizing the outputs.</p><pre>import torch<br>from transformers import pipeline<br><br>generate_text = pipeline(model=&quot;databricks/dolly-v2-3b&quot;, torch_dtype=torch.bfloat16, trust_remote_code=True, device_map=&quot;auto&quot;)</pre><p>Once when you run the above code, you will be able to view the below compilation message in colab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1F9ki2yJoL_Ojx9C5bMUw.png" /><figcaption>Compilation message for loading model from Huggingface</figcaption></figure><p>You can see that the dolly-v2–3b model is pulled from huggingface and all the necessary config files (tokenizer, pytorch source model, etc) are also loaded. The pre-trained model is loaded and saved in <em>generate_text. </em>We can use it to interact with our model from now.</p><p>Let’s ask a few questions to our pre-trained model. Follow along for something exciting 😉 !</p><pre>response = generate_text(&quot;What is the capital of France?&quot;)<br>print(response[0][&quot;generated_text&quot;])<br><br>O/P - The capital of France is Paris.</pre><p>Let’s try changing the prompt with context to different domains and check out the response. Skim through the screenshots below, for the prompts and the respective outputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9OKAN0Dadt1HaWgh432Xg.png" /><figcaption>Prompt — General language understanding — “Concept of quantum entanglement”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cn6F2hC4MYEqWMVJQ5b3eQ.png" /><figcaption>Prompt — General language understanding — “Pythagorean theorem”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qeQpyRPqGUip3ZWNEransQ.png" /><figcaption>Prompt — Contextual understanding — Entity analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBOnu0e2BkDv3kck1-TW9w.png" /><figcaption>Prompt — Contextual understanding — Entity analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjNr3gVXESdZeWJQ2sv7hg.png" /><figcaption>Prompt — Contextual understanding — Generative &amp; Creative writing</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRp8_sql0XugMoctHORVhA.png" /><figcaption>Prompt — Translation</figcaption></figure><p>Interesting right 😃 ! It was really fun and fascinating to try out multiple prompts and witness the response from the model. Some of the outputs were very accurate and some weren’t. Indeed, it’s a pre-trained model and to achieve high accuracy, we gotta fine-tune them 😉.</p><p>There’s where we get into the concept of fine-tuning pre-trained models or even building your own model 🙌🏻 . Stay tuned for more articles that will help you learn more about LLMs and building your own models.</p><p>Happy learning 🙌🏻 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c81e1d7dea4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Words to Wonders: Journey through the evolution of LLMs]]></title>
            <link>https://medium.com/@priyahemaa1512/words-to-wonders-journey-through-the-evolution-of-llms-51409f11034a?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/51409f11034a</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[evolution]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Mon, 20 Nov 2023 07:02:24 GMT</pubDate>
            <atom:updated>2023-11-20T07:02:24.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*TZ-M9anb-6Jr3RnOOCnjoQ.png" /></figure><p>Imagine you are exploring a topic and discussing it with your friend. Your smart friend is capable enough of generating detailed and insightful information on it. Sounds cool, right?</p><p>How about naming that friend Chat-GPT? Check out my previous article <a href="https://medium.com/@priyahemaa1512/unleashing-the-future-a-deep-dive-into-genai-and-llms-78c989564c01">“Unleashing the future: A Deep dive into GenAI and LLMs”</a> if you haven’t, to know more about this friend. As we know, LLMs are now the fundamental components of chatbots, predictive text, and other applications like ChatGPT, making the response more human-like.</p><p>In a nutshell, large language models (LLMs) are advanced artificial intelligence algorithms that design virtual dialogues and create writing resembling human language, transforming words into marvels. The term ‘large’ in LLMs describes their size - their brains contain billions or even trillions of elements, or parameters, that enable them to comprehend and produce text. They can therefore comprehend and produce language in ways that are practically miraculous.</p><p>That’s interesting, isn’t it? Let’s get into understanding LLMs better.</p><p><strong>Eliza to GPT: Unfolding the Journey of LLM’s</strong></p><p>Let’s take a detailed journey through the evolution of large language models (LLMs), from the inception of chatbots like Eliza to the latest advancements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*n8e0jx8BXQCcxlB4" /><figcaption>Snapshot of Conversation with ELIZA (developed using DOCTOR Script)</figcaption></figure><blockquote><strong>Eliza (1964–1967)</strong></blockquote><p>Eliza is typically a simple pattern-matching chatbot that was used to substitute humans in stimulating conversations. Developed by Joseph Weizenbaum, Eliza set the stage for exploring human-computer interactions. Weizenbaum, the person who created ELIZA, wanted to use the chatbot to investigate human-machine communication.</p><p>Based on its performance, many scholars thought that the program may have a good impact on the lives of many people, especially those who struggle with psychological disorders and that it could help medical professionals treat patients of that kind. It essentially acted as a therapist.</p><blockquote><strong>Rule-based systems with limited context (1970s — 1990s)</strong></blockquote><p>Rule-based systems and chatbots’ responses were rigidly tied to their rules, making them adept at superficially mimicking conversation but unable to truly comprehend the user’s emotions or dynamically adapt to the context of the conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*qMqX_EmyRS57jPfx" /><figcaption>Visual representation of animated chatbot</figcaption></figure><p>Say if the user says ‘I feel sad’, it responds back with a question, ‘Why do you feel sad? ‘. Essentially, it identified the keyword “feel sad” and responded with a question, utilizing a rule-based pattern. It didn’t possess the capability to grasp the user’s emotions or engage in a meaningful conversation beyond the programmed responses.</p><p>Thus, the system was devoid of actual comprehension and only partially understood context. It was unable to hold meaningful, in-depth conversations; instead, it was limited to understanding certain words and reacting appropriately.</p><blockquote><strong>Statistical Models and Early Machine Learning Models (1990s-2000s)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4pz-Fn5DQQvVZwHJ" /><figcaption>Visual representation of analogy of statistical model</figcaption></figure><p>In the late 1990s and early 2000s, statistical language models gained popularity. These models started to learn patterns from big datasets instead of just following rules, which helped them become more context-aware. The Hidden Markov Model (HMM) is an illustration of a statistical language model that rose to prominence in the late 1990s and early 2000s.</p><p>The prevalence of HMMs in a wide range of NLP tasks demonstrated the move towards statistical methods for language modeling. HMMs are probabilistic models that learn patterns from data. In the context of language, they can be trained on large datasets to capture statistical relationships between words and sequences of words.</p><p>Speech recognition systems make extensive use of HMMs. With their assistance, the statistical variances in speech patterns were modeled, improving the accuracy of spoken word recognition. HMMs were still unable to fully comprehend complex semantic relationships and capture long-range dependencies, despite being an improvement over rule-based systems.</p><blockquote><strong>A major breakthrough — RNNs and LSTMs (2000s — 2010s)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7ZVzV7HDUBzEIbYUs8SeQ.png" /></figure><p>After statistical models became popular in the late 1990s and early 2000s, language modeling saw a major development with the advent of recurrent neural networks (RNNs). By enabling models to process sequential data, these neural networks signified a paradigm shift and raised the bar for language context understanding.</p><p>RNNs represented a radical shift away from conventional statistical models. Since RNNs could capture sequential dependencies, they were a better fit for tasks involving time series data and language processing in particular than their predecessors.</p><p>Because RNNs were so good at processing data sequences, they were also very good at comprehending the contextual flow of language. This advancement in statistical models made it possible to understand language in more complex ways.</p><p>RNNs, however, had trouble identifying long-term dependencies. The information would either explode or disappear as it moved through the network, which made it difficult for the model to keep context across long sequences.</p><blockquote><strong>LSTM and the mastery of long-term dependencies (2010s)</strong></blockquote><p>The mid-2000s saw the emergence of LSTM as a noteworthy advancement in response to the shortcomings of RNNs. LSTM was introduced as a solution to RNNs’ problems with information retention over long sequences.</p><p>The capacity of LSTM to recognize and retain long-term dependencies in data was a fundamental innovation. This was made possible by a complex architecture with memory cells and gates that allowed the model to remember or forget information according to context. Since LSTM was developed, language models have been able to retain a deeper comprehension of context over longer passages and more accurately represent the complex relationships between words. This signified a noteworthy advancement in language model capabilities.</p><p>The advent of RNNs and their later refinement with LSTM demonstrated a dynamic development in the language modeling field. These developments opened the door for more complex models that could accurately and contextually understand the nuances of language.</p><blockquote><strong>Transformers : The Game-changer (2017)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rTQ31yS06NabzKUW.jpg" /></figure><p>With the release of the Transformer architecture in 2017, the field of natural language processing experienced a profound leap, signaling a turning point in the development of large language models (LLMs). The paper “Attention is All You Need” by Vaswani et al. introduced a novel architecture that revolutionized the way models interpret and process language.</p><p>The attention mechanism, which enables the model to assess the relative importance of various input sequence segments, is at the core of the transformer. This is similar to understanding context and concentrating on particular words or phrases.</p><p>Transformers are different from their predecessors in that they can analyze every segment of a sequence at once. Through self-attention mechanisms, this simultaneous processing is made possible, allowing the model to capture word dependencies regardless of where they are in the sequence.</p><p>The effective management of long-range dependencies was one of the significant innovations. It was difficult for earlier models, such as LSTMs, to preserve context over long sequences. Transformers overcome this difficulty by utilizing attention mechanisms to let each word in the sequence directly affect every other word in the sequence.</p><blockquote><strong>How transformers impacted the evolution of LLMs ?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qOXgMx2895hQ8jci" /></figure><p>The development of even larger language models was made possible by the Transformer architecture. Models like GPT-3, which have billions or even trillions of parameters, were made possible by this scalability.</p><p>Transformers achieved state-of-the-art performance on a variety of language tasks due to their efficiency and effectiveness. For many language-related applications, this made them the preferred architecture.</p><p>The popularity of transformers spurred additional inventions and served as the foundation for later developments in the industry. To push the limits of what LLMs could accomplish, researchers and developers took advantage of the insights gained from the Transformer architecture.</p><blockquote><strong>Unleashing Large-Scale Generative Models (2018-Now)</strong></blockquote><p>The GPT (Generative Pre-trained Transformer) series, pioneered by OpenAI, has spearheaded the era of large-scale generative language models, showcasing the remarkable evolution of natural language processing capabilities.</p><p>GPT-2, unveiled in 2019, made waves in the AI community for its unprecedented scale, boasting a colossal 1.5 billion parameters. This marked a significant leap from its predecessors, enabling the model to capture more intricate patterns in language.</p><p>The expansive parameter count endowed GPT-2 with the ability to generate coherent and contextually relevant text across a multitude of domains. From creative writing to news articles, GPT-2 and 3 demonstrated versatility in content generation.</p><p><em>The development of LLMs is still in progress as we stand at the nexus of past successes and potential futures. The development of technology from rule-based systems to the majesty of GPT-3 is not only a story of technological advancement but also of human inventiveness and the unwavering quest to solve the enigmas surrounding language.</em></p><p>Happy learning 🙌🏻 !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51409f11034a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the future: A Deep dive into GenAI and LLMs]]></title>
            <link>https://medium.com/@priyahemaa1512/unleashing-the-future-a-deep-dive-into-genai-and-llms-78c989564c01?source=rss-3dc8bf2bfb65------2</link>
            <guid isPermaLink="false">https://medium.com/p/78c989564c01</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Hemapriya]]></dc:creator>
            <pubDate>Fri, 08 Sep 2023 13:48:55 GMT</pubDate>
            <atom:updated>2023-09-13T16:32:32.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Technology and its capabilities" src="https://cdn-images-1.medium.com/max/900/1*1cYSqsiK0LJ7lPONxbIMcQ.jpeg" /></figure><p>In the ever-changing landscape of today’s technological world, the ultimate phenomenon that stands as a driving force for change is AI (Artificial Intelligence).</p><p>From improving our productivity to transforming businesses, AI and technology have embarked on innovation and limitless possibilities in our daily lives. Let’s dive deep into the potential of AI, primarily focusing on GenAI and LLMs.</p><blockquote><strong><em>Simplifying Daily Lives: An Imaginative Notion</em></strong></blockquote><p>Thirty years from now, let’s imagine a day in life where AI orchestrates every moment seamlessly 😉.</p><p><strong><em>6:30 AM:</em></strong> You are awakened by your AI-driven smart home 🛜, where the lights turn on to mimic a natural sunrise to give you a positive head start on your day😃.</p><p><strong><em>6:35 AM:</em></strong> Your smart personal assistant inquires about your sleep patterns and provides you with a rundown of your sleep habits and a sleep summary for the week😎.</p><p><strong><em>6:40 AM:</em></strong><em> </em>The mirror in your shower shows a summary of your schedule for the day , a weather prediction for the day🌦️ based on your travel plans , traffic patterns based on the places that you are set to travel, and important updates for the past 24 hours⌛.</p><p><strong><em>7:00 AM:</em></strong> Your AI-powered coffee maker serves your favorite brew☕ based on your preferences and the weather and also warns you to stock up on coffee beans if you are running out .</p><p><strong><em>8:30 AM:</em></strong><em> </em>You drive your way to work in an autonomous car 🚖 that suggests traffic updates, news updates , and the optimal route to get to your workplace 👨🏼‍💻.</p><p><strong><em>9:00 AM</em>:</strong> It’s work time! and use your AI-powered virtual assistant to send out emails , manage your schedule 📆, and put things together needed for the meetings ✍🏼.</p><p><strong><em>12:00 PM:</em></strong> Use your smart dietician to track the calories in food and suggest menus to make sure your food is in line with your eating habits and preferences.</p><p><strong><em>6:00 PM:</em> </strong>You return home, where your AI fitness assistant has jotted down✍🏼 an efficient workout plan for the day based on your fitness goals and energy levels.</p><p><strong><em>7:30 PM:</em> </strong>It’s dinner time! and your chef assistant recommends your tailored dishes 🍟 based on the available ingredients in stock and also orders groceries online, saving you a trip to the grocery store 🛒.</p><p><strong><em>9:00 PM:</em></strong><em> </em>Your AI assistant shows recommendations based on your genre🧐, mood, and already watched TV shows and movies 🎬 in trend, in multiple languages.</p><p><strong><em>10:00 PM:</em></strong><em> </em>Your AI-driven sleep tracker monitors your sleep patterns 💤 and recommends modifications to rest time and also better room conditions for a perfect sleep environment.</p><p>Wow! One kind of day in life, indeed 😃 ! It’s really surreal to imagine AI orchestrating every moment, from sunrise to bedtime, making life seamless and easy. Let’s get into something more interesting !</p><blockquote><strong><em>Generative AI: The Next Evolution</em></strong></blockquote><p>😃 We are stepping into an exciting chapter of technology : Generative AI, also known as GenAI, where machine intelligence knows no bounds. Where traditional AI is focused on analyzing data, processing data, making informed decisions, and automating workflows, GenAI has an incredible potential to create content and art, conceptualize thoughts and new ideas, and much more.</p><figure><img alt="Generative AI : Picture where an image is crafted by a robot" src="https://cdn-images-1.medium.com/max/1024/1*geLsqUyigSZ9wxyCU1xaAQ.jpeg" /><figcaption>Image Source: Shutterstock</figcaption></figure><p>Generative AI possesses remarkable capabilities for creating content that could mimic different styles, slang, and tones that suit the audience, composing music in different genres, producing videos by generating scripts, voiceovers, and visual effects, brainstorming innovative solutions to complex problems, and narrating fictional stories with dialogues that serve the purpose of video games.</p><p><strong><em>Is GenAI just yet another AI model </em></strong>🤔<strong><em>? </em></strong>— AI includes a wide range of applications for problem-solving and automating tasks, while GenAI specializes in content generation and pertains to contextual understanding. GenAI’s capabilities for content creation sets it apart from traditional AI systems, which aim to solve specific tasks efficiently.</p><blockquote><strong><em>Unmasking LLMs</em></strong></blockquote><figure><img alt="Chatbot — Generative AI" src="https://cdn-images-1.medium.com/max/752/1*rJfmmbb1nFGkC8-Dz917VQ.jpeg" /><figcaption>Image Source : Alamy</figcaption></figure><p>In the journey of GenAI, we indeed have to explore the enigmatic capabilities of Large Language Models (LLMs) — the heart of GenAI. LLMs are the digital titans, or AI models, that serve as the driving force behind the seamless activity of human-computer interaction with our very recent virtual companions like ChatGPT, Bard, etc. LLMs are the magic behind the conversations that we have with AI, which understands natural language, comprehends, communicates, and assists humans in countless ways.</p><p>LLMs are designed to understand and interpret human language. These are typical AI models that are trained on huge datasets and employ modern deep-learning techniques to process and generate text that appears to be human-like. Some of the LLMs that we encounter in our daily lives include GPT-3, GPT-4 (Generative Pretrained Transformer), and Bard, which are capable of processing natural human language.</p><p>🤔 <strong><em>LLMs and GenAI: Are they synonymous ?</em></strong> — GenAI and LLMs are related to the field of artificial intelligence but are dissimilar. GenAI encompasses a wider range of AI tasks that are not limited to language. LLMs, being a part of Generative AI, are more specialized in language-related tasks. On the other hand, GenAI holds a wider spectrum of creative domains dealing with text, art, music, and much more.</p><p>🧐 <strong><em>Why LLMs’ all the way ?</em></strong><em> — </em>In recent times, with the growth of the internet, data has been made available in abundance in multiple languages. This has laid the foundation for training LLMs, making them learn huge amounts of data and develop a deep understanding of language. Also, the improvements in deep learning techniques have paved the way for models to understand complex language and long-range dependencies in text.</p><blockquote><strong><em>Meet ChatGPT, The hero of our tale</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwbjMFEa5TaXLI885tr-vw.png" /><figcaption>Image Source: Internet — Generated by MidJourney</figcaption></figure><p>As we delve into LLMs, we can’t really miss exploring ChatGPT 😉, one of the primary examples of Large Language Models (LLM). It bridges the gap between human-computer interactions by processing natural human language with a high degree of context, understanding, and relevance. ChatGPT has complex neural network structures that make it understand and generate human-readable text.</p><p>😃 <strong><em>How does it work?</em></strong> — The capabilities of ChatGPT are rooted in its training process, where it is exposed to a large amount of text data from the internet, incorporating a wide range of topics, styles of writing, and different slang and languages. The syntax, semantics, grammar, and other intricacies of language are well established during the training process, making it easier to gain a contextual understanding of conversations.</p><p>😎 <strong><em>What really sets ChatGPT apart? </em></strong>— The primary ability to generalize its knowledge is what makes ChatGPT unique from other LLMs. It takes multiple inputs during training and applies them to unseen text when prompted by a user, making it easier to establish meaningful conversations with humans.</p><p>It has the ability to grasp context within a conversation, which leads to more natural interactions. It is highly proficient with the language that is dealt with, and it adheres to the grammar and semantics of it, making the text sound human-like.</p><p>It has been trained with a vast repository of information from the internet, and thus the spectrum of its knowledge base is solid and wide. Beyond its capabilities of information retrieval, it can also be seen as an imaginative content creator by generating music, narratives, poems, etc., expanding its utility beyond factual responses.</p><p>This article takes you through the journey of GenAI and the capabilities of LLM. To conclude, our exploration of AI, GenAI, and LLMs shows us a world full of limitless possibilities and innovation. What started out as simple tools have now become smart wizards that seamlessly fit into our day-to-day lives and are changing the way we use technology.</p><p>The future is unleashed, and we indeed possess the potential to harness the transformative power of AI to create a better tomorrow where technology empowers and inspires our daily lives.</p><p>Happy Learning 😉🙌🏻!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78c989564c01" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>