llama-index-vector-stores-opensearch 0.5.2__tar.gz → 0.5.4__tar.gz
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-0.5.4/.gitignore +153 -0
- llama_index_vector_stores_opensearch-0.5.4/LICENSE +21 -0
- llama_index_vector_stores_opensearch-0.5.4/PKG-INFO +13 -0
- {llama_index_vector_stores_opensearch-0.5.2 → llama_index_vector_stores_opensearch-0.5.4}/llama_index/vector_stores/opensearch/base.py +35 -18
- llama_index_vector_stores_opensearch-0.5.4/pyproject.toml +65 -0
- llama_index_vector_stores_opensearch-0.5.2/PKG-INFO +0 -20
- llama_index_vector_stores_opensearch-0.5.2/pyproject.toml +0 -66
- {llama_index_vector_stores_opensearch-0.5.2 → llama_index_vector_stores_opensearch-0.5.4}/README.md +0 -0
- {llama_index_vector_stores_opensearch-0.5.2 → llama_index_vector_stores_opensearch-0.5.4}/llama_index/py.typed +0 -0
- {llama_index_vector_stores_opensearch-0.5.2 → llama_index_vector_stores_opensearch-0.5.4}/llama_index/vector_stores/opensearch/__init__.py +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
llama_index/_static
|
|
2
|
+
.DS_Store
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
*$py.class
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
bin/
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
etc/
|
|
21
|
+
include/
|
|
22
|
+
lib/
|
|
23
|
+
lib64/
|
|
24
|
+
parts/
|
|
25
|
+
sdist/
|
|
26
|
+
share/
|
|
27
|
+
var/
|
|
28
|
+
wheels/
|
|
29
|
+
pip-wheel-metadata/
|
|
30
|
+
share/python-wheels/
|
|
31
|
+
*.egg-info/
|
|
32
|
+
.installed.cfg
|
|
33
|
+
*.egg
|
|
34
|
+
MANIFEST
|
|
35
|
+
|
|
36
|
+
# PyInstaller
|
|
37
|
+
# Usually these files are written by a python script from a template
|
|
38
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
39
|
+
*.manifest
|
|
40
|
+
*.spec
|
|
41
|
+
|
|
42
|
+
# Installer logs
|
|
43
|
+
pip-log.txt
|
|
44
|
+
pip-delete-this-directory.txt
|
|
45
|
+
|
|
46
|
+
# Unit test / coverage reports
|
|
47
|
+
htmlcov/
|
|
48
|
+
.tox/
|
|
49
|
+
.nox/
|
|
50
|
+
.coverage
|
|
51
|
+
.coverage.*
|
|
52
|
+
.cache
|
|
53
|
+
nosetests.xml
|
|
54
|
+
coverage.xml
|
|
55
|
+
*.cover
|
|
56
|
+
*.py,cover
|
|
57
|
+
.hypothesis/
|
|
58
|
+
.pytest_cache/
|
|
59
|
+
.ruff_cache
|
|
60
|
+
|
|
61
|
+
# Translations
|
|
62
|
+
*.mo
|
|
63
|
+
*.pot
|
|
64
|
+
|
|
65
|
+
# Django stuff:
|
|
66
|
+
*.log
|
|
67
|
+
local_settings.py
|
|
68
|
+
db.sqlite3
|
|
69
|
+
db.sqlite3-journal
|
|
70
|
+
|
|
71
|
+
# Flask stuff:
|
|
72
|
+
instance/
|
|
73
|
+
.webassets-cache
|
|
74
|
+
|
|
75
|
+
# Scrapy stuff:
|
|
76
|
+
.scrapy
|
|
77
|
+
|
|
78
|
+
# Sphinx documentation
|
|
79
|
+
docs/_build/
|
|
80
|
+
|
|
81
|
+
# PyBuilder
|
|
82
|
+
target/
|
|
83
|
+
|
|
84
|
+
# Jupyter Notebook
|
|
85
|
+
.ipynb_checkpoints
|
|
86
|
+
notebooks/
|
|
87
|
+
|
|
88
|
+
# IPython
|
|
89
|
+
profile_default/
|
|
90
|
+
ipython_config.py
|
|
91
|
+
|
|
92
|
+
# pyenv
|
|
93
|
+
.python-version
|
|
94
|
+
|
|
95
|
+
# pipenv
|
|
96
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
97
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
98
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
99
|
+
# install all needed dependencies.
|
|
100
|
+
#Pipfile.lock
|
|
101
|
+
|
|
102
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
103
|
+
__pypackages__/
|
|
104
|
+
|
|
105
|
+
# Celery stuff
|
|
106
|
+
celerybeat-schedule
|
|
107
|
+
celerybeat.pid
|
|
108
|
+
|
|
109
|
+
# SageMath parsed files
|
|
110
|
+
*.sage.py
|
|
111
|
+
|
|
112
|
+
# Environments
|
|
113
|
+
.env
|
|
114
|
+
.venv
|
|
115
|
+
env/
|
|
116
|
+
venv/
|
|
117
|
+
ENV/
|
|
118
|
+
env.bak/
|
|
119
|
+
venv.bak/
|
|
120
|
+
pyvenv.cfg
|
|
121
|
+
|
|
122
|
+
# Spyder project settings
|
|
123
|
+
.spyderproject
|
|
124
|
+
.spyproject
|
|
125
|
+
|
|
126
|
+
# Rope project settings
|
|
127
|
+
.ropeproject
|
|
128
|
+
|
|
129
|
+
# mkdocs documentation
|
|
130
|
+
/site
|
|
131
|
+
|
|
132
|
+
# mypy
|
|
133
|
+
.mypy_cache/
|
|
134
|
+
.dmypy.json
|
|
135
|
+
dmypy.json
|
|
136
|
+
|
|
137
|
+
# Pyre type checker
|
|
138
|
+
.pyre/
|
|
139
|
+
|
|
140
|
+
# Jetbrains
|
|
141
|
+
.idea
|
|
142
|
+
modules/
|
|
143
|
+
*.swp
|
|
144
|
+
|
|
145
|
+
# VsCode
|
|
146
|
+
.vscode
|
|
147
|
+
|
|
148
|
+
# pipenv
|
|
149
|
+
Pipfile
|
|
150
|
+
Pipfile.lock
|
|
151
|
+
|
|
152
|
+
# pyright
|
|
153
|
+
pyrightconfig.json
|
|
@@ -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.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llama-index-vector-stores-opensearch
|
|
3
|
+
Version: 0.5.4
|
|
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
|
|
@@ -138,10 +138,18 @@ class OpensearchVectorClient:
|
|
|
138
138
|
index=self._index, body=idx_conf
|
|
139
139
|
)
|
|
140
140
|
)
|
|
141
|
-
|
|
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.
|
|
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."""
|
|
@@ -340,7 +348,8 @@ class OpensearchVectorClient:
|
|
|
340
348
|
return query
|
|
341
349
|
|
|
342
350
|
def _is_text_field(self, value: Any) -> bool:
|
|
343
|
-
"""
|
|
351
|
+
"""
|
|
352
|
+
Check if value is a string and keyword filtering needs to be performed.
|
|
344
353
|
|
|
345
354
|
Not applied to datetime strings.
|
|
346
355
|
"""
|
|
@@ -354,7 +363,8 @@ class OpensearchVectorClient:
|
|
|
354
363
|
return False
|
|
355
364
|
|
|
356
365
|
def _parse_filter(self, filter: MetadataFilter) -> dict:
|
|
357
|
-
"""
|
|
366
|
+
"""
|
|
367
|
+
Parse a single MetadataFilter to equivalent OpenSearch expression.
|
|
358
368
|
|
|
359
369
|
As Opensearch does not differentiate between scalar/array keyword fields, IN and ANY are equivalent.
|
|
360
370
|
"""
|
|
@@ -456,6 +466,7 @@ class OpensearchVectorClient:
|
|
|
456
466
|
|
|
457
467
|
Returns:
|
|
458
468
|
Dict: Up to k documents closest to query_embedding.
|
|
469
|
+
|
|
459
470
|
"""
|
|
460
471
|
filters = self._parse_filters(filters)
|
|
461
472
|
|
|
@@ -545,7 +556,8 @@ class OpensearchVectorClient:
|
|
|
545
556
|
def __get_painless_scripting_source(
|
|
546
557
|
self, space_type: str, vector_field: str = "embedding"
|
|
547
558
|
) -> str:
|
|
548
|
-
"""
|
|
559
|
+
"""
|
|
560
|
+
For Painless Scripting, it returns the script source based on space type.
|
|
549
561
|
This does not work with Opensearch Serverless currently.
|
|
550
562
|
"""
|
|
551
563
|
source_value = (
|
|
@@ -586,7 +598,8 @@ class OpensearchVectorClient:
|
|
|
586
598
|
pre_filter: Optional[Union[Dict, List]] = None,
|
|
587
599
|
vector_field: str = "embedding",
|
|
588
600
|
) -> Dict:
|
|
589
|
-
"""
|
|
601
|
+
"""
|
|
602
|
+
For Scoring Script Search, this is the default query. Has to account for Opensearch Service
|
|
590
603
|
Serverless which does not support painless scripting functions so defaults to knn_score.
|
|
591
604
|
"""
|
|
592
605
|
if not pre_filter:
|
|
@@ -617,13 +630,7 @@ class OpensearchVectorClient:
|
|
|
617
630
|
|
|
618
631
|
def _is_aoss_enabled(self, http_auth: Any) -> bool:
|
|
619
632
|
"""Check if the service is http_auth is set as `aoss`."""
|
|
620
|
-
|
|
621
|
-
http_auth is not None
|
|
622
|
-
and hasattr(http_auth, "service")
|
|
623
|
-
and http_auth.service == "aoss"
|
|
624
|
-
):
|
|
625
|
-
return True
|
|
626
|
-
return False
|
|
633
|
+
return http_auth is not None and hasattr(http_auth, "service") and http_auth.service == "aoss"
|
|
627
634
|
|
|
628
635
|
def _is_efficient_filtering_enabled(self) -> bool:
|
|
629
636
|
"""Check if kNN with efficient filtering is enabled."""
|
|
@@ -696,6 +703,7 @@ class OpensearchVectorClient:
|
|
|
696
703
|
|
|
697
704
|
Args:
|
|
698
705
|
doc_id (str): a LlamaIndex `Document` id
|
|
706
|
+
|
|
699
707
|
"""
|
|
700
708
|
search_query = {
|
|
701
709
|
"query": {"term": {"metadata.doc_id.keyword": {"value": doc_id}}}
|
|
@@ -710,6 +718,7 @@ class OpensearchVectorClient:
|
|
|
710
718
|
|
|
711
719
|
Args:
|
|
712
720
|
doc_id (str): a LlamaIndex `Document` id
|
|
721
|
+
|
|
713
722
|
"""
|
|
714
723
|
search_query = {
|
|
715
724
|
"query": {"term": {"metadata.doc_id.keyword": {"value": doc_id}}}
|
|
@@ -724,11 +733,13 @@ class OpensearchVectorClient:
|
|
|
724
733
|
filters: Optional[MetadataFilters] = None,
|
|
725
734
|
**delete_kwargs: Any,
|
|
726
735
|
) -> None:
|
|
727
|
-
"""
|
|
736
|
+
"""
|
|
737
|
+
Deletes nodes.
|
|
728
738
|
|
|
729
739
|
Args:
|
|
730
740
|
node_ids (Optional[List[str]], optional): IDs of nodes to delete. Defaults to None.
|
|
731
741
|
filters (Optional[MetadataFilters], optional): Metadata filters. Defaults to None.
|
|
742
|
+
|
|
732
743
|
"""
|
|
733
744
|
if not node_ids and not filters:
|
|
734
745
|
return
|
|
@@ -748,11 +759,13 @@ class OpensearchVectorClient:
|
|
|
748
759
|
filters: Optional[MetadataFilters] = None,
|
|
749
760
|
**delete_kwargs: Any,
|
|
750
761
|
) -> None:
|
|
751
|
-
"""
|
|
762
|
+
"""
|
|
763
|
+
Deletes nodes.
|
|
752
764
|
|
|
753
765
|
Args:
|
|
754
766
|
node_ids (Optional[List[str]], optional): IDs of nodes to delete. Defaults to None.
|
|
755
767
|
filters (Optional[MetadataFilters], optional): Metadata filters. Defaults to None.
|
|
768
|
+
|
|
756
769
|
"""
|
|
757
770
|
if not node_ids and not filters:
|
|
758
771
|
return
|
|
@@ -888,7 +901,6 @@ class OpensearchVectorClient:
|
|
|
888
901
|
start_char_idx=start_char_idx,
|
|
889
902
|
end_char_idx=end_char_idx,
|
|
890
903
|
relationships=relationships,
|
|
891
|
-
extra_info=source,
|
|
892
904
|
)
|
|
893
905
|
ids.append(node_id)
|
|
894
906
|
nodes.append(node)
|
|
@@ -933,6 +945,7 @@ class OpensearchVectorStore(BasePydanticVectorStore):
|
|
|
933
945
|
# initialize vector store
|
|
934
946
|
vector_store = OpensearchVectorStore(client)
|
|
935
947
|
```
|
|
948
|
+
|
|
936
949
|
"""
|
|
937
950
|
|
|
938
951
|
stores_text: bool = True
|
|
@@ -1007,11 +1020,13 @@ class OpensearchVectorStore(BasePydanticVectorStore):
|
|
|
1007
1020
|
filters: Optional[MetadataFilters] = None,
|
|
1008
1021
|
**delete_kwargs: Any,
|
|
1009
1022
|
) -> None:
|
|
1010
|
-
"""
|
|
1023
|
+
"""
|
|
1024
|
+
Deletes nodes async.
|
|
1011
1025
|
|
|
1012
1026
|
Args:
|
|
1013
1027
|
node_ids (Optional[List[str]], optional): IDs of nodes to delete. Defaults to None.
|
|
1014
1028
|
filters (Optional[MetadataFilters], optional): Metadata filters. Defaults to None.
|
|
1029
|
+
|
|
1015
1030
|
"""
|
|
1016
1031
|
self._client.delete_nodes(node_ids, filters, **delete_kwargs)
|
|
1017
1032
|
|
|
@@ -1021,11 +1036,13 @@ class OpensearchVectorStore(BasePydanticVectorStore):
|
|
|
1021
1036
|
filters: Optional[MetadataFilters] = None,
|
|
1022
1037
|
**delete_kwargs: Any,
|
|
1023
1038
|
) -> None:
|
|
1024
|
-
"""
|
|
1039
|
+
"""
|
|
1040
|
+
Async deletes nodes async.
|
|
1025
1041
|
|
|
1026
1042
|
Args:
|
|
1027
1043
|
node_ids (Optional[List[str]], optional): IDs of nodes to delete. Defaults to None.
|
|
1028
1044
|
filters (Optional[MetadataFilters], optional): Metadata filters. Defaults to None.
|
|
1045
|
+
|
|
1029
1046
|
"""
|
|
1030
1047
|
await self._client.adelete_nodes(node_ids, filters, **delete_kwargs)
|
|
1031
1048
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[dependency-groups]
|
|
6
|
+
dev = [
|
|
7
|
+
"ipython==8.10.0",
|
|
8
|
+
"jupyter>=1.0.0,<2",
|
|
9
|
+
"mypy==0.991",
|
|
10
|
+
"pre-commit==3.2.0",
|
|
11
|
+
"pylint==2.15.10",
|
|
12
|
+
"pytest==7.2.1",
|
|
13
|
+
"pytest-asyncio==0.21.0",
|
|
14
|
+
"pytest-mock==3.11.1",
|
|
15
|
+
"ruff==0.0.292",
|
|
16
|
+
"types-Deprecated>=0.1.0",
|
|
17
|
+
"types-PyYAML>=6.0.12.12,<7",
|
|
18
|
+
"types-protobuf>=4.24.0.4,<5",
|
|
19
|
+
"types-redis==4.5.5.0",
|
|
20
|
+
"types-requests==2.28.11.8",
|
|
21
|
+
"types-setuptools==67.1.0.0",
|
|
22
|
+
"black[jupyter]<=23.9.1,>=23.7.0",
|
|
23
|
+
"codespell[toml]>=v2.2.6",
|
|
24
|
+
"diff-cover>=9.2.0",
|
|
25
|
+
"pytest-cov>=6.1.1",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project]
|
|
29
|
+
name = "llama-index-vector-stores-opensearch"
|
|
30
|
+
version = "0.5.4"
|
|
31
|
+
description = "llama-index vector_stores opensearch integration"
|
|
32
|
+
authors = [{name = "Your Name", email = "you@example.com"}]
|
|
33
|
+
requires-python = ">=3.9,<4.0"
|
|
34
|
+
readme = "README.md"
|
|
35
|
+
license = "MIT"
|
|
36
|
+
dependencies = [
|
|
37
|
+
"llama-index-core>=0.12.0,<0.13",
|
|
38
|
+
"opensearch-py[async]>=2.4.2,<3",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[tool.codespell]
|
|
42
|
+
check-filenames = true
|
|
43
|
+
check-hidden = true
|
|
44
|
+
skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
|
|
45
|
+
|
|
46
|
+
[tool.hatch.build.targets.sdist]
|
|
47
|
+
include = ["llama_index/"]
|
|
48
|
+
exclude = ["**/BUILD"]
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
include = ["llama_index/"]
|
|
52
|
+
exclude = ["**/BUILD"]
|
|
53
|
+
|
|
54
|
+
[tool.llamahub]
|
|
55
|
+
contains_example = false
|
|
56
|
+
import_path = "llama_index.vector_stores.opensearch"
|
|
57
|
+
|
|
58
|
+
[tool.llamahub.class_authors]
|
|
59
|
+
OpensearchVectorStore = "llama-index"
|
|
60
|
+
|
|
61
|
+
[tool.mypy]
|
|
62
|
+
disallow_untyped_defs = true
|
|
63
|
+
exclude = ["_static", "build", "examples", "notebooks", "venv"]
|
|
64
|
+
ignore_missing_imports = true
|
|
65
|
+
python_version = "3.8"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: llama-index-vector-stores-opensearch
|
|
3
|
-
Version: 0.5.2
|
|
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,66 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
build-backend = "poetry.core.masonry.api"
|
|
3
|
-
requires = ["poetry-core"]
|
|
4
|
-
|
|
5
|
-
[tool.codespell]
|
|
6
|
-
check-filenames = true
|
|
7
|
-
check-hidden = true
|
|
8
|
-
skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
|
|
9
|
-
|
|
10
|
-
[tool.llamahub]
|
|
11
|
-
contains_example = false
|
|
12
|
-
import_path = "llama_index.vector_stores.opensearch"
|
|
13
|
-
|
|
14
|
-
[tool.llamahub.class_authors]
|
|
15
|
-
OpensearchVectorStore = "llama-index"
|
|
16
|
-
|
|
17
|
-
[tool.mypy]
|
|
18
|
-
disallow_untyped_defs = true
|
|
19
|
-
exclude = ["_static", "build", "examples", "notebooks", "venv"]
|
|
20
|
-
ignore_missing_imports = true
|
|
21
|
-
python_version = "3.8"
|
|
22
|
-
|
|
23
|
-
[tool.poetry]
|
|
24
|
-
authors = ["Your Name <you@example.com>"]
|
|
25
|
-
description = "llama-index vector_stores opensearch integration"
|
|
26
|
-
exclude = ["**/BUILD"]
|
|
27
|
-
license = "MIT"
|
|
28
|
-
name = "llama-index-vector-stores-opensearch"
|
|
29
|
-
readme = "README.md"
|
|
30
|
-
version = "0.5.2"
|
|
31
|
-
|
|
32
|
-
[tool.poetry.dependencies]
|
|
33
|
-
python = ">=3.9,<4.0"
|
|
34
|
-
llama-index-core = "^0.12.0"
|
|
35
|
-
|
|
36
|
-
[tool.poetry.dependencies.opensearch-py]
|
|
37
|
-
extras = ["async"]
|
|
38
|
-
version = "^2.4.2"
|
|
39
|
-
|
|
40
|
-
[tool.poetry.group.dev.dependencies]
|
|
41
|
-
ipython = "8.10.0"
|
|
42
|
-
jupyter = "^1.0.0"
|
|
43
|
-
mypy = "0.991"
|
|
44
|
-
pre-commit = "3.2.0"
|
|
45
|
-
pylint = "2.15.10"
|
|
46
|
-
pytest = "7.2.1"
|
|
47
|
-
pytest-mock = "3.11.1"
|
|
48
|
-
ruff = "0.0.292"
|
|
49
|
-
tree-sitter-languages = "^1.8.0"
|
|
50
|
-
types-Deprecated = ">=0.1.0"
|
|
51
|
-
types-PyYAML = "^6.0.12.12"
|
|
52
|
-
types-protobuf = "^4.24.0.4"
|
|
53
|
-
types-redis = "4.5.5.0"
|
|
54
|
-
types-requests = "2.28.11.8"
|
|
55
|
-
types-setuptools = "67.1.0.0"
|
|
56
|
-
|
|
57
|
-
[tool.poetry.group.dev.dependencies.black]
|
|
58
|
-
extras = ["jupyter"]
|
|
59
|
-
version = "<=23.9.1,>=23.7.0"
|
|
60
|
-
|
|
61
|
-
[tool.poetry.group.dev.dependencies.codespell]
|
|
62
|
-
extras = ["toml"]
|
|
63
|
-
version = ">=v2.2.6"
|
|
64
|
-
|
|
65
|
-
[[tool.poetry.packages]]
|
|
66
|
-
include = "llama_index/"
|
{llama_index_vector_stores_opensearch-0.5.2 → llama_index_vector_stores_opensearch-0.5.4}/README.md
RENAMED
|
File without changes
|
|
File without changes
|