Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
hey guys. how do you manage conversation
hey guys. how do you manage conversation
Inactive
0
Follow
e
endo
12 months ago
Β·
hey guys. how do you manage conversation memory with llamaindex? or are you using langchain for that?
L
e
3 comments
Share
Open in Discord
L
Logan M
12 months ago
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)
e
endo
12 months ago
thanks will try that. π
e
endo
12 months ago
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
Join on Discord