<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieved Docs in Message History in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/95808#M621</link>
    <description>&lt;P&gt;In the notebook `02-Advanced-Chatbot-Chain`, from the RAG demo notebooks, shows how to incorporate chat history.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 06:01:11 GMT</pubDate>
    <dc:creator>davidhuang</dc:creator>
    <dc:date>2024-10-24T06:01:11Z</dc:date>
    <item>
      <title>Retrieved Docs in Message History</title>
      <link>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/87118#M482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've deployed a Langchain model via MLFlow log model and a deployment agent (following this&amp;nbsp;&lt;A href="https://notebooks.databricks.com/demos/llm-rag-chatbot/index.html#" target="_blank"&gt;https://notebooks.databricks.com/demos/llm-rag-chatbot/index.html#&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;How do I add additional content to the message history for example, I'd like to add retrieved docs to the chat_history so that the LLM is aware of past retrievals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a look at Langchain's doc on adding chat history (&lt;A href="https://python.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/" target="_blank"&gt;https://python.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/&lt;/A&gt;) but I am not too sure whether this will work with MLFlow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any tips/documentation I can refer to? Any assistance is appreciated. Thanks!&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 21:48:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/87118#M482</guid>
      <dc:creator>gwfj</dc:creator>
      <dc:date>2024-09-01T21:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieved Docs in Message History</title>
      <link>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/95808#M621</link>
      <description>&lt;P&gt;In the notebook `02-Advanced-Chatbot-Chain`, from the RAG demo notebooks, shows how to incorporate chat history.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 06:01:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/95808#M621</guid>
      <dc:creator>davidhuang</dc:creator>
      <dc:date>2024-10-24T06:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieved Docs in Message History</title>
      <link>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/98573#M640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99589"&gt;@davidhuang&lt;/a&gt;&amp;nbsp;thanks for pointing to that demo! That implementation of chat history did work in my experience, but it's a little simplistic and could be token-intensive if the history needs to be maintained as a list like that. Has Databricks done any demos / POCs on using LangGraph for stateful management of chat history? &lt;A href="https://python.langchain.com/docs/tutorials/qa_chat_history/#stateful-management-of-chat-history" target="_self"&gt;Reference to the tutorial here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to implement this but the blocker I'm currently facing is I can't figure out how to pass a thread_id or other config data into the graph from the Model Serving Endpoint. Any chance you've tackled this? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 19:28:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/retrieved-docs-in-message-history/m-p/98573#M640</guid>
      <dc:creator>Brian-Nowak</dc:creator>
      <dc:date>2024-11-12T19:28:55Z</dc:date>
    </item>
  </channel>
</rss>

