<?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[Generative AI in production - Medium]]></title>
        <description><![CDATA[Practical insights on deploying generative AI at scale. We cover model selection, comparison frameworks, experimental iteration, and production workflows. Join practitioners sharing real implementation stories, economic trade-offs, and team organization. - Medium]]></description>
        <link>https://medium.com/generative-ai-in-production?source=rss----f2ff2f9efbf7---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Generative AI in production - Medium</title>
            <link>https://medium.com/generative-ai-in-production?source=rss----f2ff2f9efbf7---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:55:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/generative-ai-in-production" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Measuring the Environmental Impact of Generative AI: A Look at Emerging Tools Ecologits vs AI…]]></title>
            <link>https://medium.com/generative-ai-in-production/measuring-the-environmental-impact-of-generative-ai-a-look-at-emerging-tools-ecologits-vs-ai-9417a85f18a1?source=rss----f2ff2f9efbf7---4</link>
            <guid isPermaLink="false">https://medium.com/p/9417a85f18a1</guid>
            <category><![CDATA[llm-evaluation]]></category>
            <category><![CDATA[environmental-impact]]></category>
            <category><![CDATA[sustainable-ai]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[genaiops]]></category>
            <dc:creator><![CDATA[Nicolas Drouet]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 14:31:38 GMT</pubDate>
            <atom:updated>2025-02-25T14:31:38.694Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Measuring the Environmental Impact of Generative AI: A Look at Emerging Tools Ecologits vs AI Energy Score</strong></h3><p>As generative AI models become more integrated into applications, concerns about their environmental footprint are growing. While training AI models is known to be energy-intensive, inference — the process of generating responses — also consumes significant resources, especially when deployed at scale via APIs. But how can developers and businesses accurately assess the impact of their AI usage?</p><p>Today, two emerging tools aim to address this challenge: <strong>EcoLogits</strong> and <strong>AI Energy Score</strong>. Both offer insights into the energy consumption of inference workloads, yet they differ in scope, methodology, and maturity. Let’s dive into their approaches and the broader implications of measuring AI’s environmental impact.</p><h3>Why Measure AI’s Environmental Footprint?</h3><p>AI-powered applications rely on massive computational infrastructure, leading to significant energy consumption and carbon emissions. Understanding the footprint of AI inference can help companies:</p><ul><li>Optimize model usage to reduce costs and environmental impact.</li><li>Choose more energy-efficient models or deployment strategies.</li><li>Push for greater transparency from AI providers regarding energy consumption.</li></ul><p>However, measuring this impact is challenging, especially when dealing with proprietary, black-box AI APIs. This is where EcoLogits and AI Energy Score come in.</p><h3>EcoLogits: Precision for API-Based AI Usage</h3><p>EcoLogits focuses on real-time tracking of energy consumption for API-based generative AI usage.</p><h3>Key Features:</h3><ul><li><strong>Granular Measurement</strong>: Estimates energy consumption per API request.</li><li><strong>Broader Impact Assessment</strong>: Provides insights into CO2 emissions and abiotic resource consumption.</li><li><strong>Support for Major LLM Providers</strong>: Works with OpenAI, Anthropic, and Mistral AI.</li><li><strong>Developer-Friendly Integration</strong>: Available as a Python package.</li><li><strong>Limited to LLMs</strong>: Does not currently support other generative AI models like text-to-image or speech recognition.</li></ul><p>EcoLogits is backed by <strong>GenAI Impact</strong>, an open-source initiative launched by Samuel Rincé. While still evolving, it offers a more precise approach for developers looking to assess the impact of their AI-powered applications.</p><p>Additionally, an <strong>online calculator</strong> is available <a href="https://huggingface.co/spaces/genai-impact/ecologits-calculator">here</a> to estimate energy consumption, carbon emissions, and even abiotic resource usage for different AI models. This tool helps users quickly assess the environmental footprint of their AI usage without needing direct integration into their code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRHOEfurw2oin3b7IcpHIQ.png" /></figure><h3>AI Energy Score: Standardized Comparisons for AI Models</h3><p>AI Energy Score, supported by <strong>Hugging Face and Salesforce</strong>, takes a different approach by assigning an energy efficiency score to AI models based on standardized datasets.</p><h3>Key Features:</h3><ul><li><strong>Wider Scope</strong>: Covers multiple AI tasks beyond LLMs, including image classification, summarization, and object detection.</li><li><strong>Standardized Benchmarking</strong>: Uses pre-defined datasets to run and score models.</li><li><strong>Simpler Outputs</strong>: Provides a GPU energy consumption score (Wh) and a 1–5 star rating.</li><li><strong>International Visibility</strong>: Supported by major AI companies, with growing industry adoption.</li><li><strong>Less Granular</strong>: Lacks per-query tracking and doesn’t measure CO2 emissions or other environmental factors.</li></ul><p>Unlike EcoLogits, AI Energy Score does not require installation or direct integration into code. Instead, it helps organizations compare AI models based on their energy efficiency before making deployment decisions.</p><p>AI Energy Score publish a leaderboard <a href="https://huggingface.co/spaces/AIEnergyScore/Leaderboard">here</a> to compare scoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jg9j1kYnl1wuLQ6_a2tkKw.png" /></figure><h3>Limitations and Challenges</h3><p>While both tools represent important steps toward sustainable AI, they are still in their early stages and face several limitations:</p><ul><li><strong>Limited Model Coverage</strong>: Not all AI models are supported. Additionally, the rapid release of new LLMs makes it difficult for benchmarks to keep pace, leading to delays in integration.</li><li><strong>Lack of Full Transparency from inference providers</strong>: For proprietary models (e.g., OpenAI’s GPT-4), energy estimations rely on indirect data, such as leaked architecture details or pricing-based assumptions.</li></ul><h3>The Future of AI Sustainability Metrics</h3><p>The emergence of EcoLogits and AI Energy Score highlights a growing demand for <strong>transparent, reliable environmental impact assessments</strong> in AI (I hope). While still evolving, these tools offer promising pathways for developers and organizations to make more informed decisions about their AI deployments.</p><p>Moving forward, we need:</p><ul><li><strong>Broader support for AI models and providers</strong>.</li><li><strong>More transparency from AI vendors on energy consumption data</strong>.</li><li><strong>Standardized methodologies to ensure comparability across tools</strong>.</li></ul><p>If you’re developing AI-powered applications, now is the time to start considering sustainability in your design choices. Which model do you use? How much energy does it consume? And what can you do to reduce its impact?</p><p>Let’s make AI not just intelligent, but also responsible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9417a85f18a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generative-ai-in-production/measuring-the-environmental-impact-of-generative-ai-a-look-at-emerging-tools-ecologits-vs-ai-9417a85f18a1">Measuring the Environmental Impact of Generative AI: A Look at Emerging Tools Ecologits vs AI…</a> was originally published in <a href="https://medium.com/generative-ai-in-production">Generative AI in production</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generating structured data from an image with GPT vision and Langchain]]></title>
            <link>https://medium.com/generative-ai-in-production/generating-structured-data-from-an-image-with-gpt-vision-and-langchain-34aaf3dcb215?source=rss----f2ff2f9efbf7---4</link>
            <guid isPermaLink="false">https://medium.com/p/34aaf3dcb215</guid>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Benoit Pothier]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 11:22:35 GMT</pubDate>
            <atom:updated>2024-04-11T04:42:00.677Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPRRg85jYb7MrzXEpNWbmw.jpeg" /><figcaption>(Image generated with AI)</figcaption></figure><p>In today’s world, where visual data is abundant, the ability to extract meaningful information from images is becoming increasingly valuable. Langchain, a powerful framework for building applications with large language models (LLMs), offers a versatile toolset for tackling this challenge. In this article, we’ll explore how to use Langchain to extract structured information from images, such as counting the number of people and listing the main objects.</p><p>Before diving into the code, let’s set the stage by understanding the task at hand. Imagine you have an image of a scene, such as a city street. Your goal is to extract valuable information from this image, including the number of people present and a list of the main objects in the scene.</p><h3>About Langchain</h3><p>Langchain is a comprehensive framework that allows developers to build sophisticated applications by leveraging the power of large language models (LLMs). It provides a modular and extensible architecture, enabling developers to create custom pipelines, agents, and workflows tailored to their specific needs.</p><p>Langchain simplifies the integration of LLMs, offering abstractions and utilities for handling various data sources, including text, images, and structured data. It supports a wide range of LLMs from different providers, such as OpenAI and Anthropic, making it easy to switch between models or combine multiple models in a single application.</p><h3>Preparing the Environment and Setting Up the OpenAI API Key</h3><p>To follow along with this tutorial, you’ll need to have Langchain installed. You can install it using pip:</p><pre>pip install langchain langchain_openai</pre><p>To use the OpenAI language models with Langchain, you’ll need to obtain an API key from OpenAI. If you don’t have an API key yet, you can sign up for one on the OpenAI website (<a href="https://openai.com/api/">https://openai.com/api/</a>).</p><p>Once you have your API key, you can set it as an environment variable in your system or provide it directly in your code. Here’s an example of how to set the API key as an environment variableCopy code</p><pre>export OPENAI_API_KEY=&quot;your_openai_api_key_here&quot;</pre><p>Alternatively, you can provide the API key directly in your Python code:</p><pre>import os<br>import langchain<br>os.environ[&quot;OPENAI_API_KEY&quot;] = &quot;your_openai_api_key_here&quot;</pre><p>After setting up the API key, Langchain will be able to authenticate with the OpenAI API and use their language models.</p><h3>Loading and Encoding the Image</h3><p>Before we can process images with Langchain, we need to load the image data from a file and encode it in a format that can be passed to the language model. The code below defines a function load_image that takes a dictionary with an image_path key and returns a new dictionary with an image key containing the image data encoded as a base64 string.</p><pre>def load_image(inputs: dict) -&gt; dict:<br>    &quot;&quot;&quot;Load image from file and encode it as base64.&quot;&quot;&quot;<br>    image_path = inputs[&quot;image_path&quot;]<br>  <br>    def encode_image(image_path):<br>        with open(image_path, &quot;rb&quot;) as image_file:<br>            return base64.b64encode(image_file.read()).decode(&#39;utf-8&#39;)<br>    image_base64 = encode_image(image_path)<br>    return {&quot;image&quot;: image_base64}</pre><p>The load_image function first extracts the image_path from the input dictionary. It then defines a nested function encode_image that opens the image file in binary mode, reads its contents, and encodes them as a base64 string using the base64.b64encode function from the Python standard library.</p><p>The load_image function calls encode_image with the provided image_path and stores the resulting base64-encoded string in the image_base64 variable. Finally, it returns a new dictionary with the image key set to image_base64.</p><p>To integrate this function into a Langchain pipeline, we can create a TransformChain that takes the image_path as input and produces the image (base64-encoded string) as outputCopy code</p><pre>load_image_chain = TransformChain(<br>    input_variables=[&quot;image_path&quot;],<br>    output_variables=[&quot;image&quot;],<br>    transform=load_image<br>)</pre><p>With this setup, we can easily load and encode images as part of a larger Langchain workflow, enabling us to process visual data alongside text using large language models.</p><h3>Defining the Output Structure</h3><p>Before we can extract information from the image, we need to define the structure of the output we want to receive. In this case, we’ll create a Pydantic model called `ImageInformation` that includes fields for the image description and any additional information we might want to extract.</p><pre>from langchain_core.pydantic_v1 import BaseModel, Field<br><br>class ImageInformation(BaseModel):<br> &quot;&quot;&quot;Information about an image.&quot;&quot;&quot;<br> image_description: str = Field(description=&quot;a short description of the image&quot;)<br> people_count: int = Field(description=&quot;number of humans on the picture&quot;)<br> main_objects: list[str] = Field(description=&quot;list of the main objects on the picture&quot;)</pre><h3>Setting up the Image Model</h3><p>Next, we’ll create a chain that combines the image loading and encoding steps with the LLM invocation step. Since the ChatOpenAI model is not natively capable of handling both text and image inputs simultaneously (to my unsderstanding), we&#39;ll create a wrapper chain to achieve this functionality.</p><pre>from langchain.chains import TransformChain<br>from langchain_core.messages import HumanMessage<br>from langchain_openai import ChatOpenAI<br>from langchain import globals<br>from langchain_core.runnables import chain<br><br># Set verbose<br>globals.set_debug(True)<br><br>@chain<br>def image_model(inputs: dict) -&gt; str | list[str] | dict:<br> &quot;&quot;&quot;Invoke model with image and prompt.&quot;&quot;&quot;<br> model = ChatOpenAI(temperature=0.5, model=&quot;gpt-4-vision-preview&quot;, max_tokens=1024)<br> msg = model.invoke(<br>             [HumanMessage(<br>             content=[<br>             {&quot;type&quot;: &quot;text&quot;, &quot;text&quot;: inputs[&quot;prompt&quot;]},<br>             {&quot;type&quot;: &quot;text&quot;, &quot;text&quot;: parser.get_format_instructions()},<br>             {&quot;type&quot;: &quot;image_url&quot;, &quot;image_url&quot;: {&quot;url&quot;: f&quot;data:image/jpeg;base64,{inputs[&#39;image&#39;]}&quot;}},<br>             ])]<br>             )<br> return msg.content</pre><p>In this code snippet, we define a chain called image_model that invokes the ChatOpenAI model with the provided prompt, format instructions, and image. The image_model chain accepts a dictionary inputs containing the prompt and the base64-encoded image string.</p><p>Inside the chain, we create a HumanMessage object that combines the prompt text, format instructions, and the image URL, formatted as a data URI with the base64-encoded image data. We then invoke the ChatOpenAI model with this HumanMessage object, using the gpt-4-vision-preview model, which is specifically designed for multimodal tasks involving both text and images.</p><p>The model processes both the text prompt and the image, and returns the output.</p><h3>Putting It All Together</h3><p>Now that we have all the necessary components, we can define a function that orchestrates the entire process:</p><pre>from langchain_core.output_parsers import JsonOutputParser<br><br>parser = JsonOutputParser(pydantic_object=ImageInformation)<br>def get_image_informations(image_path: str) -&gt; dict:<br>   vision_prompt = &quot;&quot;&quot;<br>   Given the image, provide the following information:<br>   - A count of how many people are in the image<br>   - A list of the main objects present in the image<br>   - A description of the image<br>   &quot;&quot;&quot;<br>   vision_chain = load_image_chain | image_model | parser<br>   return vision_chain.invoke({&#39;image_path&#39;: f&#39;{image_path}&#39;, <br>                               &#39;prompt&#39;: vision_prompt})</pre><p>In this function, we define a prompt that asks the LLM to provide a count of the people in the image and a list of the main objects. We then create a chain that combines the image loading step (`load_image_chain`), the LLM invocation step (`image_model`), and a JSON output parser (`parser`). Finally, we invoke this chain with the image path and the prompt, and the function returns a dictionary containing the extracted information.</p><h3>Example Usage</h3><p>To use this function, simply provide the path to an image file:</p><pre>result = get_image_informations(&quot;path/to/your/image.jpg&quot;)<br>print(result)</pre><p>This will output a dictionary with the requested information, such as:</p><pre>{<br> &#39;description&#39;: &#39;a view of a city showing cars waiting at a traffic light&#39;,<br> &#39;people_count&#39;: 5,<br> &#39;main_objects&#39;: [&#39;car&#39;, &#39;building&#39;, &#39;traffic light&#39;, &#39;tree&#39;]<br>}</pre><h3>Conclusion</h3><p>Langchain provides a powerful toolset for working with large language models and extracting valuable information from various data sources, including images. By combining Langchain’s capabilities with custom prompts and output parsing, you can create robust applications that can extract structured information from visual data.</p><p>Remember, the quality of the output will depend on the capabilities of the LLM you’re using and the specificity of your prompts. Experiment with different models and prompts to find the best solution for your use case.</p><p>If you find a better way to achieve the same results or have suggestions for improvements, please don’t hesitate to share them in the comments. The code examples provided in this article are meant to serve as a starting point, and there may be alternative approaches or optimizations .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34aaf3dcb215" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generative-ai-in-production/generating-structured-data-from-an-image-with-gpt-vision-and-langchain-34aaf3dcb215">Generating structured data from an image with GPT vision and Langchain</a> was originally published in <a href="https://medium.com/generative-ai-in-production">Generative AI in production</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A live chatbot with Databricks in 3 days]]></title>
            <link>https://medium.com/generative-ai-in-production/a-live-chatbot-with-databricks-in-3-days-029ac67419d6?source=rss----f2ff2f9efbf7---4</link>
            <guid isPermaLink="false">https://medium.com/p/029ac67419d6</guid>
            <category><![CDATA[customer-engagement]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[chatbot-design]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Benoit Pothier]]></dc:creator>
            <pubDate>Tue, 25 Feb 2025 11:22:16 GMT</pubDate>
            <atom:updated>2024-04-24T08:23:45.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anD_LEG8eGGJuSThocwiKQ.png" /><figcaption>Image generated with AI</figcaption></figure><p>How we have been able to build a basic product recommendation chatbot live on an e-commerce web site using RAG and vector databases in a few days.</p><h3>The use case</h3><p>Kiliba, the company I’m working with has a mission to empower enterprises worldwide to meaningfully engage with their customers. Our historical product is to <strong>send personalised customer marketing emails on autopilot</strong>.<br>I always had this idea to go beyond emails and provide a chatbot directly on the website of the online shops. So when Databricks proposed us to participate to their genAI Hackaton, I jumped in to develop this idea.<br>We recognized an opportunity to take Kiliba personalization to the next level through the chatbot. By leveraging the vast amount of data collected by Kiliba, it can provide instant, tailored responses to customer inquiries. This not only enhances the customer experience but also has the potential to increase sales and foster long-term customer loyalty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*gDw9wWXJAM_2culzBFgUqg.png" /><figcaption>Kiliba web chatbot</figcaption></figure><h3>Databricks Support for RAG Applications</h3><p>Databricks provides a comprehensive set of tools and technologies that greatly facilitate the development and deployment of RAG (Retrieval-Augmented Generation) applications. By leveraging Databricks’ powerful data management, machine learning, and serving capabilities, we were able to efficiently build and deploy our chatbot POC during the hackathon.</p><p>Existing Databricks technologies that we utilized include:</p><ol><li><strong>Unity Catalog</strong>: Unity Catalog provides a unified governance layer for all data assets across clouds. It allowed us to easily manage and access the product data needed to personalize the chatbot responses.</li><li><strong>Notebooks</strong>: Databricks Notebooks offered an interactive, collaborative environment for data exploration, model development, and testing.</li><li><strong>Delta Tables</strong>: Delta Tables, part of Delta Lake, provided a reliable and scalable storage layer for our data. Key features of Delta Tables include ACID transactions, schema enforcement, and time travel capabilities.</li></ol><p>In addition to these existing technologies, Databricks has recently introduced several new features that further support RAG applications:</p><ol><li><strong>Vector Search</strong>: Vector search is a technique that allows for efficient similarity search over large datasets. In the context of our chatbot, it enables us to quickly find products that are most relevant to a user’s query, based on the similarity between the query and the product vectors stored in our database.</li><li><strong>Model Serving</strong>: Model serving refers to the process of deploying machine learning models in a production environment, making them available to serve predictions or generate responses in real-time. Databricks’ Model Serving feature simplifies this process by allowing us to deploy our chatbot model as a REST endpoint, which can be easily integrated into online stores.</li><li><strong>MLflow for RAG Chain</strong>: MLflow is an open-source platform for managing the end-to-end machine learning lifecycle. It provides tools for tracking experiments, packaging code into reproducible runs, and sharing and deploying models. In our project, MLflow played a crucial role in managing the deployment and serving of our chatbot model. It has been extended lately to handle RAG chains. This allows us to package, deploy, and manage the entire RAG pipeline, from data preprocessing to model serving, as a single entity.</li><li><strong>LLM Model Serving</strong>: Databricks’ LLM Model Serving offers an unique interface to both opensource and proprietary models to ease development and governance.</li></ol><h3>The Implementation</h3><p>The architecture of our chatbot follows a classical Retrieval-Augmented Generation (RAG) approach. Here is a diagram of the architecture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*h6nKlg8fwAO39JpYq8YkxQ.png" /><figcaption>Kiliba RAG architecture</figcaption></figure><p>Here’s a breakdown of the key components of these architecture:</p><h4>Vector Database Section</h4><p>This is the data preparation part.</p><p>The “Product Database” in our architecture is a centralized repository that stores all the relevant information about the products available on the online stores powered by Kiliba. This data is collected through the Kiliba app, which integrates with the online shops’ backend systems. The database includes product details such as titles, descriptions, images, prices, and categories.</p><p>Using OpenAI’s embedding models, we transform the product data into vector embeddings. These embeddings are then stored in a “Vector Database” for efficient similarity search. This vector database is created easily for you by Databricks on top of Databricks Delta tables. A batch job can run periodically to keep the embeddings up to date with any changes in the product catalog.</p><h4>Web Chatbot Section</h4><p>This is the web part encompassing the frontend and the backend. Users interact with a “Chatbot widget” embedded on the online store’s website. The chatbot then receives a JSON response with the appropriate answer to display to the user. When a user asks a question, the chatbot sends a JSON payload containing the question to the backend.</p><h4>Chatbot Endpoint Section:</h4><p>The user’s question is sent to a “Chatbot endpoint” for processing. This endpoint is “serverless served” by databricks from a model published and put to production through Mlflow. The endpoint retrieves the top 3 most similar products based on the user’s question using the vector embeddings stored in the database. This is passed to an LLM model (we tested Llama and Mistral) to generate appropriate responses based on the user’s question and the retrieved product information.</p><h3>Conclusion and future work</h3><p>I’m thrilled to share that we managed to build a working, live, on a real shop, <em>proof of concept</em> for our chatbot in just 3–4 days of effort! The hackathon was an incredible experience, and it showcased the power and ease of use of Databricks’ tools.</p><p>You can see on the screenshot below that we were able to recommend meaningful products relative to the query of the customer. Buttons are generated and when clicked will bring you directly to the product page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*nCSj8DDZArmakEFxGZUfrw.png" /><figcaption>Answer to a website visitor request</figcaption></figure><p>One of the limitations we encountered during the hackathon was that MLflow serving didn’t support all the features of the Langchain framework at the time. In particular we were not able to use a memory to give answers taking into account the chat history. By incorporating memory, the chatbot will be able to maintain context across multiple user interactions, allowing for more natural and coherent conversations. This means that users can ask follow-up questions or refer back to previous topics without the need to repeat themselves. This could have been circumvented by passing the chat history back and forth. This is just the beginning, and we’re eager to explore further once the tools evolve and push the boundaries of what’s possible.</p><p>Overall, the hackathon was a great success, and it demonstrated the immense potential of AI in enhancing the online shopping experience. We’re excited to continue refining and expanding our chatbot, and we look forward to seeing how it can help the way customers interact with online stores.</p><p>Stay tuned for more updates on this exciting project!</p><p>If you want to dig further:</p><ul><li>Databricks : <a href="https://databricks.com/">https://databricks.com</a></li><li>RAG on Databricks : <a href="https://docs.databricks.com/en/generative-ai/retrieval-augmented-generation.html">Retrieval Augmented Generation (RAG) on Databricks | Databricks on AWS</a></li><li>MLflow langchain support : <a href="https://mlflow.org/docs/latest/python_api/mlflow.langchain.html">mlflow.langchain</a></li><li>OpenAI (for information on embedding models): <a href="https://openai.com/blog/introducing-text-and-code-embeddings/">https://openai.com/blog/introducing-text-and-code-embeddings</a></li><li>Kiliba : <a href="https://en.kiliba.com/">https://en.kiliba.com</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=029ac67419d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/generative-ai-in-production/a-live-chatbot-with-databricks-in-3-days-029ac67419d6">A live chatbot with Databricks in 3 days</a> was originally published in <a href="https://medium.com/generative-ai-in-production">Generative AI in production</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>