Find answers from the community

Updated 10 months ago

Hello,

At a glance
Hello, I'm exploring chat engine usage, what are the distinct roles of memory and chat_history? Are they intended for different purposes? Thank you!
L
J
6 comments
memory is chat history

The difference here is chat history is a list of chat message objects

Those go into a memory module, which ensures that only X number of messages up to a token limit are retrieved

.chat(message, chat_history=chat_history) will override the current memory
ok so from what I understand, memory is better to be used and will have better results ? this will also impact the condense question ?
I mean, they are essentially the same / highly coupled
But yes, it impacts condense question -- it uses the most recent conversation history to rewrite a query
This is useful for follow-ups like "Tell me more" and stuff like that
thank you, is more clear now
Add a reply
Sign up and join the conversation on Discord