Find answers from the community

Updated 4 months ago

Is there a way to avoid the async.run. I

At a glance

The community member is experiencing an issue with the asyncio.run() function when using the LlamaIndex with LangChain, and is seeking a way to avoid this error. Another community member suggests using the nest_asyncio.apply() function as a solution to the problem.

Is there a way to avoid the async.run. I am running llama index with langchain and I am getting the following error.

RuntimeError: asyncio.run() cannot be called from a running event loop

For reference I am using the QueryFusionRetreiver
L
W
E
3 comments
just run

Plain Text
import nest_asyncio
nest_asyncio.apply()
awesome thank you !!
Add a reply
Sign up and join the conversation on Discord