llama-index-vector-stores-opensearch 0.2.0__py3-none-any.whl → 0.2.1__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.
- llama_index/vector_stores/opensearch/base.py +9 -3
- {llama_index_vector_stores_opensearch-0.2.0.dist-info → llama_index_vector_stores_opensearch-0.2.1.dist-info}/METADATA +1 -1
- llama_index_vector_stores_opensearch-0.2.1.dist-info/RECORD +6 -0
- {llama_index_vector_stores_opensearch-0.2.0.dist-info → llama_index_vector_stores_opensearch-0.2.1.dist-info}/WHEEL +1 -1
- llama_index_vector_stores_opensearch-0.2.0.dist-info/RECORD +0 -6
|
@@ -466,7 +466,9 @@ class OpensearchVectorClient:
|
|
|
466
466
|
search_query = {
|
|
467
467
|
"query": {"term": {"metadata.doc_id.keyword": {"value": doc_id}}}
|
|
468
468
|
}
|
|
469
|
-
await self._os_client.delete_by_query(
|
|
469
|
+
await self._os_client.delete_by_query(
|
|
470
|
+
index=self._index, body=search_query, refresh=True
|
|
471
|
+
)
|
|
470
472
|
|
|
471
473
|
async def delete_nodes(
|
|
472
474
|
self,
|
|
@@ -490,12 +492,16 @@ class OpensearchVectorClient:
|
|
|
490
492
|
if filters:
|
|
491
493
|
query["query"]["bool"]["filter"].extend(self._parse_filters(filters))
|
|
492
494
|
|
|
493
|
-
await self._os_client.delete_by_query(
|
|
495
|
+
await self._os_client.delete_by_query(
|
|
496
|
+
index=self._index, body=query, refresh=True
|
|
497
|
+
)
|
|
494
498
|
|
|
495
499
|
async def clear(self) -> None:
|
|
496
500
|
"""Clears index."""
|
|
497
501
|
query = {"query": {"bool": {"filter": []}}}
|
|
498
|
-
await self._os_client.delete_by_query(
|
|
502
|
+
await self._os_client.delete_by_query(
|
|
503
|
+
index=self._index, body=query, refresh=True
|
|
504
|
+
)
|
|
499
505
|
|
|
500
506
|
async def aquery(
|
|
501
507
|
self,
|
|
@@ -0,0 +1,6 @@
|
|
|
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=rY_lBORGKlVkO5Hcilwkj1k1pOI9dcHsvZkUlqxOSJI,25600
|
|
4
|
+
llama_index_vector_stores_opensearch-0.2.1.dist-info/METADATA,sha256=7y1XXnLXbbxU3iCwKxoxT8GJ20_FJILF6hBdkJKftPw,728
|
|
5
|
+
llama_index_vector_stores_opensearch-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
+
llama_index_vector_stores_opensearch-0.2.1.dist-info/RECORD,,
|
|
@@ -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=1Imxwk6EWwi9_yFd9ZNFTWLVDua6NFVLBXuOq-MXV1g,25492
|
|
4
|
-
llama_index_vector_stores_opensearch-0.2.0.dist-info/METADATA,sha256=MN9n-d3qGqR7N_Q7SoXfHqRKqiNzTPX_YKJJeXo0YK8,728
|
|
5
|
-
llama_index_vector_stores_opensearch-0.2.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
6
|
-
llama_index_vector_stores_opensearch-0.2.0.dist-info/RECORD,,
|