llama-index-vector-stores-opensearch 0.5.1__py3-none-any.whl → 0.5.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of llama-index-vector-stores-opensearch might be problematic. Click here for more details.

@@ -138,10 +138,18 @@ class OpensearchVectorClient:
138
138
  index=self._index, body=idx_conf
139
139
  )
140
140
  )
141
- asyncio_run(self._os_async_client.indices.refresh(index=self._index))
141
+ if self.is_aoss:
142
+ asyncio_run(self._os_async_client.indices.exists(index=self._index))
143
+ else:
144
+ asyncio_run(
145
+ self._os_async_client.indices.refresh(index=self._index)
146
+ )
142
147
  except not_found_error:
143
148
  self._os_client.indices.create(index=self._index, body=idx_conf)
144
- self._os_client.indices.refresh(index=self._index)
149
+ if self.is_aoss:
150
+ self._os_client.indices.exists(index=self._index)
151
+ else:
152
+ self._os_client.indices.refresh(index=self._index)
145
153
 
146
154
  def _import_opensearch(self) -> Any:
147
155
  """Import OpenSearch if available, otherwise raise error."""
@@ -634,7 +642,7 @@ class OpensearchVectorClient:
634
642
  ef_enabled = False
635
643
  else:
636
644
  self._os_version = self._get_opensearch_version()
637
- major, minor, patch = self.os_version.split(".")
645
+ major, minor, patch = self._os_version.split(".")
638
646
  ef_enabled = int(major) >= 2 and int(minor) >= 9
639
647
  return ef_enabled
640
648
 
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: llama-index-vector-stores-opensearch
3
+ Version: 0.5.3
4
+ Summary: llama-index vector_stores opensearch integration
5
+ Author-email: Your Name <you@example.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Requires-Python: <4.0,>=3.9
9
+ Requires-Dist: llama-index-core<0.13,>=0.12.0
10
+ Requires-Dist: opensearch-py[async]<3,>=2.4.2
11
+ Description-Content-Type: text/markdown
12
+
13
+ # LlamaIndex Vector_Stores Integration: Opensearch
@@ -0,0 +1,7 @@
1
+ llama_index/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ llama_index/vector_stores/opensearch/__init__.py,sha256=U1_XAkZb6zcskOk4s10NB8Tjs9AZRGdRQLzOGpbWdBA,176
3
+ llama_index/vector_stores/opensearch/base.py,sha256=I5zfrio1kTn1YbvtGtx0hTnStsPArhh85treEC_DqHE,38262
4
+ llama_index_vector_stores_opensearch-0.5.3.dist-info/METADATA,sha256=qKYip28sqdaE47NWwAYmzS3bQ48U5eXJFIbpEplVLxs,438
5
+ llama_index_vector_stores_opensearch-0.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
+ llama_index_vector_stores_opensearch-0.5.3.dist-info/licenses/LICENSE,sha256=JPQLUZD9rKvCTdu192Nk0V5PAwklIg6jANii3UmTyMs,1065
7
+ llama_index_vector_stores_opensearch-0.5.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) Jerry Liu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,20 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: llama-index-vector-stores-opensearch
3
- Version: 0.5.1
4
- Summary: llama-index vector_stores opensearch integration
5
- License: MIT
6
- Author: Your Name
7
- Author-email: you@example.com
8
- Requires-Python: >=3.9,<4.0
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.9
12
- Classifier: Programming Language :: Python :: 3.10
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Requires-Dist: llama-index-core (>=0.12.0,<0.13.0)
16
- Requires-Dist: opensearch-py[async] (>=2.4.2,<3.0.0)
17
- Description-Content-Type: text/markdown
18
-
19
- # LlamaIndex Vector_Stores Integration: Opensearch
20
-
@@ -1,6 +0,0 @@
1
- llama_index/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- llama_index/vector_stores/opensearch/__init__.py,sha256=U1_XAkZb6zcskOk4s10NB8Tjs9AZRGdRQLzOGpbWdBA,176
3
- llama_index/vector_stores/opensearch/base.py,sha256=o-G9Yvmv0N8lL8n8pfhIzfrg4wBaresGd5NLx8cJg38,37950
4
- llama_index_vector_stores_opensearch-0.5.1.dist-info/METADATA,sha256=pnfaGQtxcN4ylj7WHVxA6gDaE_UMV93Mvx4DzXXPLg8,726
5
- llama_index_vector_stores_opensearch-0.5.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- llama_index_vector_stores_opensearch-0.5.1.dist-info/RECORD,,