Find answers from the community

Home
Members
Gayathri
G
Gayathri
Offline, last seen 3 months ago
Joined September 25, 2024
G
Gayathri
·

Hello

Hello
Seeing the following exception when I execute the line index.as_query_engine(llm=None). What could be causing this issue?

File "/....../.venv/lib/python3.9/site-packages/llama_index/core/indices/base.py", line 391, in as_query_engine
from llama_index.core.query_engine.retriever_query_engine import (
File "/....../.venv/lib/python3.9/site-packages/llama_index/core/query_engine/init.py", line 14, in <module>
from llama_index.core.query_engine.flare.base import FLAREInstructQueryEngine
File "/....../.venv/lib/python3.9/site-packages/llama_index/core/query_engine/flare/base.py", line 24, in <module>
from llama_index.core.query_engine.retriever_query_engine import RetrieverQueryEngine
File "/....../.venv/lib/python3.9/site-packages/llama_index/core/query_engine/retriever_query_engine.py", line 27, in <module>
dispatcher = instrument.get_dispatcher(name)
File "/....../.venv/lib/python3.9/site-packages/llama_index/core/instrumentation/init.py", line 26, in get_dispatcher
new_dispatcher = Dispatcher(
File "/....../.venv/lib/python3.9/site-packages/llama_index/core/instrumentation/dispatcher.py", line 65, in init
self._asyncio_lock = asyncio.Lock()
File "/.../.pyenv/versions/3.9.6/lib/python3.9/asyncio/locks.py", line 81, in init
self._loop = events.get_event_loop()
File "/.../.pyenv/versions/3.9.6/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-79'.
14 comments
L
G