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
Extracting chat history from stream_chat
Extracting chat history from stream_chat
Inactive
0
Follow
N
Nanosonico
last year
·
How do I retrieve and save the chat history if I am using streaming chat ??
N
T
9 comments
Share
Open in Discord
N
Nanosonico
last year
I read the source code and it’s process in another thread
N
Nanosonico
last year
Is there a way to await it ?
T
Teemu
last year
Do you mean long term storage or just session?
T
Teemu
last year
For short term you can just use the chat engine which is stateful or for long term memory you can store previous conversations in a vector DB and have contextual memory
T
Teemu
last year
Or is that what you mean?
N
Nanosonico
last year
Long term
N
Nanosonico
last year
But I want to stream my response
N
Nanosonico
last year
I managed to save my chat history in a db with the normal chat engine
N
Nanosonico
last year
But with the streaming one it only saves the user query and does not await for the streaming to end to save both the user query and AI response
Add a reply
Sign up and join the conversation on Discord
Join on Discord