<?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 Manika Nagpal on Medium]]></title>
        <description><![CDATA[Stories by Manika Nagpal on Medium]]></description>
        <link>https://medium.com/@manikanagpal?source=rss-f4a3547e3a22------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mes2V_Bse1EADyeyrYC_Dw.jpeg</url>
            <title>Stories by Manika Nagpal on Medium</title>
            <link>https://medium.com/@manikanagpal?source=rss-f4a3547e3a22------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:02:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manikanagpal/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[How to Build an Open-source RAG pipeline from scratch?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://manikanagpal.medium.com/how-to-build-an-open-source-rag-pipeline-from-scratch-7ef04511d2d4?source=rss-f4a3547e3a22------2"><img src="https://cdn-images-1.medium.com/max/1920/1*_KBSL1G23xINrAj9_LU9zw.png" width="1920"></a></p><p class="medium-feed-snippet">Learn how to build an end-to-end RAG pipeline that retrieves relevant information from a document and uses an LLM to generate accurate&#x2026;</p><p class="medium-feed-link"><a href="https://manikanagpal.medium.com/how-to-build-an-open-source-rag-pipeline-from-scratch-7ef04511d2d4?source=rss-f4a3547e3a22------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://manikanagpal.medium.com/how-to-build-an-open-source-rag-pipeline-from-scratch-7ef04511d2d4?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef04511d2d4</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[rag-pipeline]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 07:25:46 GMT</pubDate>
            <atom:updated>2026-04-16T07:25:46.400Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Build a Multi AI Agent System for Cryptocurrency Analysis?]]></title>
            <link>https://manikanagpal.medium.com/how-to-build-a-multi-ai-agent-system-for-cryptocurrency-analysis-37c325e6a74d?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/37c325e6a74d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 08:09:52 GMT</pubDate>
            <atom:updated>2026-02-02T08:09:52.272Z</atom:updated>
            <content:encoded><![CDATA[<p>How to build a multi AI Agent system is becoming one of the most practical skills for automating real-world workflows. In this tutorial, you’ll learn how to orchestrate multiple agents that fetch data, format insights, and respond intelligently. This setup is especially useful for analyzing cryptocurrency prices, letting users select a cryptocurrency and receive a concise market summary for that respective currency.</p><p>In this blog, you will learn how to build an agentic AI system for cryptocurrency analysis using CrewAI. The walkthrough covers essential components such as tools, large language models, agents, and task orchestration. You will design four specialized agents powered by four tools. A Human Query Tool captures the user’s input to identify the cryptocurrency of interest. A Crypto News Tool uses the EXA API to fetch recent news and market sentiment. A Stock Prices Tool powered by AlphaVantage retrieves historical OHLC data and trading volume. Finally, a LLaMA 3 – based summarization tool generates a concise, actionable market report, bringing everything together into a fully functional AI agent.</p><h3><strong>Table of Content</strong></h3><ol><li>Tools</li><li>LLM</li><li>Agents</li><li>Tasks</li><li>Kicking off the CrewAI Agent</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFjgN-DddXze-9ENZlmfUA.png" /><figcaption>Multi AI Agent Pipeline for Cryptocurrency Analysis</figcaption></figure><h3>1. Tools</h3><p>This multi AI agent system will comprise four tools:</p><ul><li><strong>Human Query Tool (LangChain Human Tool) </strong>captures the user’s input to know which cryptocurrency they want to analyze.</li><li><strong>Crypto News Tool (EXA API) </strong>fetches the latest news and market sentiment for the selected cryptocurrency.</li><li><strong>Stock Prices Tool (AlphaVantage API) </strong>retrieves historical OHLC price data and trading volume for trend analysis.</li><li><strong>Text Summarization Tool (LLaMA 3) </strong>summarizes all gathered data into a concise, easy-to-understand market report.</li></ul><p>The four agents in our system will leverage these tools. We’ll be building our multi AI agent system in <strong>Google Colab</strong>, which provides a ready-to-use Python environment with GPU support. Before we start, the first step is to install the necessary libraries: CrewAI, LangChain-Groq, and the EXA using pip.</p><pre>!pip -qqq install ‘crewai[tools]’==0.28.8 --progress-bar off<br><br>!pip -qqq install langchain-groq==0.1.3 --progress-bar off<br><br>!pip install exa-py to run smoothly.</pre><p>This ensures all dependencies are ready for our agents. Next, we begin with defining the four tools.</p><h4><strong>A. Human Query Tool (LangChain)</strong></h4><p>Let’s start with the first tool: the Human Query Tool.</p><pre>from langchain.agents import load_tools<br>human_tools = load_tools([&quot;human&quot;])</pre><p>We have simply used <strong>LangChain</strong>’s <em>load_tools</em> function to load the Human Tool, which will allow agents (as you will see later) to interactively ask questions to a real user. By calling <em>load_tools([“human”])</em>, a list of tool objects will be created, which can later be passed to agents. This will enable the agents to dynamically gather input, for example, asking which cryptocurrency the user wants to analyze, making the workflow flexible and interactive.</p><h4>B. Crypto News Tool using EXA API</h4><p>The next tool in line is the tool that that will fetch recent information about the cryptocurrency using EXA API.</p><pre>from exa_py import Exa<br><br>import requests<br><br>import pandas as pd<br><br>import os</pre><p>You can learn more about this API and create an API key using <a href="https://exa.ai/exa-api">this link</a>. Using this link, create a client object for the <a href="https://pypi.org/project/exa-py/1.0.7/">EXA API</a>. Pass your API key to authenticate requests to access EXA’s web search and content retrieval capabilities.</p><p>After that, perform a search query for “Bitcoin Cryptocurrency.” The search_and_contents method not only finds relevant web pages but also retrieves their content. Setting summary=True instructs EXA to return a summarized version of the content instead of the full text. The result is stored in the response variable, which typically includes source links, extracted content, and concise summaries useful for downstream analysis or LLM-based processing.</p><pre><br>exa = Exa(api_key=&quot;Your EXA API Key&quot;)<br>response = exa.search_and_contents(&#39;Bitcoin Cryptocurrency&#39;, summary=True)</pre><pre>print(response)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30WwaNLEuohtGLnRTDrSIQ.png" /></figure><pre>for result in response.results:<br>    print(result.title, result.url)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PJ768tvpfl0oU_TMoFrQWw.png" /></figure><p>Now that we understand what the EXA API responses look like, let us define a function that will generate the relevant information for a given cryptocurrency such as: title, URL, id, score, published date, author, image, favicon, summary, highlights, and highlight scores.</p><pre>@tool(&quot;search_tool&quot;)<br>def search_tool(query: str) -&gt; str:<br>    &quot;&quot;&quot;Search for the latest news and provide a summary about a given query using Exa API.&quot;&quot;&quot;<br>    # Perform the search and fetch the results<br>    key = &quot;&quot;<br>    exa = Exa(api_key=key)<br>    response = exa.search_and_contents(query, summary=True)<br>    # Ensure results exist before processing<br>    if response.results:<br>        news_list = []<br>        for item in response.results:        # Extracting attributes directly from the Result object<br>            news_item = {<br>                &quot;title&quot;: item.title if hasattr(item, &quot;title&quot;) else &quot;No Title&quot;,<br>                &quot;url&quot;: item.url if hasattr(item, &quot;url&quot;) else &quot;#&quot;,  # URL and ID are the same<br>                &quot;id&quot;: item.id if hasattr(item, &quot;id&quot;) else &quot;#&quot;,  # ID is same as URL<br>                &quot;score&quot;: item.score if hasattr(item, &quot;score&quot;) else &quot;No Score&quot;,<br>                &quot;published_date&quot;: item.published_date if hasattr(item, &quot;published_date&quot;) else &quot;Unknown Date&quot;,<br>                &quot;author&quot;: item.author if hasattr(item, &quot;author&quot;) else &quot;Unknown Author&quot;,<br>                &quot;image&quot;: item.image if hasattr(item, &quot;image&quot;) else &quot;No Image&quot;,<br>                &quot;favicon&quot;: item.favicon if hasattr(item, &quot;favicon&quot;) else &quot;No Favicon&quot;,<br>                &quot;summary&quot;: item.summary if hasattr(item, &quot;summary&quot;) else &quot;No Summary&quot;,<br>                &quot;highlights&quot;: item.highlights if hasattr(item, &quot;highlights&quot;) else &quot;No Highlights&quot;,<br>                &quot;highlight_scores&quot;: item.highlight_scores if hasattr(item, &quot;highlight_scores&quot;) else &quot;No Highlight Scores&quot;,<br>            }<br>            news_list.append(news_item)<br>        # Format the news items into a readable string<br>        output = []<br>        for news_item in news_list:<br>            output.append(f&quot;Title: {news_item[&#39;title&#39;]}\nURL: {news_item[&#39;url&#39;]}\nSummary: {news_item[&#39;summary&#39;]}\n&quot;)<br>        return &quot;\n&quot;.join(output)<br>    else:<br>        return &quot;No results found.&quot;</pre><pre>@tool(&quot;search tool&quot;)<br>def cryptocurrency_news_tool(ticker_symbol: str) -&gt; str:<br>    &quot;&quot;&quot;Get news for a given cryptocurrency ticker symbol&quot;&quot;&quot;<br>    return search_tool.run(ticker_symbol + &quot; cryptocurrency&quot;)</pre><h4>C. Price Tool using AlphaVantage API</h4><p>Next, we define the Price Tool that will use AlphaVantage API to fetch historical price data for a given cryptocurrency. Before proceeding, please generate an API key using <a href="https://www.alphavantage.co/documentation/#digital-currency">this link</a>.</p><p>To give you an idea, here is an example showcasing how to fetch prices of Bitcoin currency for the European market.</p><pre># replace the &quot;demo&quot; apikey below with your own key from https://www.alphavantage.co/support/#api-key<br>api_key = &quot;demo apikey&quot;<br>url = &#39;https://www.alphavantage.co/query?function=DIGITAL_CURRENCY_DAILY&amp;symbol=BTC&amp;market=EUR&amp;apikey=demo&#39;<br>r = requests.get(url)<br>data = r.json()<br><br>print(data)</pre><pre>import json<br>pretty_json = json.dumps(data, indent=8)<br>print(pretty_json)</pre><p>You will receive the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*wvSwZ-COfKda1lCXl0a0VA.png" /></figure><p>Next, we define the price tool for the US market.</p><pre>api_key = &quot;demo apikey&quot;<br>ticker =&quot;BTC&quot;<br>url = f&quot;https://www.alphavantage.co/query?function=DIGITAL_CURRENCY_DAILY&amp;symbol={ticker}&amp;market=USD&amp;apikey={api_key}&quot;<br>r = requests.get(url)<br>data = r.json()<br>pretty_json = json.dumps(data, indent=8)<br>print(pretty_json)</pre><p>This Python snippet demonstrates how to fetch daily cryptocurrency price data using the Alpha Vantage API. It starts by defining an API key and selecting a digital currency ticker (Bitcoin, in this case). Using these inputs, the script constructs an API request URL to retrieve daily price data in USD. The requests library sends the HTTP request, and the response is parsed into a Python dictionary using JSON decoding. To make the raw data easier to inspect and understand, the script formats the response with indentation and prints it. You will get the following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*3k9-kwn4MjLhCmkKtbTfRw.png" /></figure><p>We now define the price tool. Do note here that the specific version of NumPy library has been chosen as it is compatible with the API.</p><pre>!pip install --force-reinstall &quot;numpy==1.26.4&quot;</pre><pre>import numpy as np<br>np.__version__<br>import pandas as pd</pre><p>Next, we define a function fetches and prepares daily cryptocurrency price data as a structured Pandas DataFrame. It accepts a ticker symbol (for example, BTC) and constructs an Alpha Vantage API request for daily digital currency prices in USD. After sending the request, the JSON response is parsed and the “Time Series (Digital Currency Daily)” section is extracted. A dictionary comprehension reorganizes the raw data into open, high, low, close, and volume values for each date. This dictionary is then converted into a DataFrame, indexed by date, with all price fields cast to numeric types, making the data ready for analysis.</p><pre>def get_daily_prices(ticker) -&gt; pd.DataFrame:<br>    api_key = &quot;&quot;<br>    url = f&quot;https://www.alphavantage.co/query?function=DIGITAL_CURRENCY_DAILY&amp;symbol={ticker}&amp;market=USD&amp;apikey={api_key}&quot;<br>    response = requests.get(url)<br>    data = response.json()<br>    price_data = data[&quot;Time Series (Digital Currency Daily)&quot;]<br>    daily_prices = {<br>        date: {<br>            &quot;open&quot;: prices[&quot;1. open&quot;],<br>            &quot;high&quot;: prices[&quot;2. high&quot;],<br>            &quot;low&quot;: prices[&quot;3. low&quot;],<br>            &quot;close&quot;: prices[&quot;4. close&quot;],<br>            &quot;volume&quot;: prices[&quot;5. volume&quot;]<br>        }<br>        for date, prices in price_data.items()<br>    }<br>    df = pd.DataFrame.from_dict(daily_prices, orient=&quot;index&quot;)<br>    df.index = pd.to_datetime(df.index)<br>    cols = [&quot;open&quot;, &quot;high&quot;, &quot;low&quot;, &quot;close&quot;, &quot;volume&quot;]<br>    df[cols] = df[cols].apply(pd.to_numeric)<br>    return df<br><br>price_df = get_daily_prices(&quot;BTC&quot;)<br>print(price_df.head(10))</pre><p>Next, the below snippet shows how the get_daily_prices function is used and wrapped as a reusable tool. First, it fetches Bitcoin’s daily price data and prints the first ten rows to quickly inspect the output. Next, the cryptocurrency_price_tool function formats this data for human-readable output. It retrieves the price DataFrame for a given ticker, iterates over the most recent 60 days, and converts each day’s OHLC values into neatly formatted text lines. The function returns a single string containing these summaries, making it suitable for chatbot tools, agents, or lightweight reporting use cases.</p><pre>@tool(&quot;price tool&quot;)<br>def cryptocurrency_price_tool(ticker_symbol: str) -&gt; str:<br>    &quot;&quot;&quot;<br>    Get OHLC prices for a given cryptocurrency for the past 60 days.<br>    Prompts for AlphaVantage API key using the human tool if needed.<br>    Returns a string of formatted prices.<br>    &quot;&quot;&quot;<br>    price_df = get_daily_prices(ticker_symbol)<br><br>    text_output = []<br>    for date, row in price_df.head(60).iterrows():<br>        text_output.append(<br>            f&quot;{date.strftime(&#39;%Y-%m-%d&#39;)} | &quot;<br>            f&quot;O:{row[&#39;open&#39;]:.2f} H:{row[&#39;high&#39;]:.2f} &quot;<br>            f&quot;L:{row[&#39;low&#39;]:.2f} C:{row[&#39;close&#39;]:.2f}&quot;<br>        )<br>    return &quot;\n&quot;.join(text_output)</pre><h3>2. LLM- Llama 3</h3><p>Next, we write a simple LangChain pipeline to run large language model inference using Groq’s high-performance infrastructure. It begins by importing the os module and securely storing the <a href="https://console.groq.com/keys">Groq API key</a> as an environment variable, prompted at runtime instead of hard-coding it. The script then imports ChatPromptTemplate to structure system and user messages, and ChatGroq, which is LangChain’s wrapper for accessing Groq-hosted LLMs.</p><p>Next, a ChatGroq instance is initialized with a temperature of zero to ensure deterministic, focused responses, and the llama-3.3–70b-versatile model is selected for inference. The commented section demonstrates how to define system and human messages, combine them into a prompt template, and pipe the prompt into the LLM using LangChain Expression Language. Finally, the chain can be invoked to generate a response, illustrating a clean, modular way to run production-ready LLM inference.</p><pre>import os<br><br>os.environ[&quot;GROQ_API_KEY&quot;] = input(&quot;Enter your GROQ API Key: &quot;)</pre><pre>from langchain_core.prompts import ChatPromptTemplate<br>from langchain_groq import ChatGroq<br><br># Llama 3 with Groq for inference<br>llm = ChatGroq(temperature=0, model_name=&quot;llama-3.3-70b-versatile&quot;)<br><br>#system_message = &quot;You are an experienced Machine Learning &amp; AI Engineer.&quot;<br>#human_message = &quot;How to increase inference speed for a 7B LLM?&quot;<br>#prompt = ChatPromptTemplate.from_messages([(&quot;system&quot;, system_message), (&quot;human&quot;, human_message)])<br>#chain = prompt | llm<br>#response = chain.invoke({&quot;text&quot;: human_message})<br><br>#print(&quot;\nLLM Response:\n&quot;, response.content)</pre><h3>3. Agents</h3><p>We now define four agents that will perform four respective tasks using the four tools we defined so far. The four agents have been highlighted in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*seTKK0J1i-N2YDlqkglf7w.png" /></figure><h4><strong>A. Customer Communicator Agent</strong></h4><p>First, we begin with defining the communicator agent.</p><pre>from crewai import Agent, Crew, Process, Task</pre><pre>customer_communicator = Agent(<br>    role=&quot;Senior cryptocurrency customer communicator&quot;,<br>    goal=&quot;Find which cryptocurrency the customer is interested in&quot;,<br>    backstory=&quot;&quot;&quot;You&#39;re highly experienced in communicating about cryptocurrencies<br>    and blockchain technology with customers and their research needs&quot;&quot;&quot;,<br>    verbose=True,<br>    allow_delegation=False,<br>    llm=llm,<br>    max_iter=5,<br>    memory=True,<br>    tools=human_tools,<br>)</pre><p>The agent can call the Human Tool automatically during its workflow, but the tool will pause and wait for a real user to respond.</p><p>For example, when the agent needs to know which cryptocurrency to analyze, it will trigger the Human Tool and display a prompt. The workflow resumes only after the user provides input.</p><p>So, the process is semi-automatic: data fetching, processing, and summarization can be automated, but user input requires manual interaction.</p><p>It’s important to note that while the Human Tool allows agents to request input automatically during their workflow, the tool itself <strong>requires manual interaction</strong>. When the agent triggers it, the process will pause and wait for a user to provide a response. This makes the workflow semi-automatic: tasks like fetching data, processing prices, or summarizing news run automatically, while user-specific decisions — such as selecting a cryptocurrency — are provided in real time.</p><h4>B. News Analyst Agent</h4><pre>news_analyst = Agent(<br>    role=&quot;Cryptocurrency News Analyst&quot;,<br>    goal=&quot;&quot;&quot;Get news for a given cryptocurrency. Write 1 paragraph analysis of<br>    the market and make prediction - up, down or neutral.&quot;&quot;&quot;,<br>    backstory=&quot;&quot;&quot;You&#39;re an expert analyst of trends based on cryptocurrency news.<br>    You have a complete understanding of macroeconomic factors, but you specialize<br>    into analyzing news.<br>    &quot;&quot;&quot;,<br>    verbose=True,<br>    allow_delegation=False,<br>    llm=llm,<br>    max_iter=5,<br>    memory=True,<br>    tools= [cryptocurrency_news_tool],<br>)</pre><p>Next, we define the News Analyst AI agent designed specifically for cryptocurrency market analysis, using an agent-based framework. The Agent is configured with a clear role — a Cryptocurrency News Analyst — and a well-defined goal that instructs it to gather recent news for a given cryptocurrency, summarize market sentiment in one concise paragraph, and make a directional prediction (up, down, or neutral). The backstory provides domain context, positioning the agent as an expert in macroeconomic trends with a specialization in news-driven analysis, which helps guide more coherent and relevant reasoning.</p><p>The agent uses a specified LLM (Lllama3) for reasoning and language generation, operates in verbose mode for transparency, and is restricted from delegating tasks to other agents. Memory is enabled to retain context across iterations, while max_iter limits reasoning steps to avoid excessive loops. Finally, the agent is equipped with a dedicated cryptocurrency_news_tool, allowing it to fetch real-time news and ground its analysis in external data rather than speculation.</p><h4>C. Price Analyst Agent</h4><pre>price_analyst = Agent(<br>    role=&quot;Cryptocurrency Price Analyst&quot;,<br>    goal=&quot;&quot;&quot;Get historical prices for a given cryptocurrency. Write 1 paragraph analysis of<br>    the market and make prediction - up, down or neutral.&quot;&quot;&quot;,<br>    backstory=&quot;&quot;&quot;You&#39;re an expert analyst of trends based on cryptocurrency<br>    historical prices. You have a complete understanding of macroeconomic factors,<br>    but you specialize into technical analysis based on historical prices.<br>    &quot;&quot;&quot;,<br>    verbose=True,<br>    allow_delegation=False,<br>    llm=llm,<br>    max_iter=5,<br>    memory=True,<br>    tools=[cryptocurrency_price_tool],<br>)</pre><p>This code defines a specialized AI agent focused on <strong>cryptocurrency price analysis</strong> using historical market data. The agent is assigned the role of a Cryptocurrency Price Analyst, with a goal that clearly instructs it to retrieve historical price data for a given asset and produce a concise, one-paragraph market analysis along with a directional prediction — up, down, or neutral. The backstory frames the agent as an expert in technical analysis, emphasizing pattern recognition, trends, and price behavior while still acknowledging broader macroeconomic awareness.</p><p>The agent is powered by a configured large language model (LLM) for reasoning and explanation, operates in verbose mode to expose its decision process, and is prevented from delegating tasks to other agents to keep execution focused. Memory is enabled so the agent can retain context across steps, while max_iter limits reasoning cycles for efficiency. The inclusion of the cryptocurrency_price_tool allows the agent to ground its analysis in real historical OHLC data, enabling data-driven technical insights rather than speculative commentary.</p><h4>D. Writer Agent</h4><pre>writer = Agent(<br>    role=&quot;Cryptocurrency Report Writer&quot;,<br>    goal=&quot;&quot;&quot;Write 1 paragraph report of the cryptocurrency market.&quot;&quot;&quot;,<br>    backstory=&quot;&quot;&quot;<br>    You&#39;re widely accepted as the best cryptocurrency analyst that<br>    understands the market and have tracked every asset for more than 10 years. Your trends<br>    analysis are always extremely accurate.<br>    You&#39;re also master level analyst in the traditional markets and have deep understanding<br>    of human psychology. You understand macro factors and combine those multiple<br>    theories - e.g. cycle theory. You&#39;re able to hold multiple opinions when analysing anything.<br>    You understand news and historical prices, but you look at those with a<br>    healthy dose of skepticism. You also consider the source of news articles.<br>    Your most well developed talent is providing clear and concise summarization<br>    that explains very complex market topics in simple to understand terms.<br>    Some of your writing techniques include:<br>    - Creating a bullet list (executive summary) of the most important points<br>    - Distill complex analyses to their most important parts<br>    You writing transforms even dry and most technical texts into<br>    a pleasant and interesting read.&quot;&quot;&quot;,<br>    llm=llm,<br>    verbose=True,<br>    max_iter=5,<br>    memory=True,<br>    allow_delegation=False,<br>)</pre><p>This code creates an AI agent whose job is to write the final cryptocurrency market report. The agent acts as a Cryptocurrency Report Writer and is asked to produce one clear, easy-to-read paragraph about the market. Its background describes it as a highly experienced analyst who understands crypto, traditional markets, macroeconomic trends, and human psychology. This helps the agent balance different viewpoints instead of relying on just news or price data.</p><p>The agent is especially good at summarizing complex information and explaining it in simple terms. It focuses on highlighting the most important points, filtering out noise, and presenting insights in a concise and engaging way. The agent uses the same language model (llm) as the others, runs in verbose mode for clarity, keeps context using memory, and is limited in iterations to stay efficient. Overall, this agent turns detailed analysis into a clear, reader-friendly market summary.</p><h3><strong>4. Tasks</strong></h3><p>Now describe four tasks that each respective agent will perform as highlighted in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_M9ABNS29yhsQP30RwX4HQ.png" /></figure><p><strong>1. get_cryptocurrency</strong><br> This task is the starting point of the workflow and focuses on understanding the user’s intent. Its role is simple but critical: ask the user which cryptocurrency they want to analyze. Instead of assuming an asset, the system explicitly captures the cryptocurrency symbol, such as BTC or ETH. The output of this task becomes shared context for all downstream tasks, ensuring that every agent works on the same asset. By assigning this task to a customer-facing communicator agent, the workflow stays user-centric and avoids unnecessary ambiguity or incorrect analysis.</p><pre>get_cryptocurrency = Task(<br>    description=f&quot;Ask which cryptocurrency the customer is interested in.&quot;,<br>    expected_output=&quot;&quot;&quot;Cryptocurrency symbol that the human wants you to research e.g. BTC.&quot;&quot;&quot;,<br>    agent=customer_communicator,<br>)</pre><p><strong>2. get_news_analysis</strong><br> This task analyzes the cryptocurrency from a news perspective. Using the selected cryptocurrency as context, the news analyst agent searches for recent and relevant news articles as of the current date. The agent then synthesizes these articles into a single, coherent paragraph that explains market sentiment, key events, and broader implications. Based on this news-driven understanding, the task also requires a directional prediction — up, down, or neutral — grounded in narrative signals rather than price patterns alone.</p><pre>from datetime import datetime<br><br>get_news_analysis = Task(<br>    description=f&quot;&quot;&quot;<br>    Use the search tool to get news for the cryptocurrency<br>    The current date is {datetime.now()}.<br>    Compose the results into a helpful report&quot;&quot;&quot;,<br>    expected_output=&quot;&quot;&quot;Create 1 paragraph report for the cryptocurrency,<br>    along with a prediction for the future trend<br>    &quot;&quot;&quot;,<br>    agent=news_analyst,<br>    context=[get_cryptocurrency],<br>)</pre><p><strong>3. get_price_analysis</strong><br> This task focuses on historical price behavior and technical trends. Using a dedicated price tool, the price analyst retrieves historical price data for the selected cryptocurrency. The agent examines patterns such as trends, volatility, and recent movements to produce a concise one-paragraph summary of market behavior. Like the news analysis, it concludes with a directional prediction. This task ensures the system balances qualitative news signals with quantitative, data-driven price insights.</p><pre>get_price_analysis = Task(<br>    description=f&quot;&quot;&quot;<br>    Use the price tool to get historical prices<br>    The current date is {datetime.now()}.<br>    Compose the results into a helpful report&quot;&quot;&quot;,<br>    expected_output=&quot;&quot;&quot;Create 1 paragraph summary for the cryptocurrency,<br>    along with a prediction for the future trend<br>    &quot;&quot;&quot;,<br>    agent=price_analyst,<br>    context=[get_cryptocurrency],<br>)</pre><p><strong>4. write_report</strong><br> This final task brings everything together. The writer agent takes the outputs from both the news analysis and price analysis tasks and synthesizes them into a single, polished market report. Rather than repeating inputs, the agent distills the most important insights, resolves conflicts between signals, and presents a clear overall view of the cryptocurrency market. The result is a concise, reader-friendly paragraph that summarizes the market and offers a final trend prediction, suitable for decision-making or publication.</p><pre>write_report = Task(<br>    description=f&quot;&quot;&quot;Use the reports from the news analyst and the price analyst to<br>    create a report that summarizes the cryptocurrency&quot;&quot;&quot;,<br>    expected_output=&quot;&quot;&quot;1 paragraph report that summarizes the market and<br>    predicts the future prices (trend) for the cryptocurrency&quot;&quot;&quot;,<br>    agent=writer,<br>    context=[get_news_analysis, get_price_analysis],<br>)</pre><h3><strong>5. Kicking off the CrewAI Agent</strong></h3><p>This is where the entire CrewAI workflow comes together and actually runs. At this stage, I initialize the crew by grouping all the agents — customer communicator, price analyst, news analyst, and the writer — and assign them their respective tasks in a fixed, sequential order. This setup ensures that each step builds on the previous one, starting from identifying the cryptocurrency to producing the final market report. I enable verbose logging so readers can clearly see how each agent thinks and acts, and I capture the full output to inspect intermediate results. Finally, calling crew.kickoff() triggers the complete pipeline, resulting in a structured, end-to-end cryptocurrency market analysis.</p><pre>crew = Crew(<br>    agents=[customer_communicator, price_analyst, news_analyst, writer],<br>    tasks=[get_cryptocurrency, get_news_analysis, get_price_analysis, write_report],<br>    verbose=2,<br>    process=Process.sequential,<br>    full_output=True,<br>    share_crew=False,<br>    manager_llm=llm,<br>    max_iter=15,<br>)<br><br>results = crew.kickoff()</pre><p>In the final step, thefocus is on presenting the output in a clean, readable way inside the notebook. I use IPython.display to render the result as Markdown instead of plain text, which makes the report feel more like an article than raw code output. Since Markdown treats the dollar sign as a special character, I first clean the generated text by escaping all $ symbols to avoid formatting issues.</p><pre>from IPython.display import Markdown, display<br>clean = results[&quot;final_output&quot;].replace(&quot;$&quot;, r&quot;\$&quot;)<br>display(Markdown(clean))</pre><p>Finally, I display the cleaned content using display(Markdown(…)). This ensures the final cryptocurrency report appears polished, well-formatted, and easy for readers to consume directly within the notebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVMB_GP7meIIACjaJ6bhuA.png" /></figure><p>If you have any doubts, please post them in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37c325e6a74d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic AI: The Next Step Beyond Traditional Automation for Operations & CX]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://manikanagpal.medium.com/agentic-ai-the-next-step-beyond-traditional-automation-for-operations-cx-45ba29f563d3?source=rss-f4a3547e3a22------2"><img src="https://cdn-images-1.medium.com/max/2600/0*kVieeMMuaL-oftdd" width="3000"></a></p><p class="medium-feed-snippet">Explore how agentic AI transforms CX and operations by handling multi-step tasks, boosting efficiency, and improving customer satisfaction&#x2026;</p><p class="medium-feed-link"><a href="https://manikanagpal.medium.com/agentic-ai-the-next-step-beyond-traditional-automation-for-operations-cx-45ba29f563d3?source=rss-f4a3547e3a22------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://manikanagpal.medium.com/agentic-ai-the-next-step-beyond-traditional-automation-for-operations-cx-45ba29f563d3?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/45ba29f563d3</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[generative-ai-market]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 12:19:31 GMT</pubDate>
            <atom:updated>2025-12-15T12:19:31.061Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How To Build an Advanced RAG System with LangChain?]]></title>
            <link>https://medium.com/projectpro/how-to-build-an-advanced-rag-system-with-langchain-78496cdca043?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/78496cdca043</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 04:47:38 GMT</pubDate>
            <atom:updated>2025-03-04T04:47:38.039Z</atom:updated>
            <content:encoded><![CDATA[<p>This tutorial will guide you through building an AI-powered retrieval-based question-answering (QA) system using LangChain, Groq API, LlamaParse, and Qdrant. The system will process a financial report (Meta’s First Quarter 2024 Results) and allow users to query relevant information efficiently. Here is a quick overview of what you will learn:</p><ul><li><strong>Parse documents</strong> using LlamaParse for structured text extraction.</li><li><strong>Generate embeddings</strong> with FastEmbed for semantic search.</li><li><strong>Store and retrieve data</strong> efficiently using Qdrant.</li><li><strong>Enhance responses</strong> with similarity search, contextual compression, and Flashrank reranking.</li><li><strong>Leverage ChatGroq</strong> for an improved QA experience.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-JxYl9vNNvirOg0d" /><figcaption>Photo by <a href="https://unsplash.com/@steve_j?utm_source=medium&amp;utm_medium=referral">Steve Johnson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>By the end, you’ll have a smart system answering finance-related queries with precision.</p><h3>Prerequisites</h3><p>Before diving into the implementation, ensure you have the necessary dependencies installed. The following commands install the required libraries:</p><pre>!pip -qqq install pip - progress-bar off<br>!pip -qqq install langchain-groq==0.1.3 - progress-bar off<br>!pip -qqq install langchain==0.1.17 - progress-bar off<br>!pip -qqq install llama-parse==0.1.3 - progress-bar off<br>!pip -qqq install qdrant-client==1.9.1 - progress-bar off<br>!pip -qqq install &quot;unstructured[md]&quot;==0.13.6 - progress-bar off<br>!pip -qqq install fastembed==0.2.7 - progress-bar off<br>!pip -qqq install flashrank==0.2.4 - progress-bar off</pre><p>These libraries enable us to:</p><ul><li><strong>LangChain:</strong> Build and manage AI agent workflows.</li><li><strong>LlamaParse:</strong> Parse and extract data from PDFs.</li><li><strong>Qdrant:</strong> Store and search vectorized document embeddings.</li><li><strong>Flashrank:</strong> Improve retrieval with ranking models.</li><li><strong>FastEmbed:</strong> Generate document embeddings efficiently.</li></ul><p>We will explore these in detail when we import them in step-2.</p><h3>Step 1: Set Up Environment Variables</h3><p>We need to set up the Groq API key for interacting with the language model.</p><pre>import os<br><br>os.environ[&quot;GROQ_API_KEY&quot;] = input(&quot;Enter your GROQ API Key: &quot;)</pre><h3>Step 2: Load Required Modules</h3><p>We import necessary modules for text processing and retrieval-based Q&amp;A.</p><pre>import textwrap<br>from pathlib import Path<br>from google.colab import userdata<br>from IPython.display import Markdown<br>from langchain.chains import RetrievalQA<br>from langchain.prompts import PromptTemplate<br>from langchain.retrievers import ContextualCompressionRetriever<br>from langchain.retrievers.document_compressors import FlashrankRerank<br>from langchain.text_splitter import RecursiveCharacterTextSplitter<br>from langchain.vectorstores import Qdrant<br>from langchain_community.document_loaders import UnstructuredMarkdownLoader<br>from langchain_community.embeddings.fastembed import FastEmbedEmbeddings<br>from langchain_core.prompts import ChatPromptTemplate<br>from langchain_groq import ChatGroq<br>from llama_parse import LlamaParse</pre><p>These libraries help in:</p><ol><li><strong>Document Processing &amp; Retrieval</strong></li></ol><ul><li>UnstructuredMarkdownLoader loads and processes markdown documents.</li><li>RecursiveCharacterTextSplitter splits documents into smaller chunks for better retrieval.</li><li>Qdrant stores and retrieves document embeddings efficiently.</li></ul><p><strong>2) Text Embedding &amp; Compression</strong></p><ul><li>FastEmbedEmbeddings converts text into vector representations for retrieval.</li><li>FlashrankRerank reranks retrieved documents based on relevance.</li></ul><p><strong>3) Q&amp;A System &amp; Language Model</strong></p><ul><li>RetrievalQA creates a question-answering system using retrieved documents.</li><li>ChatGroq integrates Groq’s LLM for generating answers.</li></ul><p><strong>4) Utilities</strong></p><ul><li>Markdown displays formatted responses.</li><li>Path handles file paths conveniently.</li></ul><p>This step ensures we have all the necessary tools for processing, storing, retrieving, and interacting with documents in an AI-powered Q&amp;A system.</p><h3>Step 3: Download and Parse the PDF Document</h3><p>In this step, we download Meta’s Q1 2024 earnings report and process it using LlamaParse to extract relevant financial data.</p><ol><li>We first create a data directory and download the earnings report using gdown:</li></ol><pre>!mkdir data<br>!gdown 1ee-BhQiH-S9a2IkHiFbJz9eX_SfcZ5m9 -O &quot;data/meta-earnings.pdf&quot;</pre><ol><li>To ensure we extract only relevant financial data, we provide a custom parsing instruction:</li></ol><pre>instruction = &quot;&quot;&quot;The provided document is Meta First Quarter 2024 Results.<br>This form provides detailed financial information about the company&#39;s performance for a specific quarter.<br>It includes unaudited financial statements, management discussion and analysis, and other relevant disclosures required by the SEC.<br>It contains many tables.<br>Try to be precise while answering the questions&quot;&quot;&quot;</pre><p>This instruction guides LlamaParse to focus on financial statements, management analysis, and key disclosures, while ignoring unnecessary content.</p><p>Now, we initialize LlamaParse with an API key and use it to parse the PDF:</p><pre>parser = LlamaParse(<br>api_key=&quot;LLAMA API KEY&quot;,<br>result_type=&quot;markdown&quot;,<br>parsing_instruction=instruction,<br>max_timeout=5000,<br>)<br>llama_parse_documents = await parser.aload_data(&quot;./data/meta-earnings.pdf&quot;)</pre><p><strong>Key Parameters</strong></p><ul><li>result_type=”markdown” → parses the content into a Markdown format.</li><li>max_timeout=5000 → allows more time for processing large documents.</li><li>parsing_instruction=instruction → ensures relevant content is extracted.</li></ul><p>After parsing, we extract the text and save it as a Markdown file:</p><pre>parsed_doc = llama_parse_documents[0]<br>#Markdown(parsed_doc.text[:4096])<br>document_path = Path(&quot;data/parsed_document.md&quot;)<br>with document_path.open(&quot;a&quot;) as f:<br>f.write(parsed_doc.text)</pre><p>This step ensures we have the document’s structured financial information saved for further processing.</p><h3>Step 4: Split and Embed Documents</h3><p>Once we have extracted the Meta Q1 2024 earnings report, we need to split the document into smaller, manageable chunks for efficient retrieval and embedding.</p><p>We use UnstructuredMarkdownLoader to load the extracted text from the Markdown file:</p><pre>import nltk<br>nltk.download(&#39;punkt&#39;)<br>nltk.download(&#39;punkt_tab&#39;)<br>nltk.download(&#39;averaged_perceptron_tagger&#39;)<br>nltk.download(&#39;averaged_perceptron_tagger_eng&#39;)<br>loader = UnstructuredMarkdownLoader(document_path)<br>loaded_documents = loader.load()</pre><p>We do this because the extracted financial report is too large to process efficiently in a single chunk. Additionally, loading it as a structured document ensures it can be split properly.</p><p>We next use RecursiveCharacterTextSplitter to divide the document into smaller sections:</p><pre>text_splitter = RecursiveCharacterTextSplitter(chunk_size=2048, chunk_overlap=128)<br>docs = text_splitter.split_documents(loaded_documents)</pre><p><strong>Key Parameters</strong></p><ul><li>chunk_size=2048 → Each chunk contains 2048 characters for optimal processing.</li><li>chunk_overlap=128 → Ensures context is preserved between adjacent chunks.</li></ul><p>We then check the total number of chunks created:</p><pre>len(docs)<br>print(docs[0].page_content)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3erBarp2BsrYuTJ6" /></figure><p>Next, to enable semantic search and retrieval, we generate vector embeddings using FastEmbedEmbeddings:</p><pre>embeddings = FastEmbedEmbeddings(model_name=&quot;BAAI/bge-base-en-v1.5&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hsKQpCdRc8r-nDU3" /></figure><ul><li>Embeddings convert text into numerical vectors, making it easier for the model to understand meaning and context.</li><li>BAAI/bge-base-en-v1.5 is a powerful embedding model optimized for English text retrieval.</li></ul><p>We now store the embedded chunks in Qdrant, a high-performance vector database for fast retrieval:</p><pre>qdrant = Qdrant.from_documents(<br>docs,<br>embeddings,<br># location=&quot;:memory:&quot;,<br>path=&quot;./db&quot;,<br>collection_name=&quot;document_embeddings&quot;,<br>)</pre><p><strong>Key Parameters</strong></p><ul><li>path=”./db” → saves the database locally to avoid re-processing.</li><li>collection_name=”document_embeddings” → organizes stored vectors for easy retrieval.</li></ul><h3>Step 5: Perform Similarity Search</h3><p>Now that we’ve stored document embeddings in Qdrant, we can query the database to find relevant information.</p><p>We use similarity search to retrieve the most relevant sections from the document based on the query.</p><pre>query = &quot;What is the most important innovation from Meta?&quot;<br>similar_docs = qdrant.similarity_search_with_score(query)</pre><ul><li>The query is converted into an embedding using the same model we used earlier (BAAI/bge-base-en-v1.5).</li><li>Qdrant searches for vectors that are closest to the query in high-dimensional space.</li><li>The retrieved documents are returned with similarity scores.</li></ul><p>To analyze the results, we loop through the retrieved documents and print their text snippet and similarity score:</p><pre>for doc, score in similar_docs:<br>print(f&quot;text: {doc.page_content[:256]}\n&quot;)<br>print(f&quot;score: {score}&quot;)<br>print(&quot;-&quot; * 80)<br>print()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QM7wfzUVLeawWWvm" /></figure><ul><li>A higher score means a better match.</li><li>A low score may indicate the query is not well covered in the document.</li></ul><p>Next, we then create a retriever that fetches the top 5 most relevant results:</p><pre>retriever = qdrant.as_retriever(search_kwargs={&quot;k&quot;: 5})<br>retrieved_docs = retriever.invoke(query)</pre><p>We use a retriever because it automatically picks the top 5 most relevant results, instead of manually specifying a similarity threshold. Also, they are more efficient for question-answering tasks.</p><p>Now, using the code below, we print the metadata of each retrieved document (e.g., an _id to track its source):</p><pre>for doc in retrieved_docs:<br>print(f&quot;id: {doc.metadata[&#39;_id&#39;]}\n&quot;)<br>print(f&quot;text: {doc.page_content[:256]}\n&quot;)<br>print(&quot;-&quot; * 80)<br>print()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IssHAdpbEU_Nts4Z" /></figure><p>This helps trace back to the original document source and is useful for debugging retrieval performance.</p><h3>Step 6: Use Contextual Compression</h3><p>Once we retrieve relevant documents, we further rerank and refine them using Flashrank to improve accuracy.</p><p><strong>What is Contextual Compression?</strong></p><ul><li>Problem: The retrieved documents may still contain irrelevant or less useful information.</li><li>Solution: Flashrank improves results by reranking documents based on relevance to the query.</li></ul><p>We first initialize the Flashrank Reranker and use it with the ms-marco-MiniLM-L-12-v2 model:</p><pre>compressor = FlashrankRerank(model=&quot;ms-marco-MiniLM-L-12-v2&quot;)<br>compression_retriever = ContextualCompressionRetriever(<br>base_compressor=compressor, base_retriever=retriever<br>)</pre><ul><li>Base Retriever fetches top results (Step 5 output).</li><li>Flashrank re-evaluates and reranks them based on query relevance.</li><li>Higher semantic similarity = Higher ranking.</li></ul><p>We then retrieve and rerank the documents and fetch the refined results:</p><pre>reranked_docs = compression_retriever.invoke(query)<br>len(reranked_docs)</pre><ul><li>Compression retriever processes retrieved docs.</li><li>Ranks them based on query relevance score.</li><li>Returns a more focused list of results.</li></ul><p>Finally, we display the reranked document IDs, content snippets, and relevance scores as it helps analyze ranking quality.</p><pre>for doc in reranked_docs:<br>print(f&quot;id: {doc.metadata[&#39;_id&#39;]}\n&quot;)<br>print(f&quot;text: {doc.page_content[:256]}\n&quot;)<br>print(f&quot;score: {doc.metadata[&#39;relevance_score&#39;]}&quot;)<br>print(&quot;-&quot; * 80)<br>print()</pre><ul><li>Higher score = Better contextual match.</li></ul><h3>Step 7: Build a Question-Answering System</h3><p>Now that we have retrieved, ranked, and compressed the most relevant documents, we can build a Q&amp;A system using Groq’s Llama3–70B model.</p><p>We use ChatGroq with a temperature=0 to ensure deterministic (fact-based) responses:</p><pre>llm = ChatGroq(temperature=0, model_name=&quot;llama3–70b-8192&quot;)</pre><ul><li>Llama3–70B is large-scale model optimized for factual accuracy.</li><li>8192 token context window for processing long-form documents.</li><li>Temperature = 0 ensures precise, reliable answers (no hallucinations).</li></ul><p>We define a <strong>prompt template</strong> that structures how the LLM processes retrieved documents:</p><pre>prompt_template = &quot;&quot;&quot;<br>Use the following pieces of information to answer the user&#39;s question.<br>If you don&#39;t know the answer, just say that you don&#39;t know, don&#39;t try to make up an answer.<br>Context: {context}<br>Question: {question}<br>Answer the question and provide additional helpful information,<br>based on the pieces of information, if applicable. Be succinct.<br>Responses should be properly formatted to be easily read.<br>&quot;&quot;&quot;<br>prompt = PromptTemplate(<br>template=prompt_template, input_variables=[&quot;context&quot;, &quot;question&quot;]<br>)<br>We connect the Groq LLM with our retriever to answer user questions:<br><br>qa = RetrievalQA.from_chain_type(<br>llm=llm,<br>chain_type=&quot;stuff&quot;,<br>retriever=compression_retriever,<br>return_source_documents=True,<br>chain_type_kwargs={&quot;prompt&quot;: prompt, &quot;verbose&quot;: True},<br>)</pre><ul><li>Retrieves top documents (from Step 6).</li><li>Passes them into the LLM along with the user’s question.</li><li>Generates a structured answer while referencing the retrieved documents.</li></ul><p>We next define a function to format the responses for better readability:</p><pre>def print_response(response):<br>response_txt = response[&quot;result&quot;]<br>for chunk in response_txt.split(&quot;\n&quot;):<br>if not chunk:<br>print()<br>continue<br>print(&quot;\n&quot;.join(textwrap.wrap(chunk, 100, break_long_words=False)))</pre><p>The function Improves readability by wrapping text at 100 characters and avoids breaking words mid-sentence for better UX.</p><h3>Example Queries</h3><p>We now query the system for key insights:</p><p><strong>1) What is Meta’s most significant innovation?</strong></p><pre>response = qa.invoke(&quot;What is the most significant innovation from Meta?&quot;)<br>print_response(response)</pre><p><strong>2) What is the revenue for 2024 and % change?</strong></p><pre>response = qa.invoke(&quot;What is the revenue for 2024 and % change?&quot;)<br>Markdown(response[&quot;result&quot;])</pre><p><strong>3) What is the revenue for 2023?</strong></p><pre>response = qa.invoke(&quot;What is the revenue for 2023?&quot;)<br>print_response(response)</pre><p><strong>4) Revenue minus costs &amp; expenses (Profit Calculation)</strong></p><pre>response = qa.invoke(&quot;How much is the revenue minus the costs and expenses for 2024? Calculate the answer&quot;)<br>print_response(response)</pre><pre>response = qa.invoke(&quot;How much is the revenue minus the costs and expenses for 2023? Calculate the answer&quot;)<br>print_response(response)</pre><p><strong>5) Expected revenue for Q2 2024</strong></p><pre>response = qa.invoke(&quot;What is the expected revenue for the second quarter of 2024?&quot;)<br>print_response(response)</pre><p><strong>6) Overall Q1 2024 Outlook</strong></p><pre>response = qa.invoke(&quot;What is the overall outlook of Q1 2024?&quot;)<br>print_response(response)</pre><p><em>Note: Special thanks to </em><a href="https://github.com/curiousily"><em>Venelin Valkov</em></a><em> for his Github repo on AI-Bootcamp: Advanced RAG with Llama-3 in LangChain.</em></p><p>Congratulations! You have successfully built an AI-powered <strong>retrieval-based question-answering system</strong> using LangChain, Qdrant, and LlamaParse. You can now ask questions about Meta’s financial report and get precise answers from the document.</p><p>To further enhance your AI and data science skills, explore <strong>ProjectPro</strong>, a platform offering real-world projects to help you gain hands-on experience. Here are some exciting projects from the <strong>ProjectPro repository</strong> that you can work on next:</p><ul><li><a href="https://www.projectpro.io/project-use-case/langchain-project-for-customer-support-app-in-python"><strong>Chatbot using OpenAI and LangChain</strong></a> — Build an AI-powered customer support chatbot that understands and responds to queries effectively.</li><li><a href="https://www.projectpro.io/project-use-case/llm-project-for-beginners-to-build-and-fine-tune-an-llm"><strong>LLM-based Text Summarization</strong> </a>— Learn to fine-tune an LLM for efficient text summarization.</li><li><a href="https://www.projectpro.io/project-use-case/gan-mnist-pytorch"><strong>GAN-based Image Generation</strong></a> — Develop a Generative Adversarial Network (GAN) to generate realistic images from scratch.</li></ul><p>Start building more projects today to gain hands-on experience and accelerate your AI journey! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78496cdca043" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/how-to-build-an-advanced-rag-system-with-langchain-78496cdca043">How To Build an Advanced RAG System with LangChain?</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Recommendation System in Python?]]></title>
            <link>https://medium.com/projectpro/how-to-build-a-recommendation-system-in-python-c27c61add8dc?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/c27c61add8dc</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 08:43:31 GMT</pubDate>
            <atom:updated>2025-01-13T08:43:31.261Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, we’ll guide you on how to build an AI-powered recommendation system using Python libraries like Pandas, NumPy, Matplotlib, and Seaborn. We will use the dataset containing movie ratings and build a collaborative filtering-based recommendation system capable of suggesting similar movies based on user preferences. Here’s what the tutorial will cover:</p><ol><li>Loading and merging datasets.</li><li>Exploring and visualizing movie ratings.</li><li>Creating a user-item matrix.</li><li>Using correlations to find similar movies.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*UUrPK2grkf6b09UaqEvBuQ.jpeg" /></figure><h3>Step 1: Load and Merge the Data</h3><p>First, download the dataset- <a href="https://github.com/ProjectProRepo/How-to-Build-an-AI-powered-Recommendation-System-/blob/main/datasets/u.data">u.data</a> and <a href="https://github.com/ProjectProRepo/How-to-Build-an-AI-powered-Recommendation-System-/blob/main/datasets/Movie_Id_Titles.txt">Movie_Id_Titles</a> from the Recommendation system project on <a href="https://github.com/ProjectProRepo">ProjectPro’s GitHub repository</a> and load it into your current Google colab environment.</p><p><strong>1.1 Loading User Ratings</strong></p><p>The file called u.data stores data related to users who have rated movies. It includes four columns: user_id, item_id (the movie’s ID), rating (how much the user liked it), and timestamp (when they rated it). Let’s load it and make it readable.</p><pre>import numpy as np<br>import pandas as pd<br># Define column names<br>column_names = [&#39;user_id&#39;, &#39;item_id&#39;, &#39;rating&#39;, &#39;timestamp&#39;]<br># Load the dataset<br>df = pd.read_csv(&#39;u.data&#39;, sep=&#39;\t&#39;, names=column_names)<br># Display the first 10 rows<br>df.head(10)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/0*In4GELysTjoHnZ1R" /></figure><p><strong>What’s Happening?</strong></p><ul><li>sep=’\t’ tells Python the file is tab-separated.</li><li>names=column_names adds nice, descriptive headers. Without this, we’d be staring at raw, cryptic data.</li></ul><p><strong>1.2 Adding Movie Titles</strong></p><p>The movie IDs alone aren’t very helpful (who knows what “item_id 123” means?). Luckily, we have another file, Movie_Id_Titles.txt, which maps these IDs to actual movie titles.</p><pre>movie_titles = pd.read_csv(&quot;Movie_Id_Titles.txt&quot;)<br>movie_titles.head()</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*SHV7e1tgOPdd6uqg" /></figure><p>Now, let’s merge these two datasets to connect the ratings with movie names.</p><pre>df = pd.merge(df,movie_titles,on=&#39;item_id&#39;)<br>df.head(10)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/0*66V3Di11kG5J4igJ" /></figure><p>We joined the movie titles to the ratings data as it makes it way easier to understand which movie got rated and how much.</p><h3>Step 2: Let’s Explore the Data</h3><p>Before we jump into recommendations, let’s get to know our data better. It’s like understanding the rules of a game before playing.</p><p><strong>2.1 What’s the Average Rating for Movies?</strong></p><p>Have you ever wondered which movies are fan favorites? Let’s calculate the average rating for each movie.</p><p>df.groupby(‘title’)[‘rating’].mean().sort_values(ascending=False).head()</p><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/0*p7lNiBgglzVYHfEV" /></figure><p>Here, we’re grouping ratings by movie titles, taking their average, and sorting the results from best to worst.</p><p><strong>2.2 How Many Ratings Does Each Movie Have?</strong></p><p>Some movies might have high ratings but only a handful of votes. Let’s count how many times each movie has been rated.</p><p>df.groupby(‘title’)[‘rating’].count().sort_values(ascending=False).head()</p><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/0*1DBmkA-D7Zt96_U7" /></figure><h3>Step 3: Let’s Build a Rating Summary</h3><p>We’ll combine what we’ve learned — average ratings and number of ratings — into two separate neat tables.</p><pre>ratings = pd.DataFrame(df.groupby(&#39;title&#39;)[&#39;rating&#39;].mean())<br>ratings.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/0*NxmjA-CZcOf0_NCj" /></figure><pre>ratings[&#39;num of ratings&#39;] = pd.DataFrame(df.groupby(&#39;title&#39;)[&#39;rating&#39;].count())<br>ratings.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*9-Jp6WOXC39MTQmb" /></figure><p>This helps us learn not just how good each movie is but also how popular it is.</p><h3>Step 4: Visualize the Data</h3><p>It’s time for some charts! Let’s see what the data looks like.</p><p><strong>4.1 How Many Ratings Do Movies Get?</strong></p><p>Do some movies have a ton of ratings while others are barely rated? Let’s plot that.</p><pre>import matplotlib.pyplot as plt<br>import seaborn as sns<br>sns.set_style(&#39;white&#39;)<br>%matplotlib inline<br>plt.figure(figsize=(10,4))<br>ratings[&#39;num of ratings&#39;].hist(bins=70)</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/0*lurr2UNoel_20Adb" /></figure><p><strong>4.2 How Are Movies Rated?</strong></p><p>Let’s see the distribution of average ratings.</p><pre>plt.figure(figsize=(10,4))<br>ratings[&#39;rating&#39;].hist(bins=70)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/0*MNRLjhylgg0qlfNB" /></figure><p><strong>4.3 Do Popular Movies Get Better Ratings?</strong></p><p>Let’s see if there’s a relationship between the number of ratings and the average rating.</p><pre>sns.jointplot(x=&#39;rating&#39;,y=&#39;num of ratings&#39;,data=ratings,alpha=0.5)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*FtoiXf-N_Xk04GUi" /></figure><h3>Step 5: Build the User-Item Matrix</h3><p>This step is the backbone of our system. We’ll create a giant table where:</p><ul><li>Rows = Users</li><li>Columns = Movies</li><li>Values = Ratings</li></ul><pre>moviemat = df.pivot_table(index=&#39;user_id&#39;,columns=&#39;title&#39;,values=&#39;rating&#39;)<br>moviemat.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KJezub4BOoPZE3YZ" /></figure><p>Now, we’ve got a matrix of users and the movies they’ve rated. If a cell is empty, it means the user didn’t rate that movie.</p><pre>ratings.sort_values(&#39;num of ratings&#39;,ascending=False).head(10)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/0*RFx37JeuYgnGeu_J" /></figure><pre>ratings.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*DIOa7CV7OHoidq8I" /></figure><h3>Step 6: Find Similar Movies</h3><p>Here’s the fun part — recommendations!</p><p><strong>6.1 Pick a Movie</strong></p><p>Let’s start with Star Wars (1977). We’ll grab the ratings for this movie.</p><pre>starwars_user_ratings = moviemat[&#39;Star Wars (1977)&#39;]<br>starwars_user_ratings.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*1VXMK9LJCGD1ckjf" /></figure><p><strong>6.2 Correlate With Other Movies</strong></p><p>Using correlation, we’ll calculate how similar each movie is to Star Wars (1977).</p><pre>similar_to_starwars = moviemat.corrwith(starwars_user_ratings)<br>similar_to_starwars</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/0*DX6V7WM0fzzP4TAo" /></figure><p><strong>6.3 Clean and Filter</strong></p><p>Let’s clean this by removing NaN values and using a DataFrame instead of a series:</p><pre>corr_starwars = pd.DataFrame(similar_to_starwars,columns=[&#39;Correlation&#39;])<br>corr_starwars.dropna(inplace=True)<br>corr_starwars.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*zESLB48VjYUMbFuW" /></figure><p>Now, if we sort the dataframe by correlation, we should get the most similar movies, however, note that we get some results that don’t really make sense. This is because there are a lot of movies that users only watch once, and they also watched Star Wars (it was the most popular movie).</p><pre>corr_starwars.sort_values(&#39;Correlation&#39;,ascending=False).head(10)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*dDSsf02yDCDicghG" /></figure><p>Let’s fix this by filtering out movies that have less than 100 reviews (this value was chosen based off the histogram from earlier).</p><pre>corr_starwars = corr_starwars.join(ratings[&#39;num of ratings&#39;])<br>corr_starwars.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/0*msGz0wbaHq73q1SB" /></figure><p>Now sort the values and notice how the titles make a lot more sense:</p><p># Filter movies with more than 100 ratings and sort by similarity</p><pre>corr_starwars[corr_starwars[&#39;num of ratings&#39;] &gt; 100].sort_values(&#39;Correlation&#39;, ascending=False).head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*QGrxasajrooAmZ99" /></figure><p>Thus, now you’ve got a list of movies most similar to Star Wars (1977).</p><p>This AI recommendation system in Python (inspired by <a href="https://github.com/shivam1808/Recommendation-System/tree/master">this GitHub repo</a>) is just the beginning. You can take this further by adding advanced filtering or deploying it as a web app. You can also learn how to build a recommendation system using <a href="https://www.projectpro.io/article/common-machine-learning-algorithms-for-beginners/202">machine learning algorithms</a> like KNN, Bayesian model, etc. Beyond traditional methods, <a href="https://www.projectpro.io/article/large-language-models/958">Large Language Models (LLMs)</a> open up exciting possibilities for building advanced recommendation systems. With their ability to understand context, analyze unstructured data, and generate meaningful insights, LLMs can create highly personalized and dynamic recommendations. Let’s explore how to build a recommendation system using LLMs. See <a href="https://www.youtube.com/watch?v=kyShEsfz6OU">how to build a Python recommendation system in action with this detailed video walkthrough</a>!</p><p>This tutorial provided a step-by-step guide to building a recommendation system in Python, equipping you with the knowledge to create data-driven movie suggestions. If you’re new to recommendation systems or want to explore more projects, platforms like <a href="https://www.kaggle.com/">Kaggle</a>, <a href="https://www.projectpro.io/">ProjectPro</a>, and <a href="https://github.com/ProjectProRepo/ProjectPro-Intro">GitHub</a> offer beginner-friendly tutorials and datasets to help you enhance your skills further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c27c61add8dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/how-to-build-a-recommendation-system-in-python-c27c61add8dc">How to Build a Recommendation System in Python?</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Your Own LLM from Scratch: A Pre-Development Checklist]]></title>
            <link>https://medium.com/projectpro/building-your-own-llm-from-scratch-a-pre-development-checklist-a03f47ed0469?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/a03f47ed0469</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 08:25:57 GMT</pubDate>
            <atom:updated>2025-01-13T08:25:57.276Z</atom:updated>
            <content:encoded><![CDATA[<p>Building your first LLM project can be exciting but requires the right mix of resources, knowledge, and technical tools. This checklist will guide you through the essential prerequisites, ensuring you have the foundational knowledge, resources, and mindset to <a href="https://www.projectpro.io/article/how-to-build-an-llm-from-scratch/1064">build your first LLM</a> and avoid any potential roadblocks. Here’s a list of what you’ll need to get started on your creating an LLM from scratch journey:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CfLHOoEhEaCO4g1e" /><figcaption>Photo by <a href="https://unsplash.com/@omilaev?utm_source=medium&amp;utm_medium=referral">Igor Omilaev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li><strong>Python Programming Skills</strong></li></ul><p>Python is the go-to language for AI development, offering robust libraries for machine learning and data processing. Libraries like NumPy and Pandas are invaluable for handling large datasets, while PyTorch and TensorFlow enable complex neural network training. Additionally, familiarity with Hugging Face’s Transformers library will speed up development, as it provides many pre-built tools for working with LLMs.</p><ul><li><strong>Key Machine Learning Topics</strong></li></ul><p>Understanding machine learning will significantly enhance your ability to build a powerful LLM. Topics like supervised learning, unsupervised learning, and reinforcement learning all play roles in creating and fine-tuning LLMs. Familiarity with concepts like hyperparameter tuning, regularization, and overfitting will also help optimize the model’s performance.</p><ul><li><strong>Deep Learning Knowledge</strong></li></ul><p>A strong understanding of deep learning is crucial for training an LLM from scratch. Concepts like neural networks, backpropagation, and gradient descent are at the core of LLM training. Knowledge of architectures like Transformers, which are specifically designed for handling sequences of data, is crucial for building effective language models. Tools such as PyTorch or TensorFlow offer accessible ways to implement these architectures.</p><ul><li><strong>High-Quality Data</strong></li></ul><p>A successful LLM relies on diverse, large-scale datasets that cover a wide range of language use cases. Publicly available data sources like Wikipedia, Common Crawl, or open-access books provide an extensive starting point. For specialized applications, curating domain-specific data will yield even better results, ensuring that the model aligns with your objectives.</p><ul><li><strong>Computational Power</strong></li></ul><p>Training LLMs requires significant processing capability. Access to high-performance GPUs or TPUs is essential to handle the extensive computations involved. Cloud platforms like AWS, Google Cloud, and specialized AI compute providers offer scalable solutions if in-house hardware isn’t available. Keep in mind that training can be a lengthy process, sometimes lasting weeks, so it’s essential to plan for time and cost accordingly.</p><ul><li><strong>Budget and Timeline</strong></li></ul><p>Building an LLM from scratch requires careful financial planning. Computational resources, cloud storage, and potential data costs add up, so setting a realistic budget and timeline is crucial. Many developers and companies start with smaller models to manage costs while scaling up once they have a workable prototype.</p><p>These essential components form the backbone of building an LLM from scratch, offering a comprehensive roadmap for navigating the complexities of AI development. If you’re looking for a beginner-friendly approach, start with smaller language models or explore guided projects on platforms like <a href="https://www.kaggle.com/">Kaggle</a>, <a href="https://www.projectpro.io/">ProjectPro</a>, and <a href="https://github.com/ProjectProRepo">GitHub</a> to gain hands-on experience and deepen your understanding of LLM fundamentals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a03f47ed0469" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/building-your-own-llm-from-scratch-a-pre-development-checklist-a03f47ed0469">Building Your Own LLM from Scratch: A Pre-Development Checklist</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Generative Models]]></title>
            <link>https://manikanagpal.medium.com/introduction-to-generative-models-9ab75060a414?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab75060a414</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Sun, 11 Feb 2024 06:38:57 GMT</pubDate>
            <atom:updated>2024-02-11T06:38:57.632Z</atom:updated>
            <content:encoded><![CDATA[<p>Step into the fascinating world of generative models, a key player in machine learning. Unlike other models that focus on predicting labels, generative models are like creative wizards — they not only understand existing data but also assist in creating entirely new data. Imagine them as artists trying to figure out the essence of all the information they’ve seen. These models work in different ways, from traditional methods to more modern and creative approaches. They’re not just algorithms but the building blocks of smart systems. They help us cook up new data, picture what could happen in the future, turn information into different forms, understand important patterns, and even fill in the blanks when data is missing. Let’s unravel the magic of generative models and see how they make machines more intelligent!</p><h3>What are Generative Models?</h3><p>At its core, a generative model is like a creative machine that learns from existing examples and generates new, similar things. It’s a computer program or algorithm that can create content, whether it’s images, text, or other data types.</p><p>Imagine you have a computer program that has seen many cat pictures. In this case, a generative model learns from these cat pictures and then tries to generate new pictures of cats on its own. The magic happens in the learning phase. The generative model looks at the existing cat pictures, analyzes what makes them cat-like, and figures out the patterns and features common to all cats. Once the model learns from the examples, it can create new cat pictures. It might not copy the exact pictures it learned from; instead, it uses what it learned about cats to create new, unique cat images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FmqJnYiFMWZlHZUC" /><figcaption>Photo by <a href="https://unsplash.com/@growtika?utm_source=medium&amp;utm_medium=referral">Growtika</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Generative models are not just for making art; they are used in many fields. In medicine, they can generate realistic images of organs for training doctors. In language, they can write new articles or stories. In music, they can compose new tunes. Generative models aren’t perfect. Sometimes, they might create weird or unrealistic things. But the cool part is that with more examples and more learning, they can keep improving and generate more realistic and meaningful stuff.</p><h3>Types of Generative Models</h3><p>Generative models play a pivotal role in various domains by creating data that resembles real-world examples. Here are some notable types of generative models, each employing unique strategies for data generation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5pJ5pMCp-LzZFmzyPCmYw.png" /><figcaption>Types of Generative Models</figcaption></figure><h4>Generative Adversarial Networks (GANs)</h4><p>GANs employ a two-network structure — a generator and a discriminator — engaged in a competitive process. The generator creates synthetic data, while the discriminator evaluates its authenticity. The generator aims to produce data indistinguishable from real examples, as discerned by the discriminator. GANs are widely used in image, text, and audio generation, fostering advancements in realistic content creation and manipulation.</p><h4>Variational Autoencoders (VAEs)</h4><p>VAEs learn to encode data into a latent space and then decode it, generating new samples based on the learned distribution. They utilize probabilistic representations, making them adept at tasks like image generation and applicable to various data types. VAEs are commonly employed in image generation tasks, and their flexibility extends to text and audio generation as well.</p><h4>Autoregressive Models</h4><p>Autoregressive models generate data sequentially, with each element’s generation conditioned on previously generated elements. Notable examples include language models such as GPT, which is capable of producing coherent and contextually relevant text. Autoregressive models are widely used in natural language processing and are pivotal in generating human-like text.</p><h4>Recurrent Neural Networks (RNNs)</h4><p>RNNs process sequential data by predicting the next element based on the preceding ones. They find applications in generating sequences, such as natural language sentences or time-series data. RNNs are commonly used for tasks requiring sequential data generation, such as language modeling and time-series prediction.</p><h4>Bayesian Networks</h4><p>Bayesian networks are graphical models representing probabilistic relationships among variables. They excel in scenarios where understanding causal relationships is crucial, such as medical diagnosis, by modeling relationships between symptoms and diseases. Bayesian networks are widely used in probabilistic reasoning, decision support systems, and medical diagnosis.</p><h4>Flow-based Generative Models</h4><p>Flow-based generative models use invertible transformations to map a simple distribution to a more complex one. They effectively generate high-quality images and have applications in image synthesis and style transfer. Flow-based models are valuable in tasks requiring high-fidelity image generation and manipulation.</p><h3>Applications of Generative Models in Various Fields</h3><p>Generative models, with their ability to create realistic and novel data, find applications across diverse domains. Let’s explore practical use cases and how generative models are leveraged to develop innovative solutions:</p><h4>Image Synthesis and Augmentation</h4><p>In industries like e-commerce or interior design, generative models can generate realistic images of products or scenes that don’t exist. This aids in creating appealing product catalogs or virtual room setups without needing costly photoshoots. Generative Adversarial Networks (GANs) excel in image synthesis. During training, a GAN’s generator learns to produce authentic-looking images, while the discriminator evaluates their realism. This process refines the generator’s ability to create diverse and high-quality images.</p><p>Sample Project Idea: <a href="https://github.com/hananshafi/Image-Augmentation-using-GAN">https://github.com/hananshafi/Image-Augmentation-using-GAN</a></p><h4>Style Transfer in Art and Design</h4><p>Artists and designers can apply generative models for style transfer, allowing them to transform the visual style of one image into another. This creates unique and personalized visual content, from paintings to photographs. Style transfer often involves the use of neural networks, such as convolutional neural networks (CNNs), to separate content and style in an image. Generative models then recreate the content with the desired style.</p><p>Sample Project Idea: <a href="https://github.com/lengstrom/fast-style-transfer">https://github.com/lengstrom/fast-style-transfer</a>T</p><h4>Text Generation and Summarization</h4><p>Generative models contribute to automated content creation, such as generating human-like text, creating product descriptions, or summarizing lengthy documents. Autoregressive models, like the Generative Pre-trained Transformer (GPT), are trained on vast amounts of text data. They learn language patterns and structures, enabling them to generate coherent and contextually relevant text in response to prompts.</p><p>Sample Project Idea: <a href="https://www.projectpro.io/project-use-case/text-summarization-transformers-bart-model">https://www.projectpro.io/project-use-case/text-summarization-transformers-bart-model</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*cy5j6UJNtlQf2HWo" /></figure><h4>Drug Discovery and Molecule Generation</h4><p>Generative models play a crucial role in drug discovery by generating novel molecular structures that may have therapeutic potential. This accelerates the process of identifying new drugs. Variational Autoencoders (VAEs) can be employed in molecular design. By learning the latent space of molecular structures, VAEs enable the generation of diverse and chemically valid molecules, facilitating drug discovery efforts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ebXqi3MoE96adT3c" /><figcaption>Photo by <a href="https://unsplash.com/@victoriabcphotographer?utm_source=medium&amp;utm_medium=referral">Christina Victoria Craft</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Deepfake and Content Manipulation</h4><p>While controversial, generative models like GANs are used in creating deepfake videos for entertainment or special effects in the film industry. GANs are trained on large datasets of real and synthetic content, enabling them to generate videos that convincingly manipulate facial expressions, gestures, and even voices.</p><h4>Medical Image Generation for Training</h4><p>Generative models contribute to generating realistic medical images for training healthcare professionals, aiding in tasks such as diagnostic imaging interpretation. GANs, particularly, are utilized to generate synthetic medical images that closely resemble real patient data. This synthetic data helps enhance the training of medical professionals without compromising patient privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bXVOV3N6pPSjw4EY" /><figcaption>Photo by <a href="https://unsplash.com/@nci?utm_source=medium&amp;utm_medium=referral">National Cancer Institute</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Anomaly Detection and Cybersecurity</h4><p>Generative models can be employed in cybersecurity to detect anomalies or intrusions by learning the normal patterns of network or system behavior. Bayesian networks and other generative models analyze the normal behavior of a system and flag deviations from this norm as potential threats, enabling proactive cybersecurity measures.</p><p>Sample Project Idea: <a href="https://www.projectpro.io/project-use-case/anomaly-detection-using-deep-learning-and-autoencoders">https://www.projectpro.io/project-use-case/anomaly-detection-using-deep-learning-and-autoencoders</a></p><p>In each of these applications, the choice of generative model depends on the nature of the data and the specific requirements of the task. Training these models involves exposing them to vast datasets, fine-tuning parameters, and validating their performance to ensure they generate accurate, diverse, and meaningful outputs in the targeted domain.</p><h3>Limitations of Generative Models</h3><p>Generative models, while transformative, face diverse challenges that can impact their effectiveness and safety across applications. Understanding these limitations is crucial for refining and responsibly deploying generative models.</p><ul><li>Poor or insufficient training data can lead to inaccuracies and incomplete outputs.</li><li>The demanding computational requirements for generative models can be expensive and time-consuming.</li><li>Generative AI, especially with large language models, may produce outputs detached from reality, causing gaps in reasoning.</li><li>Biased training data can result in discriminatory outcomes, impacting applications where unbiased results are crucial.</li><li>Generative models can be challenging to interpret, making it difficult to understand their output generation process and identify potential errors.</li><li>Generative models may generate unethical or inappropriate content, posing risks to privacy, security, and legal compliance.</li><li>Generative AI models can pose risks in various categories, such as functional (e.g., inaccurate or incomplete outputs), operational (e.g., computational requirements), and legal (e.g., copyright infringement or disclosure of personally identifiable information)</li></ul><p>Your journey of exploring generative models must not end here; you must now gain hands-on experience by working on projects that harness the creative power of generative models. Transform your ideas into reality with tools on <a href="https://www.kaggle.com/">Kaggle</a>, explore code repositories on <a href="https://github.com/">GitHub</a>, and elevate your projects on <a href="https://www.projectpro.io/">ProjectPro</a>. Join the revolution — turn imagination into innovation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab75060a414" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ProjectPro AI Newsletter: Jan 2024]]></title>
            <link>https://medium.com/projectpro/projectpro-ai-newsletter-jan-2024-696433de7fe9?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/696433de7fe9</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 17:17:08 GMT</pubDate>
            <atom:updated>2024-01-23T17:17:08.573Z</atom:updated>
            <content:encoded><![CDATA[<p>Unlocking the potential of data science and big data requires more than just expertise — it requires a community committed to sharing knowledge, insights, and innovative solutions. So, we are introducing you to the ProjectPro AI Newsletter, where the frontier of data-driven projects meets ingenuity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cTrAs-_RT84toUU8" /><figcaption>Photo by <a href="https://unsplash.com/@maria_shalabaieva?utm_source=medium&amp;utm_medium=referral">Mariia Shalabaieva</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this first edition, we delve into a treasure chest of new projects, insightful blogs, and engaging YouTube videos introduced in January by ProjectPro. From unraveling complex algorithms to decoding the latest industry trends, ProjectPro’s dedication to fostering learning and exploration in data science and big data shines through every piece of content they create. Join us as we navigate the vast landscape of innovation, empowerment, and knowledge dissemination in the next few sections</p><h3>New Projects</h3><p>Discover our latest hands-on projects in this section. Whether you’re diving into the buzzing topic in AI- Large Language Models or building practical applications in Python, these projects offer a chance to explore and understand the exciting world of data science and big data.</p><h4>LLM Project to Build and Fine-Tune a Large Language Model</h4><p>Large Language Models (LLMs) are revolutionizing natural language processing, empowering businesses across sectors. This project delves into LLM fundamentals, spotlighting prompt engineering and fine-tuning via techniques like LoRA. It demonstrates zero, one, and few-shot inferences, enhancing LLM functionality for targeted outputs. Leveraging OpenAI’s GPT-3.5 Turbo, it showcases Retrieval Augmented Generation (RAG) in a practical context — crafting an e-commerce chatbot with knowledge grounding, ensuring accuracy through real-time data verification. Aimed at providing comprehensive LLM insights and hands-on experience, this project covers dialogue summarization using knkarthick/dialogsum dataset and offers a step-by-step guide on constructing an RAG-based chatbot for online shopping.</p><p><a href="https://www.projectpro.io/project-use-case/llm-project-for-beginners-to-build-and-fine-tune-an-llm">LLM Project to Build and Fine Tune a Large Language Model</a></p><h4>Langchain Project for Customer Support App in Python</h4><p>This project delves into the transformative power of Large Language Models (LLMs) in today’s data-driven era. Exploring the intricacies of LLMs, emphasizes optimizing their functionality through prompt engineering and fine-tuning techniques like LoRA. Through zero-shot, one-shot, and few-shot inferences, it enables LLMs to generate desired responses. This comprehensive guide navigates full fine-tuning and Parameter Efficient Fine Tuning (PEFT), enhancing LLM adaptation while conserving resources.</p><p>Utilizing OpenAI’s GPT-3.5 Turbo, the project employs Retrieval Augmented Generation (RAG) to craft a trustworthy e-commerce chatbot. Grounded in knowledge validation, RAG prevents misinformation by integrating real-world data sources for accurate responses, crucial for online shopping queries.</p><p>Note: Utilizing OpenAI’s API may require allocated free credits or additional purchases based on account status.</p><p><a href="https://www.projectpro.io/project-use-case/langchain-project-for-customer-support-app-in-python">Langchain Project for Customer Support App in Python</a></p><h4>Learn to Build an End-to-End Machine Learning Pipeline — Part 1</h4><p>This project addresses the pressing issue of truck shipment delays in the logistics industry. By accurately predicting delays, it aims to enhance operational efficiency, customer satisfaction, and cost-effectiveness. In its initial phase, the project utilizes PostgreSQL, MySQL on AWS RDS, and AWS Sagemaker to set up a robust pipeline for data retrieval, exploratory analysis, and feature engineering, laying the groundwork for subsequent predictive modeling.</p><p>With a focus on creating an end-to-end machine learning pipeline for truck delay classification, this project spans data fetching, feature store creation, preprocessing, and feature engineering. Broken into a series of videos, it covers fundamental concepts, database setup, exploratory analysis using SQL and Python, and the significance of feature stores like Hopsworks. The tech stack includes Python, SQL, NumPy, Pandas, AWS Sagemaker, and more, ensuring a comprehensive understanding of logistical predictive modeling.</p><p>Key components of this project revolve around database management, exploratory analysis, AWS SageMaker setup, feature store utilization, data retrieval, preprocessing, and storage. By amalgamating these stages, the project aims to equip individuals with the skills and insights necessary to construct effective predictive models for tackling truck delay challenges in logistics.</p><p><a href="https://www.projectpro.io/project-use-case/build-an-end-to-end-machine-learning-pipeline-for-a-classification-model">Learn to Build an End-to-End Machine Learning Pipeline - Part 1</a></p><h4>Learn to Build an End-to-End Machine Learning Pipeline — Part 2</h4><p>This project targets the logistics industry’s challenge of delayed truck shipments, impacting operational costs and customer satisfaction. By accurately predicting delays, it aims to optimize resource allocation, enhance delivery schedules, and reduce costs incurred due to delays. Phase one focused on PostgreSQL, MySQL, AWS Sagemaker, and Hopsworks for data storage, retrieval, exploratory analysis, and initial feature group creation.</p><p>Part two delves deeper, concentrating on machine learning pipeline refinement. Emphasizing feature store data retrieval, model building with logistic regression, random forest, and XGBoost, it explores hyperparameter tuning, utilizing Weights and Biases for experimentation. Additionally, it covers model deployment via Streamlit on AWS, emphasizing cost-effective yet robust predictive modeling.</p><p>Utilizing Hopsworks’ feature store, Weights and Biases for experimentation, and AWS services like Sagemaker and EC2, this project aims to construct a comprehensive end-to-end machine learning pipeline. Data retrieval, model building, hyperparameter tuning, and Streamlit application deployment on AWS EC2 are core components, offering practical insights for tackling truck delay prediction in logistics.</p><p><a href="https://www.projectpro.io/project-use-case/build-and-deploy-an-end-to-end-machine-learning-pipeline-for-a-classification-model">Learn to Build an End-to-End Machine Learning Pipeline - Part 2</a></p><h3>New Blogs</h3><p>Explore fresh insights in our new blogs on the latest trending topics in AI. Whether you’re just starting or looking for a bit more challenge, these blogs provide useful tips for your learning journey.</p><h4>Practical Guide to Implementing Apache NiFi in Big Data Projects</h4><p>Explore the world of Apache NiFi — unveil its purpose, role in Big Data projects, key features, core concepts, and architecture. Delve into the transformative capabilities of Apache NiFi and discover how it fuels Big Data initiatives. Ready yourself to apply this knowledge with hands-on projects tailored by ProjectPro for mastering Apache NiFi.</p><p><a href="https://www.projectpro.io/article/apache-nifi/963">Practical Guide to Implementing Apache NiFi in Big Data Projects</a></p><h4>How to Learn Generative AI from Scratch in 2024?</h4><p>This blog will let you dive into the significance of mastering Generative AI from the ground up and explore our roadmap for learning Generative AI in 2024. Uncover the top courses and certifications from industry giants like Google and Microsoft, guiding you through the realm of Generative AI. Elevate your skills with ProjectPro’s tailored approach to mastering Generative AI, empowering you to navigate this transformative field with confidence.</p><p><a href="https://www.projectpro.io/article/learn-generative-ai/962">How to Learn Generative AI from Scratch in 2024?</a></p><h4>Top Careers in AI And Machine Learning For 2024</h4><p>Explore the career landscape in AI through this blog that covers top career paths like Machine Learning Engineer, AI Product Manager, and Robotics Engineer. Discover insights on the highest-paying roles, companies hiring, and FAQs for those aspiring to excel in the AI industry. Get future-ready with ProjectPro’s guide to thriving careers in AI and Machine Learning.”</p><p><a href="https://www.projectpro.io/article/careers-in-ai/961">Top Careers in AI And Machine Learning For 2024</a></p><h4>Top 10 PyCharm Project Ideas in Data Science</h4><p>Whether you’re a novice or looking for intermediate-level challenges, we’ve handpicked projects to enhance your data science skills. From projects for beginners to those with source code, our blog offers a curated selection to support your learning journey. Explore the possibilities and boost your skills with practical, hands-on PyCharm projects.</p><p><a href="https://www.projectpro.io/article/pycharm-project-ideas/964">10 Data Science PyCharm Project Ideas for Practice in 2024</a></p><h3>New Videos on YouTube</h3><p>This month, we’ve added a thought-provoking video- ‘An Approach to Real Life Data Science Interview Stage by Vivek Dani’ to the <a href="https://www.youtube.com/@ProjectProDataScienceProjects">ProjectPro YouTube Channel</a>. Join Vivek Dani, Research Software Engineer at Microsoft Research, as he shares insights on real-life Data Science interviews. Gain a deeper understanding of applied data scientist roles, interview preparation, and the distinctions between Microsoft Research and Microsoft IDC. Explore the nuances of machine learning roles, educational prerequisites, and essential skills for your ML journey. No frills, just valuable insights. Check out the video for a candid conversation on the realities of data science interviews.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp9UDOisTX58%3Fstart%3D1085%26feature%3Doembed%26start%3D1085&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp9UDOisTX58&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp9UDOisTX58%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7beb6237767eb4ad0efa7aed838bb1d0/href">https://medium.com/media/7beb6237767eb4ad0efa7aed838bb1d0/href</a></iframe><p>If you want to stay updated with such relevant content in the domain of data science and big data, we highly recommend you follow <a href="https://in.linkedin.com/company/goprojectpro">ProjectPro’s LinkedIn page</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=696433de7fe9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/projectpro-ai-newsletter-jan-2024-696433de7fe9">ProjectPro AI Newsletter: Jan 2024</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Gemini: The AI model by Google]]></title>
            <link>https://pub.towardsai.net/google-gemini-the-ai-model-by-google-b64717dfb301?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/b64717dfb301</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 22:01:29 GMT</pubDate>
            <atom:updated>2024-01-04T22:01:29.264Z</atom:updated>
            <content:encoded><![CDATA[<p>Google’s launch of Gemini, proclaimed as a groundbreaking AI model and their most potent yet, signals a continued surge in AI advancements. Despite AI&#39;s exceptional year since ChatGPT’s debut, the momentum shows no signs of slowing. OpenAI’s surprise at ChatGPT’s impact initially led to apprehension due to its wide capabilities, prompting calls for caution. However, with Google’s aggressive move, unveiling Bard earlier and now Gemini, the landscape is shifting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*feEPO0wpH2HQwfLd" /><figcaption>Photo by <a href="https://unsplash.com/@pawel_czerwinski?utm_source=medium&amp;utm_medium=referral">Pawel Czerwinski</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Gemini is apparently a new AI designed to compete with OpenAI. At first, people were excited by its impressive performance and flashy demo. But as experts looked closer, they found issues. The demo exaggerated what Gemini could do, and comparisons with existing AI showed it might not be as groundbreaking as thought. Still, Gemini stands out for its ability to understand different types of content. Despite some confusion, it could become a strong rival to other AI models, even though its full impact and release date are still uncertain.</p><p>Dive into more such exciting deets of Google Gemini with me in this blog!</p><h3>Google Gemini is multimodal</h3><p>PaLM 2, also known as Pathways Language Model 2, serves as Google’s fundamental technology fueling AI capabilities across its extensive range of offerings. This encompasses Google Cloud services, Gmail, Google Workspace, hardware like Pixel smartphones and Nest thermostats, and notably, the renowned AI chatbot Bard. Gemini marks a significant leap in AI evolution, distinct from Google’s PaLM 2. While PaLM 2 fuels Google’s extensive suite, Gemini stands out as a multimodal marvel, transcending conventional AI boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Qf_qc59KZucEL3SI" /><figcaption>Image by Business Insider</figcaption></figure><p>Sundar Pichai, unveiling Gemini amid its developmental phase, emphasized its core difference. “Gemini was created from the ground up to be multimodal,” he asserted. Multimodal AI, often misunderstood merely as adaptable to various content types, holds a deeper meaning for Google.</p><p>During Alphabet’s Q3 2023 earnings on October 24, Pichai hinted at the profound impact of this multimodal venture. “We’re laying the foundation for the next-generation series of models, rolling out throughout 2024,” he disclosed. The fervent pace of innovation underlines Google’s commitment to pioneering AI advancements.</p><h3>GPT-4 vs Google Gemini</h3><p>Gemini encompasses a range of models — Gemini Ultra, Gemini Pro, and Gemini Nano — each tailored for specific functions and computational power. It’s a natively multimodal AI, designed to seamlessly process text, images, audio, and code. In contrast, GPT-4 from OpenAI, the latest in the Generative Pre-trained Transformer series, is renowned for generating human-like text and handling text and image inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DXzd0QN9Msh3Uy3e" /><figcaption>Photo by <a href="https://unsplash.com/@ilgmyzin?utm_source=medium&amp;utm_medium=referral">ilgmyzin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The comparison between Gemini and GPT-4 reveals their strengths across various benchmarks. Gemini Ultra showcases prowess in diverse areas: from mathematics to code generation, image and video understanding, and audio processing. It excels in multi-discipline reasoning but slightly trails in certain areas like commonsense reasoning compared to GPT-4.</p><p>Gemini’s standout feature lies in its native multimodal capabilities, covering audio and video in addition to text and images, setting it apart from GPT-4. Integrated into Google Bard and tailored for different platforms, Gemini offers a versatile, powerful AI experience. Conversely, GPT-4’s dominance in language processing finds extensive use in content creation, translation, and education.</p><p>Both models — Gemini and GPT-4 — present distinct strengths, making the choice contingent upon specific task requirements. Gemini’s multimodal edge and integration within Google’s ecosystem make it a robust choice for audio and video processing, while GPT-4 shines in text-based AI tasks. As AI progresses, the potential and applications of these models are poised to expand, heralding an exciting phase in artificial intelligence.</p><p>Lastly, Gemini stands out due to its developer accessibility, unlike other models like ChatGPT. Pichai emphasized its efficiency with tools and APIs, showing Google’s intent to empower developers. Early access leaks revealed Gemini’s integration into MakerSuite, unveiling its multimodal capabilities for code generation, NLP apps, text, and object recognition.</p><h3>How can Organizations benefit from Google Gemini?</h3><p>Organizations can immensely benefit from Google’s Gemini- a multifaceted AI model designed for versatile integration and application. Its multimodal nature, capable of comprehending text, code, images, audio, and video, mirrors human-like perception and interpretation, enhancing its usability across various sectors.</p><p>Gemini’s integration into Google’s unified AI stack unlocks numerous opportunities. It synergizes with Google Cloud’s scalable infrastructure, offering leading-edge AI-optimized resources for training and deploying models, now inclusive of Gemini. The model’s flexibility spans from data centers to mobile devices, catering to varied computational needs.</p><p>Moreover, Gemini amplifies the Vertex AI platform, empowering developers to craft innovative agents spanning text, code, images, and video. With tools for customization, fine-tuning, and augmentation, Vertex AI harnesses Gemini’s potential, enabling comprehensive agent management and deployment.</p><p>The expansion of Duet AI, Google’s collaborative AI platform, incorporates Gemini’s capabilities across developer tools and security operations. It facilitates faster coding and enhanced troubleshooting and aids cybersecurity responses, accelerating threat detection and remediation.</p><p>Gemini’s addition propels advancements across Google’s AI technology stack. Cloud TPU advancements, like TPU v5p and AI Hypercomputer, cater to the escalating demands of GenAI models, ensuring high-performance and cost-efficiency. Furthermore, Google’s commitment to expanding indemnification and competitive pricing makes Gemini accessible to a broader spectrum of organizations.</p><p>Google’s comprehensive AI innovations, integrated with Gemini, pave the way for AI-powered advancements across industries. They offer unparalleled opportunities for organizations to revolutionize digital transformations, fostering the creation and adoption of advanced GenAI agents.</p><p>If you are interested in exploring the working of such AI innovations, we highly recommend you explore Large Language Models with the help of websites like <a href="https://www.kaggle.com/">Kaggle</a>, <a href="https://www.projectpro.io/">ProjectPro</a>, <a href="https://github.com/">GitHub</a>, etc.</p><p><em>Hope that was a fun info session on Google Gemini!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b64717dfb301" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/google-gemini-the-ai-model-by-google-b64717dfb301">Google Gemini: The AI model by Google</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top MLOps Books for Data Scientists to Read in 2024]]></title>
            <link>https://medium.com/projectpro/top-mlops-books-for-data-scientists-to-read-in-2024-ba097e505c97?source=rss-f4a3547e3a22------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba097e505c97</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Manika Nagpal]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 02:35:36 GMT</pubDate>
            <atom:updated>2023-12-22T02:35:36.334Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving domain of Artificial Intelligence, the fusion of data science and DevOps has given rise to a revolutionary discipline known as MLOps (Machine Learning Operations). Data scientists, armed with the power of data-driven insights, collaborate with DevOps professionals to create scalable and efficient machine learning pipelines that drive businesses forward. Whether you’re a data scientist seeking to operationalize your models or a DevOps engineer looking to understand the intricacies of machine learning, the right knowledge is your greatest asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TCzdg-S3BjVIZMzk" /><figcaption>Photo by <a href="https://unsplash.com/@maripotter?utm_source=medium&amp;utm_medium=referral">Mari Potter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This blog post is your compass to the world of MLOps literature. I understand that sifting through the endless bookshelves of information can be overwhelming, so I’ve curated a list of the top MLOps books that will equip you with the skills and insights necessary to excel in your career. Join me as I explore the books that bridge the gap between data science and DevOps, helping you navigate the exciting terrain of MLOps with confidence. These MLOps books will serve as your trusted guides for seamless, scalable, and efficient machine learning deployments. Let’s get started!</p><h3><strong>List of Best MLOps Books</strong></h3><p>Let us explore the top 10 most popular books on Amazon. I have added a detailed description of what each book covers so you can pick the one as per your needs.</p><ol><li><strong>Machine Learning Design Patterns: Solutions to Common Challenges in Data Preparation, Model Building, and MLOps</strong></li></ol><p>Author: Valliappa Lakshmanan, Sara Robinson, et al.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*dnZQP3cn7vNeX5mT.jpg" /><figcaption>Image Source: Amazon</figcaption></figure><p>This book is an indispensable resource for machine learning enthusiasts, data scientists, and MLOps professionals. Offering a comprehensive collection of design patterns, it tackles the most prevalent challenges in the machine learning journey, from data preparation to model construction and MLOps implementation. These patterns, coupled with practical insights and real-world examples, empower readers to optimize their machine-learning workflows, make informed decisions, and enhance the efficiency of their projects. Whether you’re a beginner or an experienced practitioner, this book equips you with a toolkit of best practices to navigate the complex landscape of machine learning.</p><p><strong>2. Machine Learning Engineering with Python: Manage the lifecycle of machine learning models using MLOps with practical examples</strong></p><p>Author: Andrew P. McMahon and Adi Polak</p><p>This book is a practical guide for implementing MLOps principles to manage the entire lifecycle of machine learning models. Designed for individuals with a foundational understanding of machine learning and Python programming, this book provides hands-on examples and valuable insights to streamline the deployment and maintenance of machine learning models in a production environment. It empowers data scientists, machine learning engineers, and DevOps professionals to automate critical processes, monitor model performance, and ensure the successful integration of MLOps practices into their organizations. By following the practical examples in this book, readers can improve the efficiency and effectiveness of their machine-learning projects in a real-world setting.</p><p><strong>3. Introducing MLOps: How to Scale Machine Learning in the Enterprise</strong></p><p>Author: Mark Treveil , Nicolas Omont, et al.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/0*S7xe1r-Y37IMOD9v.jpg" /><figcaption>Image Source: Amazon</figcaption></figure><p>This book is a comprehensive guide for organizations aiming to scale machine learning within the enterprise. It provides insights into the practical implementation of MLOps strategies, addressing challenges, and offering scalable solutions. From fostering collaboration between data scientists and operations teams to streamlining deployment processes, the authors provide a roadmap for integrating MLOps seamlessly into the enterprise workflow. This book is a valuable resource for those seeking to navigate the complexities of scaling machine learning initiatives while ensuring efficiency and collaboration across the organization.</p><p><strong>4. Cloud Native AI and Machine Learning on AWS: Use SageMaker for building ML models, automate MLOps, and take advantage of numerous AWS AI services (English Edition)</strong></p><p>Author: Premkumar Rangarajan and David Bounds</p><p>Here is a practical guide for leveraging AWS services to build, deploy, and scale machine learning models. Focused on Amazon SageMaker and other AWS AI services, the book provides hands-on examples for both beginners and experienced practitioners. Covering topics such as model building, MLOps automation, and utilizing AWS AI services, this book equips readers with the skills to harness the full potential of cloud-native machine learning on the AWS platform. It’s an essential resource for those looking to implement robust and scalable AI solutions in the cloud.</p><p><strong>5. Practical MLOps</strong></p><p>Author: Noah Gift and Alfredo Deza</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/0*bB5rNW9zHREQpciV.jpg" /><figcaption>Image Source: Amazon</figcaption></figure><p>The book provides practical insights into the integration of machine learning and operations, offering a step-by-step approach to building and deploying machine learning models. With a focus on real-world scenarios and practical solutions, the authors guide readers through the entire MLOps lifecycle. Whether you’re a data scientist, machine learning engineer, or operations professional, this book equips you with the knowledge and tools needed to implement MLOps best practices, ensuring the successful deployment and management of machine learning models in a production environment.</p><p><strong>6. Machine Learning in Production: Master the art of delivering robust Machine Learning solutions with MLOps (English Edition)</strong></p><p>Author: Suhas Pote</p><p>The book focuses on mastering the delivery of robust machine learning solutions using MLOps. It delves into the art of seamlessly transitioning machine learning models from development to production, emphasizing the importance of MLOps practices in ensuring the reliability and scalability of these solutions. The book covers various aspects, including model deployment, monitoring, and continuous integration/continuous deployment (CI/CD) pipelines. Readers can expect to learn about implementing MLOps methodologies and tools to create efficient, production-ready machine learning systems.</p><p><strong>7. Engineering MLOps: Rapidly build, test, and manage production-ready machine learning life cycles at scale</strong></p><p>Author: Emmanuel Raj</p><p>Emmanuel Raj’s book provides a comprehensive guide to rapidly building, testing, and managing production-ready machine learning lifecycles at scale. It focuses on enabling readers to efficiently handle the complexities of deploying machine learning models into production environments. The book emphasizes the importance of scalability and reliability while offering insights into setting up efficient CI/CD pipelines, versioning models, and automating MLOps processes. With practical examples and strategies, this book equips practitioners with the knowledge needed to streamline machine learning workflows effectively.</p><p><strong>8. Data Science Solutions on Azure: Tools and Techniques Using Databricks and MLOps</strong></p><p>Author: Julian Soh and Priyanshi Singh</p><p>Julian Soh and Priyanshi Singh’s book is tailored for data scientists and practitioners seeking solutions on Azure, leveraging Databricks and MLOps methodologies. It offers insights into utilizing Azure’s ecosystem for data science projects, emphasizing the integration of Databricks and MLOps for efficient model development, deployment, and management. The book covers topics like data exploration, feature engineering, model building, and deploying models using Azure services. Readers can expect to gain practical knowledge and techniques for leveraging Azure tools in conjunction with MLOps practices to streamline end-to-end data science workflows effectively.</p><p><strong>9. Continuous Machine Learning with Kubeflow: Performing Reliable MLOps with Capabilities of TFX, Sagemaker and Kubernetes (English Edition)</strong></p><p>Author: Aniruddha Choudhury</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/0*FhUQXKPtAdvWVoAJ.jpg" /><figcaption>Img Source: Amazon</figcaption></figure><p>Aniruddha’s book delves into the realm of continuous machine learning using Kubeflow, emphasizing the reliability and efficiency of MLOps with key tools like TensorFlow Extended (TFX), Sagemaker, and Kubernetes. It guides readers through the process of setting up, deploying, and managing machine learning workflows on Kubeflow, leveraging the capabilities of TFX for pipeline orchestration, Sagemaker for model building and deployment, and Kubernetes for container orchestration. This book offers a comprehensive view of how these tools integrate within the Kubeflow ecosystem, enabling practitioners to build and maintain robust, scalable machine learning systems effectively.</p><p><strong>10. Machine Learning Engineering on AWS: Build, scale, and secure machine learning systems and MLOps pipelines in production</strong></p><p>Author: Joshua Arvin Lat</p><p>Joshua Arvin Lat’s book focuses on machine learning engineering within the AWS ecosystem, providing guidance on building, scaling, and securing machine learning systems and MLOps pipelines in production. It covers a broad spectrum of topics, including model development, deployment, and maintenance using AWS services. The book delves into aspects of scalability, security, and reliability in deploying machine learning models on AWS infrastructure. It equips readers with practical insights and strategies to effectively manage the entire machine learning lifecycle within the AWS environment, integrating MLOps practices for streamlined operations.</p><p>Exploring MLOps via insightful books is vital, but true mastery blossoms through hands-on projects. Practical immersion with tools like Kubeflow, AWS, and Azure from these books fosters a profound understanding of deploying ML models. Enhance learning by exploring websites like <a href="https://github.com/">GitHub</a>, <a href="https://www.projectpro.io/">ProjectPro</a>, and <a href="https://www.kaggle.com/">Kaggle</a>, abundant with real-world <a href="https://www.projectpro.io/article/mlops-projects-ideas/486">MLOps projects</a>. Books lay the foundation, but active engagement with MLOps projects amplifies expertise. Dive in, experiment, collaborate, and extend learning beyond book pages to truly excel in the dynamic realm of machine learning operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba097e505c97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/projectpro/top-mlops-books-for-data-scientists-to-read-in-2024-ba097e505c97">Top MLOps Books for Data Scientists to Read in 2024</a> was originally published in <a href="https://medium.com/projectpro">ProjectPro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>