Find answers from the community

Updated 6 months ago

Subquestion

At a glance

The community member is using the async version of the SubQuestionQueryEngine and wants to know if it asks questions in parallel or sequentially. A comment suggests that if async=True is set, the engine will collect all the tasks to be run in parallel, but the commenter is not fully sure if it is "pure parallel". The commenter suggests checking the code reference for more details.

Useful resources
Does SubQuestionQueryEngine ask questions in parallel or is it sequential? i'm using the async version.
W
1 comment
If you have set async=True then it will collect all the tasks that needs to be run in parallel. I'm not fully sure if it is pure parallel.

You can check the code ref here: https://github.com/run-llama/llama_index/blob/main/llama_index/query_engine/sub_question_query_engine.py#L140
Add a reply
Sign up and join the conversation on Discord