From 327373c12420b9772b075d774e15be42d24df8da Mon Sep 17 00:00:00 2001
From: Logan <logan.markewich@live.com>
Date: Tue, 13 Feb 2024 09:13:45 -0600
Subject: [PATCH] Fix elasticsearch (#10656)

---
 .../llama_index/vector_stores/elasticsearch/base.py           | 4 +---
 .../llama-index-vector-stores-elasticsearch/pyproject.toml    | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py
index d0b653e20..35edded7a 100644
--- a/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py
+++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py
@@ -228,9 +228,7 @@ class ElasticsearchStore(BasePydanticVectorStore):
     @staticmethod
     def get_user_agent() -> str:
         """Get user agent for elasticsearch client."""
-        import llama_index
-
-        return f"llama_index-py-vs/{llama_index.core.__version__}"
+        return "llama_index-py-vs"
 
     async def _create_index_if_not_exists(
         self, index_name: str, dims_length: Optional[int] = None
diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/pyproject.toml b/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/pyproject.toml
index 79f2a02cc..51a57441a 100644
--- a/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/pyproject.toml
+++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/pyproject.toml
@@ -19,7 +19,7 @@ description = "llama-index vector_stores elasticsearch integration"
 license = "MIT"
 name = "llama-index-vector-stores-elasticsearch"
 readme = "README.md"
-version = "0.1.1"
+version = "0.1.2"
 
 [tool.poetry.dependencies]
 python = ">=3.8.1,<3.12"
-- 
GitLab