sunholo 0.71.0__py3-none-any.whl → 0.71.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.
- sunholo/components/vectorstore.py +1 -3
- sunholo/llamaindex/import_files.py +10 -5
- sunholo/vertex/memory_tools.py +4 -3
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/METADATA +7 -2
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/RECORD +9 -9
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/WHEEL +0 -0
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/entry_points.txt +0 -0
- {sunholo-0.71.0.dist-info → sunholo-0.71.3.dist-info}/top_level.txt +0 -0
|
@@ -69,11 +69,16 @@ def do_llamaindex(message_data, metadata, vector_name):
|
|
|
69
69
|
rag_id = value.get('rag_id')
|
|
70
70
|
project_id = gcp_config.get('project_id')
|
|
71
71
|
location = gcp_config.get('location')
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
try:
|
|
73
|
+
corpus = fetch_corpus(
|
|
74
|
+
project_id=project_id or global_project_id,
|
|
75
|
+
location=location or global_location,
|
|
76
|
+
rag_id=rag_id or global_rag_id
|
|
77
|
+
)
|
|
78
|
+
except Exception as err:
|
|
79
|
+
log.warning(f"Failed to fetch LlamaIndex corpus: {err=}")
|
|
80
|
+
continue
|
|
81
|
+
|
|
77
82
|
corpuses.append(corpus)
|
|
78
83
|
if not corpuses:
|
|
79
84
|
log.error("Could not find a RAG corpus to import data to")
|
sunholo/vertex/memory_tools.py
CHANGED
|
@@ -62,8 +62,8 @@ def get_vertex_memories(vector_name):
|
|
|
62
62
|
if rag_id is None:
|
|
63
63
|
raise ValueError("Must specify rag_id if using vectorstore: llamaindex")
|
|
64
64
|
|
|
65
|
-
project_id = gcp_config.get('project_id')
|
|
66
|
-
location = gcp_config.get('location')
|
|
65
|
+
project_id = value.get('project_id') or gcp_config.get('project_id')
|
|
66
|
+
location = value.get('location') or gcp_config.get('location')
|
|
67
67
|
|
|
68
68
|
try:
|
|
69
69
|
corpus = fetch_corpus(
|
|
@@ -87,7 +87,8 @@ def get_vertex_memories(vector_name):
|
|
|
87
87
|
elif vectorstore == "discovery_engine" or vectorstore == "vertex_ai_search":
|
|
88
88
|
|
|
89
89
|
try:
|
|
90
|
-
|
|
90
|
+
project_id = value.get('project_id') or get_gcp_project()
|
|
91
|
+
de = DiscoveryEngineClient(vector_name, project_id=project_id)
|
|
91
92
|
log.info(f"Found vectorstore {vectorstore}")
|
|
92
93
|
|
|
93
94
|
data_store_path = f"{de.data_store_path()}/dataStores/{vector_name}"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.71.
|
|
3
|
+
Version: 0.71.3
|
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
|
5
5
|
Home-page: https://github.com/sunholo-data/sunholo-py
|
|
6
|
-
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.71.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.71.3.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -60,10 +60,13 @@ Requires-Dist: playwright ; extra == 'all'
|
|
|
60
60
|
Requires-Dist: psycopg2-binary ; extra == 'all'
|
|
61
61
|
Requires-Dist: pypdf ; extra == 'all'
|
|
62
62
|
Requires-Dist: python-socketio ; extra == 'all'
|
|
63
|
+
Requires-Dist: pytesseract ; extra == 'all'
|
|
63
64
|
Requires-Dist: rich ; extra == 'all'
|
|
64
65
|
Requires-Dist: supabase ; extra == 'all'
|
|
66
|
+
Requires-Dist: tabulate ; extra == 'all'
|
|
65
67
|
Requires-Dist: tantivy ; extra == 'all'
|
|
66
68
|
Requires-Dist: tiktoken ; extra == 'all'
|
|
69
|
+
Requires-Dist: unstructured[local-inference] ; extra == 'all'
|
|
67
70
|
Provides-Extra: anthropic
|
|
68
71
|
Requires-Dist: langchain-anthropic >=0.1.13 ; extra == 'anthropic'
|
|
69
72
|
Provides-Extra: cli
|
|
@@ -110,7 +113,9 @@ Provides-Extra: pipeline
|
|
|
110
113
|
Requires-Dist: GitPython ; extra == 'pipeline'
|
|
111
114
|
Requires-Dist: lark ; extra == 'pipeline'
|
|
112
115
|
Requires-Dist: pypdf ; extra == 'pipeline'
|
|
116
|
+
Requires-Dist: pytesseract ; extra == 'pipeline'
|
|
113
117
|
Requires-Dist: tabulate ; extra == 'pipeline'
|
|
118
|
+
Requires-Dist: unstructured[local-inference] ; extra == 'pipeline'
|
|
114
119
|
Provides-Extra: tools
|
|
115
120
|
Requires-Dist: playwright ; extra == 'tools'
|
|
116
121
|
|
|
@@ -46,7 +46,7 @@ sunholo/cli/swagger.py,sha256=absYKAU-7Yd2eiVNUY-g_WLl2zJfeRUNdWQ0oH8M_HM,1564
|
|
|
46
46
|
sunholo/components/__init__.py,sha256=IDoylb74zFKo6NIS3RQqUl0PDFBGVxM1dfUmO7OJ44U,176
|
|
47
47
|
sunholo/components/llm.py,sha256=T4we3tGmqUj4tPwxQr9M6AXv_BALqZV_dRSvINan-oU,10374
|
|
48
48
|
sunholo/components/retriever.py,sha256=jltG91N5r2P9RWKPW8A8tU3ilghciBczxapauW83Ir8,6377
|
|
49
|
-
sunholo/components/vectorstore.py,sha256=
|
|
49
|
+
sunholo/components/vectorstore.py,sha256=zUJ90L1S4IyxLB0JUWopeuwVjcsSqdhj1QreEfsJhsE,5548
|
|
50
50
|
sunholo/database/__init__.py,sha256=Zz0Shcq-CtStf9rJGIYB_Ybzb8rY_Q9mfSj-nviM490,241
|
|
51
51
|
sunholo/database/alloydb.py,sha256=d9W0pbZB0jTVIGF5OVaQ6kXHo-X3-6e9NpWNmV5e9UY,10464
|
|
52
52
|
sunholo/database/alloydb_client.py,sha256=AYA0SSaBy-1XEfeZI97sMGehfrwnfbwZ8sE0exzI2E0,7254
|
|
@@ -76,7 +76,7 @@ sunholo/langfuse/prompts.py,sha256=HO4Zy9usn5tKooBPCKksuw4Lff3c03Ny5wqn4ce_xZM,1
|
|
|
76
76
|
sunholo/llamaindex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
77
77
|
sunholo/llamaindex/generate.py,sha256=l1Picr-hVwkmAUD7XmTCa63qY9ERliFHQXwyX3BqB2Q,686
|
|
78
78
|
sunholo/llamaindex/get_files.py,sha256=6rhXCDqQ_lrIapISQ_OYQDjiSATXvS_9m3qq53-oIl0,781
|
|
79
|
-
sunholo/llamaindex/import_files.py,sha256=
|
|
79
|
+
sunholo/llamaindex/import_files.py,sha256=_v1yIFksUQvqLgdH19bWFfIkG4R3srYRg6EwduAPxms,5844
|
|
80
80
|
sunholo/lookup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
81
|
sunholo/lookup/model_lookup.yaml,sha256=O7o-jP53MLA06C8pI-ILwERShO-xf6z_258wtpZBv6A,739
|
|
82
82
|
sunholo/patches/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -111,11 +111,11 @@ sunholo/vertex/__init__.py,sha256=JvHcGFuv6R_nAhY2AdoqqhMpJ5ugeWPZ_svGhWrObBk,13
|
|
|
111
111
|
sunholo/vertex/extensions.py,sha256=d-Ikt9gHFf-jUMPmyU-xHwYe22QtEyr90Ua1LDKgTws,11026
|
|
112
112
|
sunholo/vertex/extensions_class.py,sha256=0-XMrMvfhMN380ZdGXl11Mt7R9kCu9rB4Vduiflk8QA,9202
|
|
113
113
|
sunholo/vertex/init.py,sha256=RLjQppTUwubWgwf2PoAke-EtcwlVkFPaPMYvUsMw1KQ,2029
|
|
114
|
-
sunholo/vertex/memory_tools.py,sha256=
|
|
114
|
+
sunholo/vertex/memory_tools.py,sha256=x4Z4Hlpd1VNFu_DfA7xtF0ySF0-IXbkLJJLa6RTpks0,5871
|
|
115
115
|
sunholo/vertex/safety.py,sha256=3meAX0HyGZYrH7rXPUAHxtI_3w_zoy_RX7Shtkoa660,1275
|
|
116
|
-
sunholo-0.71.
|
|
117
|
-
sunholo-0.71.
|
|
118
|
-
sunholo-0.71.
|
|
119
|
-
sunholo-0.71.
|
|
120
|
-
sunholo-0.71.
|
|
121
|
-
sunholo-0.71.
|
|
116
|
+
sunholo-0.71.3.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
117
|
+
sunholo-0.71.3.dist-info/METADATA,sha256=qTbG0VEJ-OpN3nFJsGL-5qboJYXQOytrs9sFVhqyves,6613
|
|
118
|
+
sunholo-0.71.3.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
119
|
+
sunholo-0.71.3.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
120
|
+
sunholo-0.71.3.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
121
|
+
sunholo-0.71.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|