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 3 months ago
0
Follow
is there a build in way to handle
is there a build in way to handle
Inactive
0
Follow
o
osiworx
10 months ago
Β·
is there a build in way to handle conversation history? I have kind of build my own thing but I guess that's not how it is supposed to be π asked that, is there a way to count tokens so that history will not grow to big?
T
o
2 comments
Share
Open in Discord
T
Teemu
10 months ago
Yeah there is the ChatEngine which is a stateful version (keeps conversation history):
https://docs.llamaindex.ai/en/stable/module_guides/deploying/chat_engines/root.html
You can use ChatMemoryBuffer to control the size of the chat history:
https://docs.llamaindex.ai/en/stable/api_reference/memory.html#llama_index.core.memory.ChatMemoryBuffer
o
osiworx
10 months ago
thank you very much π
Add a reply
Sign up and join the conversation on Discord
Join on Discord