Find answers from the community

Updated 5 months ago

Source

Hi team, I recently upgraded from LlamaIndex 0.10.12 to 0.10.55 and now I am getting a python error when trying to retrieve a response from the LLM application.

Plain Text
for node in response.source_nodes:

Plain Text
AttributeError: 'coroutine' object has no attribute 'source_nodes'


cc @Logan M
L
b
5 comments
Seems like you did an async operation and didn't use await
When I use and await I get an opensearch (that's my vector embeddings storage) error:

Plain Text
opensearchpy.exceptions.ConnectionError: ConnectionError(Timeout context manager should be used inside a task) caused by: RuntimeError(Timeout context manager should be used inside a task)
Got past that by adding a async to the opensearch vector store function, but now getting
Plain Text
AttributeError: 'coroutine' object has no attribute 'stores_text'
@Logan M worked through these but now I get
Plain Text
TypeError: object OpensearchVectorStore can't be used in await expression
which directly contradicts one of these previous errors lol...
and in order for connection_class=AsyncHttpConnection it has to be in an await function.
Add a reply
Sign up and join the conversation on Discord