Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 10 months ago
0
Follow
SubQuestionQueryEngine: is there any way
SubQuestionQueryEngine: is there any way
Inactive
0
Follow
B
Baygon
10 months ago
Β·
SubQuestionQueryEngine: is there any way to stream the intermediate steps like for agents?
L
B
8 comments
Share
Open in Discord
L
Logan M
10 months ago
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
B
Baygon
10 months ago
it's applied on the openaiagent from what I see
B
Baygon
10 months ago
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
B
Baygon
10 months ago
oh my bad, it works if I add it to the global service context
B
Baygon
10 months ago
which is deprecated now haha
B
Baygon
10 months ago
but where would I intercept those event to stream them then?
L
Logan M
10 months ago
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
L
Logan M
10 months ago
I might be wrong, I haven't looked in a bit
Add a reply
Sign up and join the conversation on Discord
Join on Discord