I have a Ollama Langchain chat system. Once the chat ends, I save the history in DB. But I am not able to load the history for restarting a particular chat again. The code, error and history are as below. history = {'input': 'What is life?', 'history': 'Human: What is life?\nAI: {}', 'response': '{ "Life" : {\n "Definition" : "A complex and multifaceted phenomenon characterized by the presence of organization, metabolism, homeostasis, and...
Originally asked by jolly on Stack Exchange (stackoverflow) (CC BY-SA 4.0).