Find answers from the community

Updated 3 weeks ago

Passing chat history between workflow steps in workflows

Hi...I am looking to orchestrate a number of chat messages before extracting some structued output at the end of a chain of queries. I see the QueryPipeline is now deprecated in favor of workflows but I don't see a similar convenient way of passing chat history between workflow steps like in QueryPipeline.

Is there anything in workflow that makes passing chat history between steps easy?
W
L
K
5 comments
You can use Context I guess that can help you pass things across workflow steps
+1 to the above
OK...thank you for that, but how do I prime the next chat session with a previous session's messages? Would I need to use a ChatStore with SimpleChatEngine?
You can make the chat history and input and output and manage it however you want, or you can use some ChatMemoryBuffer or similar, it's really up to you
Add a reply
Sign up and join the conversation on Discord