Find answers from the community

Updated 6 months ago

QueryPipeline has run_multi_with_

At a glance

The community member is asking if there is a way to achieve the same functionality as run_multi_with_intermediates in QueryPipeline with workflows. This feature allows inspecting the results of each node after the entire query has run.

Another community member suggests two possible approaches: using the streaming functionality in the LlamaIndex documentation, or accumulating all the intermediates in the context and returning them in the StopEvent. The second community member confirms that the second approach works.

Useful resources
QueryPipeline has run_multi_with_intermediates.

Is there any way to achieve the same with workflows?

run_multi_with_intermediates is a nice way to inspect the results of each node after the whole query had ran
L
C
2 comments
This is an interesting method
https://docs.llamaindex.ai/en/stable/understanding/workflows/stream/

Or you can just accumulate all the intermediates in the context and return it all in the StopEvent
Yeah, that works, thanks!
Add a reply
Sign up and join the conversation on Discord