llama-index-vector-stores-opensearch 0.4.0__py3-none-any.whl → 0.4.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 +4 -1
- {llama_index_vector_stores_opensearch-0.4.0.dist-info → llama_index_vector_stores_opensearch-0.4.1.dist-info}/METADATA +1 -1
- llama_index_vector_stores_opensearch-0.4.1.dist-info/RECORD +6 -0
- llama_index_vector_stores_opensearch-0.4.0.dist-info/RECORD +0 -6
- {llama_index_vector_stores_opensearch-0.4.0.dist-info → llama_index_vector_stores_opensearch-0.4.1.dist-info}/WHEEL +0 -0
|
@@ -56,6 +56,8 @@ class OpensearchVectorClient:
|
|
|
56
56
|
settings: Optional[dict]: Settings for the Opensearch index creation. Defaults to:
|
|
57
57
|
{"index": {"knn": True, "knn.algo_param.ef_search": 100}}
|
|
58
58
|
space_type (Optional[str]): space type for distance metric calculation. Defaults to: l2
|
|
59
|
+
os_client (Optional[OSClient]): Custom synchronous client (see OpenSearch from opensearch-py)
|
|
60
|
+
os_async_client (Optional[OSClient]): Custom asynchronous client (see AsyncOpenSearch from opensearch-py)
|
|
59
61
|
**kwargs: Optional arguments passed to the OpenSearch client from opensearch-py.
|
|
60
62
|
|
|
61
63
|
"""
|
|
@@ -74,6 +76,7 @@ class OpensearchVectorClient:
|
|
|
74
76
|
max_chunk_bytes: int = 1 * 1024 * 1024,
|
|
75
77
|
search_pipeline: Optional[str] = None,
|
|
76
78
|
os_client: Optional[OSClient] = None,
|
|
79
|
+
os_async_client: Optional[OSClient] = None,
|
|
77
80
|
**kwargs: Any,
|
|
78
81
|
):
|
|
79
82
|
"""Init params."""
|
|
@@ -117,7 +120,7 @@ class OpensearchVectorClient:
|
|
|
117
120
|
self._os_client = os_client or self._get_opensearch_client(
|
|
118
121
|
self._endpoint, **kwargs
|
|
119
122
|
)
|
|
120
|
-
self._os_async_client = self._get_async_opensearch_client(
|
|
123
|
+
self._os_async_client = os_async_client or self._get_async_opensearch_client(
|
|
121
124
|
self._endpoint, **kwargs
|
|
122
125
|
)
|
|
123
126
|
self._os_version = self._get_opensearch_version()
|
|
@@ -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=H_5DUMn8q4E9iY7_LIQcdpfT8dZRjLfnml3OTjoVM2Q,37141
|
|
4
|
+
llama_index_vector_stores_opensearch-0.4.1.dist-info/METADATA,sha256=S8hRWaD0NKc9Yzt8pxXr3-21aIL1q3ff0N7JOTengdc,728
|
|
5
|
+
llama_index_vector_stores_opensearch-0.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
+
llama_index_vector_stores_opensearch-0.4.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=vd14RnvqTNIPjopWptkQEkf5gVp71pBB7G9X_4l4jwI,36854
|
|
4
|
-
llama_index_vector_stores_opensearch-0.4.0.dist-info/METADATA,sha256=NecQMS0jaNnWSGZMAdeMauy3ehZYjhqc6EpnGn8PHx0,728
|
|
5
|
-
llama_index_vector_stores_opensearch-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
6
|
-
llama_index_vector_stores_opensearch-0.4.0.dist-info/RECORD,,
|
|
File without changes
|