RuntimeError: asyncio.run() cannot be called from a running event loop #214
-
Hi everybody, i'm new to python and llm world. I'm following some tutorials online to improve my knowledge. Since two days this tutorial gives this error in the first stage of "Advanced Usage" step: 2024-01-17 21:17:17,191 - autollm - WARNING - use_async is only supported for SimpleVectorStore. Ignoring use_async.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
i'm sorry, I didn't link the tutorial. https://colab.research.google.com/github/safevideo/autollm/blob/main/examples/quickstart.ipynb |
Beta Was this translation helpful? Give feedback.
-
Hi @michelebon , Thank you so much for exploring autollm and for bringing this issue to our attention! We're thrilled to have you in our community. To quickly resolve the error you're encountering, you can use the Here's what you can do:
This should help you move past the error. Meanwhile, I will be working on fixing this and updating the quickstart Colab notebook to address this issue more permanently. Keep experimenting and let us know if you encounter any more challenges! |
Beta Was this translation helpful? Give feedback.
Hi @michelebon ,
Thank you so much for exploring autollm and for bringing this issue to our attention! We're thrilled to have you in our community. To quickly resolve the error you're encountering, you can use the
nest_asyncio
package. This package allows for nesting the asyncio event loop, which should fix theRuntimeError
you're experiencing.Here's what you can do:
Right before the line where the error occurs, add the following code:
Additionally, change the
embed_model
parameter toembed_model="text-embedding-ada-002",
.This should help you move past the error. Meanwhile, I will be working on fixing this and updating the quickstart Colab …