sunholo 0.56.5__py3-none-any.whl → 0.56.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/cli/cli.py +1 -1
- sunholo/components/llm.py +2 -2
- sunholo/components/vectorstore.py +2 -1
- sunholo/langfuse/prompts.py +2 -6
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/METADATA +2 -2
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/RECORD +10 -10
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/WHEEL +0 -0
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/entry_points.txt +0 -0
- {sunholo-0.56.5.dist-info → sunholo-0.56.7.dist-info}/top_level.txt +0 -0
sunholo/cli/cli.py
CHANGED
|
@@ -51,7 +51,7 @@ def setup_deploy_subparser(subparsers):
|
|
|
51
51
|
deploy_parser.add_argument('--project_id', required=True, help='Google Cloud Project ID required for deployment.')
|
|
52
52
|
deploy_parser.add_argument('--trigger_id', required=True, help='Google Cloud Build Trigger ID required for deployment.')
|
|
53
53
|
deploy_parser.add_argument('--repo_name', required=True, help='Name of the linked repository in Google Cloud Source Repositories required for deployment.')
|
|
54
|
-
deploy_parser.add_argument('--branch_name', default='
|
|
54
|
+
deploy_parser.add_argument('--branch_name', default='dev', help='Branch name to trigger the build from, defaults to "dev".')
|
|
55
55
|
deploy_parser.add_argument('--config_path', default='.', help='Path to the directory containing the cloudbuild.yaml file, defaults to current directory.')
|
|
56
56
|
deploy_parser.set_defaults(func=trigger_build)
|
|
57
57
|
|
sunholo/components/llm.py
CHANGED
|
@@ -106,9 +106,9 @@ def get_llm(vector_name, model=None):
|
|
|
106
106
|
model = load_config_key("model", vector_name, kind="vacConfig")
|
|
107
107
|
|
|
108
108
|
log.debug(f"Chose LLM: {llm_str}")
|
|
109
|
-
return llm_str_to_llm(llm_str, model=model, vector_name=vector_name
|
|
109
|
+
return llm_str_to_llm(llm_str, model=model, vector_name=vector_name)
|
|
110
110
|
|
|
111
|
-
def get_llm_chat(vector_name, model=None
|
|
111
|
+
def get_llm_chat(vector_name, model=None):
|
|
112
112
|
llm_str = load_config_key("llm", vector_name, kind="vacConfig")
|
|
113
113
|
if not model:
|
|
114
114
|
model = load_config_key("model", vector_name, kind="vacConfig")
|
|
@@ -19,7 +19,8 @@ def pick_vectorstore(vs_str, vector_name, embeddings):
|
|
|
19
19
|
|
|
20
20
|
if vs_str == 'supabase':
|
|
21
21
|
from supabase import Client, create_client
|
|
22
|
-
from
|
|
22
|
+
from langchain_community.vectorstores import SupabaseVectorStore
|
|
23
|
+
|
|
23
24
|
from ..database.database import setup_supabase
|
|
24
25
|
|
|
25
26
|
log.debug(f"Initiating Supabase store: {vector_name}")
|
sunholo/langfuse/prompts.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from ..logging import log
|
|
2
2
|
from ..utils import load_config_key
|
|
3
|
-
import yaml
|
|
4
3
|
|
|
5
4
|
# Load the YAML file
|
|
6
5
|
def load_prompt_from_yaml(key, prefix="sunholo", file_path=None):
|
|
@@ -20,9 +19,6 @@ def load_prompt_from_yaml(key, prefix="sunholo", file_path=None):
|
|
|
20
19
|
return langfuse_prompt.get_langchain_prompt()
|
|
21
20
|
|
|
22
21
|
except Exception as err:
|
|
23
|
-
|
|
24
|
-
log.error(f"Could not fine langfuse template {langfuse_template} and no file_path was provided {str(err)}")
|
|
25
|
-
raise
|
|
26
|
-
log.warning(f"Could not find langfuse template: {langfuse_template} - {str(err)} - attempting to load from {file_path}")
|
|
22
|
+
log.warning(f"Could not find langfuse template: {langfuse_template} - {str(err)} - attempting to load from promptConfig")
|
|
27
23
|
|
|
28
|
-
return load_config_key(key, vector_name=prefix,
|
|
24
|
+
return load_config_key(key, vector_name=prefix, kind="promptConfig")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.56.
|
|
3
|
+
Version: 0.56.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.56.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.56.7.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -31,12 +31,12 @@ sunholo/chunker/pdfs.py,sha256=daCZ1xjn1YvxlifIyxskWNpLJLe-Q9D_Jq12MWx3tZo,2473
|
|
|
31
31
|
sunholo/chunker/publish.py,sha256=PoT8q3XJeFCg10WrLkYhuaaXIrGVkvUD3-R9IfoWoH4,2703
|
|
32
32
|
sunholo/chunker/splitter.py,sha256=CZ33xVWeYdjckd1VTrZnxuLypzzn-yKXQBFZaN7UcjI,6697
|
|
33
33
|
sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
-
sunholo/cli/cli.py,sha256=
|
|
34
|
+
sunholo/cli/cli.py,sha256=ljOso32M1u9_PAx_T2vGQtZcCTNRw8TLblinob8btAo,3352
|
|
35
35
|
sunholo/components/__init__.py,sha256=RJGNEihwvRIiDScKis04RHJv4yZGI1UpXlOmuCptNZI,208
|
|
36
|
-
sunholo/components/llm.py,sha256=
|
|
36
|
+
sunholo/components/llm.py,sha256=T4we3tGmqUj4tPwxQr9M6AXv_BALqZV_dRSvINan-oU,10374
|
|
37
37
|
sunholo/components/prompt.py,sha256=eZSghXkIlRzXiSrzgkG7e5ytUYq6R6LV-qjHU8jStig,6353
|
|
38
38
|
sunholo/components/retriever.py,sha256=TiM-axCeaZ6CZ8rGKGx-io16JKDe8z0pnMccBi1yqHw,3509
|
|
39
|
-
sunholo/components/vectorstore.py,sha256=
|
|
39
|
+
sunholo/components/vectorstore.py,sha256=04t_UctPMOYMaQUbLP4bRLQlCFykdAFDcBdwArA9jkg,4952
|
|
40
40
|
sunholo/database/__init__.py,sha256=Zz0Shcq-CtStf9rJGIYB_Ybzb8rY_Q9mfSj-nviM490,241
|
|
41
41
|
sunholo/database/alloydb.py,sha256=18Q4AG_W-Sz8udIj3gWMkGrMWmiEelqgOwJ7VKHElV0,14877
|
|
42
42
|
sunholo/database/database.py,sha256=reZrThKyKvMAQXe2RIiEKmKYmsRvGsn7e05OoXjWVSQ,7395
|
|
@@ -57,7 +57,7 @@ sunholo/gcs/download_url.py,sha256=PAwYShV-sRd9sNvuJrEOvfF1V34ovVP0omWbuwDkRrA,4
|
|
|
57
57
|
sunholo/gcs/metadata.py,sha256=C9sMPsHsq1ETetdQCqB3EBs3Kws8b8QHS9L7ei_v5aw,891
|
|
58
58
|
sunholo/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
59
|
sunholo/langfuse/callback.py,sha256=G9xcZHpLvyzolU57ycItLaooMCtRuM37QJSWjiwQEd0,1776
|
|
60
|
-
sunholo/langfuse/prompts.py,sha256=
|
|
60
|
+
sunholo/langfuse/prompts.py,sha256=px6vSxJyiKaT0E34NZdcbSvY8_2TNtOaCsa3Cact17M,774
|
|
61
61
|
sunholo/llamaindex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
sunholo/llamaindex/generate.py,sha256=l1Picr-hVwkmAUD7XmTCa63qY9ERliFHQXwyX3BqB2Q,686
|
|
63
63
|
sunholo/llamaindex/import_files.py,sha256=QamEVtFXSD6Zk2La0HDgmtVPhFDdXpjzLACO--BAYpg,9378
|
|
@@ -83,9 +83,9 @@ sunholo/utils/__init__.py,sha256=G11nN_6ATjxpuMfG_BvcUr9UU8onPIgkpTK6CjOcbr8,48
|
|
|
83
83
|
sunholo/utils/config.py,sha256=NW2FFyNNTwCyopOvSzDQ0I0l92LAfJJ7hEzatSuoZho,8689
|
|
84
84
|
sunholo/utils/gcp.py,sha256=B2G1YKjeD7X9dqO86Jrp2vPuFwZ223Xl5Tg09Ndw-oc,5760
|
|
85
85
|
sunholo/utils/parsers.py,sha256=OrHmASqIbI45atVOhiGodgLvnfrzkvVzyHnSvAXD89I,3841
|
|
86
|
-
sunholo-0.56.
|
|
87
|
-
sunholo-0.56.
|
|
88
|
-
sunholo-0.56.
|
|
89
|
-
sunholo-0.56.
|
|
90
|
-
sunholo-0.56.
|
|
91
|
-
sunholo-0.56.
|
|
86
|
+
sunholo-0.56.7.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
87
|
+
sunholo-0.56.7.dist-info/METADATA,sha256=RukURzDPjG_-HJtOirmBNhrbe9oupTyn423r5sxOX-Y,6617
|
|
88
|
+
sunholo-0.56.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
89
|
+
sunholo-0.56.7.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
90
|
+
sunholo-0.56.7.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
91
|
+
sunholo-0.56.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|