The community member is trying to retrieve the source nodes and node IDs from the sub-questions in the sub-question query engine. They have found a notebook that shows how to get the sub-query questions, but they are unsure how to get the source nodes for those questions. The comments suggest that the source nodes may be accessed through qa_pair.sub_q.sources, but the community member is not seeing the sub-questions in the callback debugger. They are using Anthropic for synthesis and OpenAI GPT-4 for question generation, and they have tried setting up the callback manager on the LLM instances, but the issue seems to be with the sub-question query engine itself. The community members discuss various approaches to resolving the issue, but there is no explicitly marked answer.
HI team, I'm trying to retrieve the source nodes and node ids from the sub questions in the sub question query engine, i see that this notebook shows how to get the sub query questions but what about the source nodes for those questions?
ok was able to recreate it in a simple version {'qa_pair': 'sub_q=SubQuestion(sub_question="What is the patient's medical history?", tool_name='use_this') answer=None sources=None'}]