Skip to content
Snippets Groups Projects
Unverified Commit 327373c1 authored by Logan's avatar Logan Committed by GitHub
Browse files

Fix elasticsearch (#10656)

parent f7fba1cf
No related branches found
No related tags found
No related merge requests found
...@@ -228,9 +228,7 @@ class ElasticsearchStore(BasePydanticVectorStore): ...@@ -228,9 +228,7 @@ class ElasticsearchStore(BasePydanticVectorStore):
@staticmethod @staticmethod
def get_user_agent() -> str: def get_user_agent() -> str:
"""Get user agent for elasticsearch client.""" """Get user agent for elasticsearch client."""
import llama_index return "llama_index-py-vs"
return f"llama_index-py-vs/{llama_index.core.__version__}"
async def _create_index_if_not_exists( async def _create_index_if_not_exists(
self, index_name: str, dims_length: Optional[int] = None self, index_name: str, dims_length: Optional[int] = None
......
...@@ -19,7 +19,7 @@ description = "llama-index vector_stores elasticsearch integration" ...@@ -19,7 +19,7 @@ description = "llama-index vector_stores elasticsearch integration"
license = "MIT" license = "MIT"
name = "llama-index-vector-stores-elasticsearch" name = "llama-index-vector-stores-elasticsearch"
readme = "README.md" readme = "README.md"
version = "0.1.1" version = "0.1.2"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8.1,<3.12" python = ">=3.8.1,<3.12"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment