Find answers from the community

Updated 3 months ago

LlamaIndex is throwing me asyncio errors

LlamaIndex is throwing me asyncio errors about an unclosed connection when using OpenSearch as the vector store. Has anyone run into this and have any suggestions? I'm running updated OpenSearch integration versions.

I hit this issue when initializing the OpenSearchVectorStore class as soon as asyncio.get_event_loop().run_until_complete(self.os_client.indices.get(index=self._index) runs during the initailzation of the OpenSearchVectorStore class.
W
c
L
3 comments
If you are running this on colab, Try adding this at the top.

Kill the previous session add this
Plain Text
import nest_asyncio
nest_asyncio.apply()

# rest of the code..
I'm not running in Colab. I'm running it local on my computer. Does this still apply?
Yea still applies
Add a reply
Sign up and join the conversation on Discord