Find answers from the community

Updated 3 months ago

hey guys. how do you manage conversation

hey guys. how do you manage conversation memory with llamaindex? or are you using langchain for that?
L
e
3 comments
each chat engine/agent stores the history in the .chat_history attribute

This is simply a list of ChatMessage objects. Since they are pydantic objects, it's pretty easy to serialize/deserialize and store them wherever

You can then pass in the current history into every chat() call

.chat("Hello!", chat_history=chat_history)
thanks will try that. πŸ™
are there some links i could read for more infos on that?
i want to couple it with streamlit and langchain.
Add a reply
Sign up and join the conversation on Discord