# Extract chat history of a user chat_history = chat_engine._memory.get() # once the same user comes back ( using some sort of Identifier ) # You can either pass it in chat or set the chat memory resp = chat_engine.chat(message=message, chat_history=chat_history) # OR chat_engine._memory.set(chat_history)