-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: TypeError: object HeadApiResponse can't be used in 'await' expression #10548
Comments
🤖 Hey there @Vybhav448! Great to see you back. Hope you’re ready to debug another adventure with us. 😊 It seems like you're encountering an issue with the The error message you're seeing, One possible reason for this issue could be a mismatch between the versions of the Elasticsearch Python client ( Here are a few steps you can take to troubleshoot this issue:
If none of these steps resolve the issue, it would be helpful if you could provide more information about your environment, such as the Python version you're using and any other libraries or frameworks that might be interacting with the LlamaIndex library or the Elasticsearch Python client. I hope this helps! If you have any other questions or need further clarification, please don't hesitate to ask. Sources
|
I am also facing similar issue and the same code is working when we try to connect with elasticsearch server running in cloud but problem arises only when we do locally. Let us know if there are any issues or provide a sample code snippet which runs locally with vectorstoreIndex |
Looks like await is being called on a function that doesn't actually need it |
This is not a bug, use async elasticsearch client in llama-index code: $ pip install elasticsearch[async] then in llama-index code: from elasticsearch import AsyncElasticsearch client = AsyncElasticsearch( vector_store = ElasticsearchStore( |
Bug Description
I was able to run Elastic search's server using cloud but getting this issue when trying to run locally.
TypeError: object HeadApiResponse can't be used in 'await' expression
Versions:
llama-index==0.9.46
elasticsearch==8.8.0
Version
0.9.46
Steps to Reproduce
Trying to create embeddings using VectorStoreIndex.from_documents method.
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: