cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Retrieved Docs in Message History

gwfj
New Contributor

Hi,

I've deployed a Langchain model via MLFlow log model and a deployment agent (following this https://notebooks.databricks.com/demos/llm-rag-chatbot/index.html#)

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. 

I've had a look at Langchain's doc on adding chat history (https://python.langchain.com/v0.2/docs/how_to/qa_chat_history_how_to/) but I am not too sure whether this will work with MLFlow. 

Do you have any tips/documentation I can refer to? Any assistance is appreciated. Thanks!

Gary

1 REPLY 1

davidhuang
Databricks Employee
Databricks Employee

In the notebook `02-Advanced-Chatbot-Chain`, from the RAG demo notebooks, shows how to incorporate chat history.

dh

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group