Find answers from the community

Updated 2 months ago

Stack

Hi , I got this error when running the subquestion query engine, i tried to debug on my own but it seems like the global_stack_trace became empty after the first subquestion query was completed. No idea how to go about fixing it.

Traceback (most recent call last):
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/indices/query/base.py", line 23, in query
response = self._query(str_or_query_bundle)
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/query_engine/sub_question_query_engine.py", line 142, in _query
qa_pairs_all = [
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/query_engine/sub_question_query_engine.py", line 143, in <listcomp>
self._query_subq(sub_q, color=colors[str(ind)])
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/query_engine/sub_question_query_engine.py", line 238, in _query_subq
with self.callback_manager.event(
File "/opt/conda/envs/xxx/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/callbacks/base.py", line 169, in event
event.on_start(payload=payload)
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/callbacks/base.py", line 242, in on_start
self._callback_manager.on_event_start(
File "/opt/conda/envs/xxx/lib/python3.10/site-packages/llama_index/callbacks/base.py", line 105, in on_event_start
parent_id = global_stack_trace.get()[-1]
IndexError: list index out of range
L
4 comments
Oh interesting. That's not good lol

What version of llama-index do you have?
Can I see the setup code?
I just recently updated the tracing to work for async events, so I really hope it's not broken still hahaha
I just tried on my end and was not able to reproduce (judging by your callstack, I think you have use_async=False)
Add a reply
Sign up and join the conversation on Discord