diff --git a/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/llama_index/storage/index_store/elasticsearch/base.py b/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/llama_index/storage/index_store/elasticsearch/base.py index 43b4075a70ab6945c7a2182b0b376d255dd047c5..d631a0dbfad0ef9606b791a6c290e893257ec77a 100644 --- a/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/llama_index/storage/index_store/elasticsearch/base.py +++ b/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/llama_index/storage/index_store/elasticsearch/base.py @@ -16,7 +16,12 @@ class ElasticsearchIndexStore(KVIndexStore): def __init__( self, elasticsearch_kvstore: ElasticsearchKVStore, + collection_index: Optional[str] = None, namespace: Optional[str] = None, ) -> None: """Init a ElasticsearchIndexStore.""" super().__init__(elasticsearch_kvstore, namespace=namespace) + if collection_index: + self._collection = collection_index + else: + self._collection = f"llama_index-index_store.data-{self._namespace}" diff --git a/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/pyproject.toml b/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/pyproject.toml index 34bc54172e22ff879b2924f47fae964091618178..f7d4af8895d408038fdb835c93be97331d144e4d 100644 --- a/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/pyproject.toml +++ b/llama-index-integrations/storage/index_store/llama-index-storage-index-store-elasticsearch/pyproject.toml @@ -27,7 +27,7 @@ exclude = ["**/BUILD"] license = "MIT" name = "llama-index-storage-index-store-elasticsearch" readme = "README.md" -version = "0.1.2" +version = "0.1.3" [tool.poetry.dependencies] python = ">=3.8.1,<4.0"