The community members are discussing how to stream the intermediate steps of the SubQuestionQueryEngine, similar to how it is done for agents. One community member mentions using a custom callback handler in their SEC-Insights app to grab the sub-questions/answers and send them to the frontend. Another community member tried to add the callback manager to the SubQuestionQueryEngine but encountered an issue. They later discovered that it works if the callback manager is added to the global service context, but this approach is now deprecated. The community members are trying to figure out where to intercept the events to stream the sub-questions/answers.
I tried to add it but I get: SubQuestionQueryEngine.from_defaults() got an unexpected keyword argument 'callback_manager' Tried to add it to the indexes fed as tools, no trace