Find answers from the community

Updated 10 months ago

SubQuestionQueryEngine: is there any way

SubQuestionQueryEngine: is there any way to stream the intermediate steps like for agents?
L
B
8 comments
In our SEC-Insights app, we used a custom callback handler to grab the sub-questions/answers and send them to the frontend when they appeared
it's applied on the openaiagent from what I see
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
oh my bad, it works if I add it to the global service context
which is deprecated now haha
but where would I intercept those event to stream them then?
I believe how SEC-Insights did it was just send a server-side event to the frontend with the subquestion info, all inside the custom callback
I might be wrong, I haven't looked in a bit
Add a reply
Sign up and join the conversation on Discord