diff --git a/llama_index/vector_stores/elasticsearch.py b/llama_index/vector_stores/elasticsearch.py index 44e6b25349ea14e0d1a367655772e4d24c071955..8228ca4306225938622a17b868d09acc3cd28e6e 100644 --- a/llama_index/vector_stores/elasticsearch.py +++ b/llama_index/vector_stores/elasticsearch.py @@ -1,4 +1,5 @@ """Elasticsearch vector store.""" + import asyncio import uuid from logging import getLogger @@ -243,7 +244,7 @@ class ElasticsearchStore(BasePydanticVectorStore): index_name: Name of the AsyncElasticsearch index to create. dims_length: Length of the embedding vectors. """ - if await self.client.indices.exists(index=index_name): + if self.client.indices.exists(index=index_name): logger.debug(f"Index {index_name} already exists. Skipping creation.") else: