sunholo 0.67.5__py3-none-any.whl → 0.67.7__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/route.py +4 -1
- sunholo/chunker/publish.py +3 -3
- sunholo/components/retriever.py +1 -1
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/METADATA +2 -2
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/RECORD +9 -9
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/WHEEL +0 -0
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/entry_points.txt +0 -0
- {sunholo-0.67.5.dist-info → sunholo-0.67.7.dist-info}/top_level.txt +0 -0
sunholo/agents/route.py
CHANGED
|
@@ -47,19 +47,22 @@ def route_endpoint(vector_name, method = 'post', override_endpoint=None):
|
|
|
47
47
|
|
|
48
48
|
agents_config = load_config_key(agent_type, vector_name, kind="agentConfig")
|
|
49
49
|
|
|
50
|
-
log.info(f"
|
|
50
|
+
log.info(f"agents_config: {agents_config}")
|
|
51
51
|
if method not in agents_config:
|
|
52
52
|
raise ValueError(f"Invalid method '{method}' for agent configuration.")
|
|
53
53
|
|
|
54
54
|
# 'post' or 'get'
|
|
55
55
|
endpoints_config = agents_config[method]
|
|
56
56
|
|
|
57
|
+
log.info(f"endpoints_config: {endpoints_config}")
|
|
57
58
|
# Replace placeholders in the config
|
|
58
59
|
endpoints = {}
|
|
59
60
|
for key, value in endpoints_config.items():
|
|
60
61
|
format_args = {'stem': stem}
|
|
61
62
|
if '{vector_name}' in value and vector_name is not None:
|
|
62
63
|
format_args['vector_name'] = vector_name
|
|
64
|
+
|
|
65
|
+
log.debug('format_args: {format_args} - value: {value} - key: {key}')
|
|
63
66
|
endpoints[key] = value.format(**format_args)
|
|
64
67
|
|
|
65
68
|
return endpoints
|
sunholo/chunker/publish.py
CHANGED
|
@@ -19,7 +19,7 @@ def publish_if_urls(the_content, vector_name):
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def publish_chunks(chunks: list[Document], vector_name: str):
|
|
22
|
-
project = get_gcp_project(
|
|
22
|
+
project = get_gcp_project()
|
|
23
23
|
if not project:
|
|
24
24
|
log.warning("No GCP project found for PubSub, no message sent")
|
|
25
25
|
|
|
@@ -47,7 +47,7 @@ def publish_chunks(chunks: list[Document], vector_name: str):
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def publish_text(text:str, vector_name: str):
|
|
50
|
-
project = get_gcp_project(
|
|
50
|
+
project = get_gcp_project()
|
|
51
51
|
if not project:
|
|
52
52
|
log.warning("No GCP project found for PubSub, no message sent")
|
|
53
53
|
|
|
@@ -61,7 +61,7 @@ def publish_text(text:str, vector_name: str):
|
|
|
61
61
|
pubsub_manager.publish_message(text)
|
|
62
62
|
|
|
63
63
|
def process_docs_chunks_vector_name(chunks, vector_name, metadata):
|
|
64
|
-
project = get_gcp_project(
|
|
64
|
+
project = get_gcp_project()
|
|
65
65
|
if not project:
|
|
66
66
|
log.warning("No GCP project found for PubSub, no message sent")
|
|
67
67
|
|
sunholo/components/retriever.py
CHANGED
|
@@ -57,7 +57,7 @@ def pick_retriever(vector_name, embeddings=None):
|
|
|
57
57
|
if value.get('provider') == "GoogleCloudEnterpriseSearchRetriever":
|
|
58
58
|
log.info(f"Found GoogleCloudEnterpriseSearchRetriever {value['provider']}")
|
|
59
59
|
gcp_retriever = GoogleCloudEnterpriseSearchRetriever(
|
|
60
|
-
project_id=get_gcp_project(
|
|
60
|
+
project_id=get_gcp_project(),
|
|
61
61
|
search_engine_id=value["db_id"],
|
|
62
62
|
location_id=value.get("location", "global"),
|
|
63
63
|
engine_data_type=1 if value.get("type","unstructured") == "structured" else 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.67.
|
|
3
|
+
Version: 0.67.7
|
|
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.67.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.67.7.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -5,7 +5,7 @@ sunholo/agents/chat_history.py,sha256=bkII7PNEbGCaobu2Rnr2rM9dim3BCK0kM-tiWhoI1t
|
|
|
5
5
|
sunholo/agents/dispatch_to_qa.py,sha256=nFNdxhkr7rVYuUwVoBCBNYBI2Dke6-_z_ZApBEWb_cU,8291
|
|
6
6
|
sunholo/agents/langserve.py,sha256=FdhQjorAY2bMn2rpuabNT6bU3uqSKWrl8DjpH3L_V7k,4375
|
|
7
7
|
sunholo/agents/pubsub.py,sha256=5hbbhbBGyVWRpt2sAGC5FEheYH1mCCwVUhZEB1S7vGg,1337
|
|
8
|
-
sunholo/agents/route.py,sha256=
|
|
8
|
+
sunholo/agents/route.py,sha256=aBuGV17EferxF01HBAmmXsiAPJ07zucPre6rRoHxS1o,2521
|
|
9
9
|
sunholo/agents/special_commands.py,sha256=ecD5jrBVXo170sdgPILi0m_m_4nRFEv6qKn5zYEvEK8,6494
|
|
10
10
|
sunholo/agents/swagger.py,sha256=wK90aGOgUojZjfMcjqhhJ_ksJ6ZCsVT1Iy02oU6Q5XM,10786
|
|
11
11
|
sunholo/agents/fastapi/__init__.py,sha256=S_pj4_bTUmDGoq_exaREHlOKThi0zTuGT0VZY0YfODQ,88
|
|
@@ -29,7 +29,7 @@ sunholo/chunker/images.py,sha256=Xmh1vwHrVhoXm5iH2dhCc52O8YgdzE8KrDSdL-pGnp8,186
|
|
|
29
29
|
sunholo/chunker/loaders.py,sha256=xiToUVgPz2ZzcqpUAq7aNP3PTenb_rBUAFzu0JPycIg,10268
|
|
30
30
|
sunholo/chunker/message_data.py,sha256=X6aA4yX5aGN_mEvsDPWvdYRqqn5GO1BU9QhT9w5A0ec,6789
|
|
31
31
|
sunholo/chunker/pdfs.py,sha256=daCZ1xjn1YvxlifIyxskWNpLJLe-Q9D_Jq12MWx3tZo,2473
|
|
32
|
-
sunholo/chunker/publish.py,sha256=
|
|
32
|
+
sunholo/chunker/publish.py,sha256=tiO615A2uo_ZjzdFDzNH1PL_1kJeLMUQwLJ4w67rNIc,2932
|
|
33
33
|
sunholo/chunker/splitter.py,sha256=FLkDhkePkg_zGQpFBK13Cznw575D-Rf9pcaCpc1HUxY,6726
|
|
34
34
|
sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
sunholo/cli/chat_vac.py,sha256=CceXT-nNVhXIGtVUg07FT8Azd0LBZN18kvCGIkJq7zM,18659
|
|
@@ -44,7 +44,7 @@ sunholo/cli/sun_rich.py,sha256=UpMqeJ0C8i0pkue1AHnnyyX0bFJ9zZeJ7HBR6yhuA8A,54
|
|
|
44
44
|
sunholo/cli/swagger.py,sha256=absYKAU-7Yd2eiVNUY-g_WLl2zJfeRUNdWQ0oH8M_HM,1564
|
|
45
45
|
sunholo/components/__init__.py,sha256=IDoylb74zFKo6NIS3RQqUl0PDFBGVxM1dfUmO7OJ44U,176
|
|
46
46
|
sunholo/components/llm.py,sha256=T4we3tGmqUj4tPwxQr9M6AXv_BALqZV_dRSvINan-oU,10374
|
|
47
|
-
sunholo/components/retriever.py,sha256=
|
|
47
|
+
sunholo/components/retriever.py,sha256=WzSBK3lOKRaYP6od4ed0__yOzEwID3wO8b3eAYhLCnU,3801
|
|
48
48
|
sunholo/components/vectorstore.py,sha256=lB8vx_N6eBA44orNeVo1WRn0Q8GCIjvPPT9AfiPWBWE,5620
|
|
49
49
|
sunholo/database/__init__.py,sha256=Zz0Shcq-CtStf9rJGIYB_Ybzb8rY_Q9mfSj-nviM490,241
|
|
50
50
|
sunholo/database/alloydb.py,sha256=UeWbk_DAqivquMGibX_tz8v1Jza9qnf4SWThNBG2Dh4,17327
|
|
@@ -105,9 +105,9 @@ sunholo/vertex/__init__.py,sha256=JvHcGFuv6R_nAhY2AdoqqhMpJ5ugeWPZ_svGhWrObBk,13
|
|
|
105
105
|
sunholo/vertex/init.py,sha256=JDMUaBRdednzbKF-5p33qqLit2LMsvgvWW-NRz0AqO0,1801
|
|
106
106
|
sunholo/vertex/memory_tools.py,sha256=8F1iTWnqEK9mX4W5RzCVKIjydIcNp6OFxjn_dtQ3GXo,5379
|
|
107
107
|
sunholo/vertex/safety.py,sha256=3meAX0HyGZYrH7rXPUAHxtI_3w_zoy_RX7Shtkoa660,1275
|
|
108
|
-
sunholo-0.67.
|
|
109
|
-
sunholo-0.67.
|
|
110
|
-
sunholo-0.67.
|
|
111
|
-
sunholo-0.67.
|
|
112
|
-
sunholo-0.67.
|
|
113
|
-
sunholo-0.67.
|
|
108
|
+
sunholo-0.67.7.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
109
|
+
sunholo-0.67.7.dist-info/METADATA,sha256=kfPVqTMUHSHbTmJQSeERCiCXHAEDPV-_Ir3QP3VY3nQ,6155
|
|
110
|
+
sunholo-0.67.7.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
|
111
|
+
sunholo-0.67.7.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
112
|
+
sunholo-0.67.7.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
113
|
+
sunholo-0.67.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|