Passing chat history between workflow steps in workflows
Passing chat history between workflow steps in workflows
At a glance
The community member is looking for a way to pass chat history between steps in a workflow, as the deprecated QueryPipeline provided. The comments suggest using Context to pass things across workflow steps, and provide a link to the relevant documentation. Another community member agrees with this suggestion. The community member then asks how to prime the next chat session with a previous session's messages, and wonders if they would need to use a ChatStore with SimpleChatEngine. In response, a community member suggests that the chat history, input, and output can be managed however the community member wants, or they can use a ChatMemoryBuffer or similar.
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?
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