sunholo 0.126.4__py3-none-any.whl → 0.127.0__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/agents/dispatch_to_qa.py +5 -6
- sunholo/discovery_engine/discovery_engine_client.py +1 -0
- sunholo/utils/config_class.py +19 -12
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/METADATA +3 -1
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/RECORD +9 -9
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/WHEEL +0 -0
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/entry_points.txt +0 -0
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.126.4.dist-info → sunholo-0.127.0.dist-info}/top_level.txt +0 -0
sunholo/agents/dispatch_to_qa.py
CHANGED
@@ -21,11 +21,6 @@ import traceback
|
|
21
21
|
from .route import route_endpoint
|
22
22
|
import os
|
23
23
|
|
24
|
-
try:
|
25
|
-
from langfuse import Langfuse
|
26
|
-
langfuse = Langfuse()
|
27
|
-
except ImportError:
|
28
|
-
langfuse = None
|
29
24
|
|
30
25
|
def prep_request_payload(user_input, chat_history, vector_name, stream, **kwargs):
|
31
26
|
"""
|
@@ -93,7 +88,11 @@ def prep_request_payload(user_input, chat_history, vector_name, stream, **kwargs
|
|
93
88
|
return qna_endpoint, qna_data
|
94
89
|
|
95
90
|
def add_langfuse_trace(qna_endpoint):
|
96
|
-
|
91
|
+
try:
|
92
|
+
from langfuse import Langfuse
|
93
|
+
langfuse = Langfuse()
|
94
|
+
except Exception as err:
|
95
|
+
log.error(err)
|
97
96
|
return None
|
98
97
|
|
99
98
|
trace = langfuse.trace(name = f'dispatch/{os.path.basename(qna_endpoint)}')
|
@@ -614,6 +614,7 @@ class DiscoveryEngineClient:
|
|
614
614
|
reconciliation_mode=discoveryengine.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL,
|
615
615
|
)
|
616
616
|
|
617
|
+
log.debug(f"Making import_document_request: {request}")
|
617
618
|
return self._import_document_request(request)
|
618
619
|
|
619
620
|
def _create_unique_gsuri_docid(self, gcs_uri:str):
|
sunholo/utils/config_class.py
CHANGED
@@ -112,18 +112,6 @@ class ConfigManager:
|
|
112
112
|
"""
|
113
113
|
Helper function to load a config file and update the cache.
|
114
114
|
|
115
|
-
Args:
|
116
|
-
config_file (str): The path to the configuration file.
|
117
|
-
filename (str): The name of the configuration file.
|
118
|
-
is_local (bool): Indicates if the config file is from the local folder.
|
119
|
-
|
120
|
-
Returns:
|
121
|
-
dict: The loaded configuration.
|
122
|
-
"""
|
123
|
-
def _reload_config_file(self, config_file, filename, is_local=False):
|
124
|
-
"""
|
125
|
-
Helper function to load a config file and update the cache.
|
126
|
-
|
127
115
|
Args:
|
128
116
|
config_file (str): The path to the configuration file.
|
129
117
|
filename (str): The name of the configuration file.
|
@@ -244,4 +232,23 @@ class ConfigManager:
|
|
244
232
|
return agents[key]
|
245
233
|
else:
|
246
234
|
return agents.get("default")
|
235
|
+
|
236
|
+
def permissionConfig(self, key: str):
|
237
|
+
"""
|
238
|
+
Fetch a key from 'permissionConfig' kind configuration.
|
247
239
|
|
240
|
+
Args:
|
241
|
+
key (str): The key to fetch from the configuration.
|
242
|
+
|
243
|
+
Returns:
|
244
|
+
str: The value associated with the specified key.
|
245
|
+
"""
|
246
|
+
self._check_and_reload_configs()
|
247
|
+
config = self.configs_by_kind.get('permissionConfig')
|
248
|
+
if not config:
|
249
|
+
return None
|
250
|
+
agents = config.get('permissions')
|
251
|
+
if key in agents:
|
252
|
+
return agents[key]
|
253
|
+
else:
|
254
|
+
return None
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: sunholo
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.127.0
|
4
4
|
Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
|
5
5
|
Author-email: Holosun ApS <multivac@sunholo.com>
|
6
6
|
License: Apache License, Version 2.0
|
@@ -142,6 +142,7 @@ Requires-Dist: google-cloud-discoveryengine>=0.13.4; extra == "gcp"
|
|
142
142
|
Requires-Dist: google-cloud-texttospeech; extra == "gcp"
|
143
143
|
Requires-Dist: google-genai>=0.2.2; extra == "gcp"
|
144
144
|
Requires-Dist: google-generativeai>=0.8.3; extra == "gcp"
|
145
|
+
Requires-Dist: langchain; extra == "gcp"
|
145
146
|
Requires-Dist: langchain-google-genai>=2.0.0; extra == "gcp"
|
146
147
|
Requires-Dist: langchain_google_alloydb_pg>=0.2.2; extra == "gcp"
|
147
148
|
Requires-Dist: langchain-google-vertexai; extra == "gcp"
|
@@ -164,6 +165,7 @@ Requires-Dist: flask; extra == "http"
|
|
164
165
|
Requires-Dist: gunicorn; extra == "http"
|
165
166
|
Requires-Dist: httpcore; extra == "http"
|
166
167
|
Requires-Dist: httpx; extra == "http"
|
168
|
+
Requires-Dist: langchain; extra == "http"
|
167
169
|
Requires-Dist: langfuse; extra == "http"
|
168
170
|
Requires-Dist: python-socketio; extra == "http"
|
169
171
|
Requires-Dist: requests; extra == "http"
|
@@ -3,7 +3,7 @@ sunholo/custom_logging.py,sha256=YfIN1oP3dOEkkYkyRBU8BGS3uJFGwUDsFCl8mIVbwvE,122
|
|
3
3
|
sunholo/langchain_types.py,sha256=uZ4zvgej_f7pLqjtu4YP7qMC_eZD5ym_5x4pyvA1Ih4,1834
|
4
4
|
sunholo/agents/__init__.py,sha256=X2I3pPkGeKWjc3d0QgSpkTyqD8J8JtrEWqwrumf1MMc,391
|
5
5
|
sunholo/agents/chat_history.py,sha256=Gph_CdlP2otYnNdR1q1Umyyyvcad2F6K3LxU5yBQ9l0,5387
|
6
|
-
sunholo/agents/dispatch_to_qa.py,sha256=
|
6
|
+
sunholo/agents/dispatch_to_qa.py,sha256=NHihwAoCJ5_Lk11e_jZnucVUGQyZHCB-YpkfMHBCpQk,8882
|
7
7
|
sunholo/agents/langserve.py,sha256=C46ph2mnygr6bdHijYWYyfQDI9ylAF0_9Kx2PfcCJpU,4414
|
8
8
|
sunholo/agents/pubsub.py,sha256=TscZN_6am6DfaQkC-Yl18ZIBOoLE-0nDSiil6GpQEh4,1344
|
9
9
|
sunholo/agents/route.py,sha256=mV8tGABbSqcg3PQL02MgQOs41gKEHLMyIJJJcTuFdbE,2988
|
@@ -75,7 +75,7 @@ sunholo/discovery_engine/__init__.py,sha256=hLgqRDJ22Aov9o2QjAEfsVgnL3kMdM-g5p8R
|
|
75
75
|
sunholo/discovery_engine/chunker_handler.py,sha256=44qlTpdtz2GKzrhoQrxVMk-RPVFp7vQDPJoe9KmCcsw,7517
|
76
76
|
sunholo/discovery_engine/cli.py,sha256=KGVle5rkLL49oF9TQhrGI--8017IvvLOEoYur545Qb0,12790
|
77
77
|
sunholo/discovery_engine/create_new.py,sha256=WUi4_xh_dFaGX3xA9jkNKZhaR6LCELjMPeRb0hyj4FU,1226
|
78
|
-
sunholo/discovery_engine/discovery_engine_client.py,sha256=
|
78
|
+
sunholo/discovery_engine/discovery_engine_client.py,sha256=0KhKRFKCvqvtkUOIrCXNk5353t9duuEtUQDhQnN2B24,37335
|
79
79
|
sunholo/discovery_engine/get_ai_search_chunks.py,sha256=I6Dt1CznqEvE7XIZ2PkLqopmjpO96iVEWJJqL5cJjOU,5554
|
80
80
|
sunholo/embedder/__init__.py,sha256=sI4N_CqgEVcrMDxXgxKp1FsfsB4FpjoXgPGkl4N_u4I,44
|
81
81
|
sunholo/embedder/embed_chunk.py,sha256=did2pKkWM2o0KkRcb0H9l2x_WjCq6OyuHDxGbITFKPM,6530
|
@@ -151,7 +151,7 @@ sunholo/utils/__init__.py,sha256=Hv02T5L2zYWvCso5hzzwm8FQogwBq0OgtUbN_7Quzqc,89
|
|
151
151
|
sunholo/utils/api_key.py,sha256=Ct4bIAQZxzPEw14hP586LpVxBAVi_W9Serpy0BK-7KI,244
|
152
152
|
sunholo/utils/big_context.py,sha256=HuP9_r_Nx1jvZHxjMEihgoZAXmnCh80zzsj1fq3mIOg,6021
|
153
153
|
sunholo/utils/config.py,sha256=bz0ODJyqnoHQIsk4pmNpVxxq5WvwS0SfOq4cnCjQPJk,9105
|
154
|
-
sunholo/utils/config_class.py,sha256=
|
154
|
+
sunholo/utils/config_class.py,sha256=zhp71gNZb-t1cbkN2N3zwCAEiX0FSvKaKlpBxosgI4U,9750
|
155
155
|
sunholo/utils/config_schema.py,sha256=Wv-ncitzljOhgbDaq9qnFqH5LCuxNv59dTGDWgd1qdk,4189
|
156
156
|
sunholo/utils/gcp.py,sha256=lus1HH8YhFInw6QRKwfvKZq-Lz-2KQg4ips9v1I_3zE,4783
|
157
157
|
sunholo/utils/gcp_project.py,sha256=Fa0IhCX12bZ1ctF_PKN8PNYd7hihEUfb90kilBfUDjg,1411
|
@@ -168,9 +168,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
168
168
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
169
169
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
170
170
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
171
|
-
sunholo-0.
|
172
|
-
sunholo-0.
|
173
|
-
sunholo-0.
|
174
|
-
sunholo-0.
|
175
|
-
sunholo-0.
|
176
|
-
sunholo-0.
|
171
|
+
sunholo-0.127.0.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.127.0.dist-info/METADATA,sha256=hvXLBki1RQ_ZLhcm3Ej-qQq1-9XADsZg-F6N7oxzP1A,10084
|
173
|
+
sunholo-0.127.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
174
|
+
sunholo-0.127.0.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.127.0.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.127.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|