Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Chat history should be manage at backend if ChatId or Session id is getting passed in api calls.

Open navinkeshari opened this issue 2 years ago • 3 comments

Construct a sequence involving memory nodes and conversation nodes. Initiate a conversation via the REST API, providing the chat ID or session ID after the initial call response. The flow fails to maintain the same context and instead alters the context. To handle context changes, the backend requires the passing of a chat_history list, potentially leading to an increase in request bandwidth. The system should retrieve chat details based on the chat or session ID.

navinkeshari avatar Feb 02 '24 13:02 navinkeshari

agree! we will work on that improvement!

HenryHengZJ avatar Feb 02 '24 23:02 HenryHengZJ

also related with #1584

emrahtoy avatar Feb 05 '24 06:02 emrahtoy

Thumbs up on this. Very important.

yos1p avatar Mar 04 '24 03:03 yos1p

This is now available in v1.6.5, every memory nodes now have a sessionId and automatically retrieve the chat history with it. This removes the need for passing history array in the API request

HenryHengZJ avatar Apr 14 '24 15:04 HenryHengZJ

Much appreciated, thank you.

emrahtoy avatar Apr 14 '24 15:04 emrahtoy

This is now available in v1.6.5, every memory nodes now have a sessionId and automatically retrieve the chat history with it. This removes the need for passing history array in the API request

thanks! @HenryHengZJ - what about context field on any other node fields initialized as part of any sessionId conversation - are those will be resored as well when passing a sessionId in a new conversation - trying to figure out how session tracking realy works - it seems to be working for chat hostory but not for context field for example - not sure whether this is bug or by design.

haimco50 avatar Apr 22 '24 21:04 haimco50