sunholo 0.84.1__py3-none-any.whl → 0.84.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/database/alloydb_client.py +4 -4
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/METADATA +2 -2
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/RECORD +7 -7
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/WHEEL +0 -0
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/entry_points.txt +0 -0
- {sunholo-0.84.1.dist-info → sunholo-0.84.3.dist-info}/top_level.txt +0 -0
|
@@ -71,7 +71,7 @@ class AlloyDBClient:
|
|
|
71
71
|
if ALLOYDB_DB is None and alloydb_config.get("database") is None:
|
|
72
72
|
log.warning("Could not locate ALLOYDB_DB environment variable or 'alloydb_config.database'")
|
|
73
73
|
|
|
74
|
-
self.database = alloydb_config.get("database") or ALLOYDB_DB
|
|
74
|
+
self.database = db or alloydb_config.get("database") or ALLOYDB_DB
|
|
75
75
|
|
|
76
76
|
self.user = user
|
|
77
77
|
self.password = password
|
|
@@ -115,7 +115,7 @@ class AlloyDBClient:
|
|
|
115
115
|
log.error("Can't create AlloyDBEngine - install via `pip install sunholo[gcp,database]`")
|
|
116
116
|
raise ValueError("Can't import AlloyDBEngine")
|
|
117
117
|
|
|
118
|
-
log.info("Inititaing AlloyDB Langchain engine for database: {self.database}")
|
|
118
|
+
log.info(f"Inititaing AlloyDB Langchain engine for database: {self.database}")
|
|
119
119
|
|
|
120
120
|
from google.cloud.alloydb.connector import IPTypes
|
|
121
121
|
engine = AlloyDBEngine.from_instance(
|
|
@@ -212,9 +212,9 @@ class AlloyDBClient:
|
|
|
212
212
|
doc_id = generate_uuid_from_object_id(source)
|
|
213
213
|
|
|
214
214
|
query = f"""
|
|
215
|
-
SELECT
|
|
215
|
+
SELECT page_content, source, langchain_metadata, images_gsurls, doc_id::text as doc_id
|
|
216
216
|
FROM {table_name}
|
|
217
|
-
WHERE doc_id = {doc_id}
|
|
217
|
+
WHERE doc_id = '{doc_id}'
|
|
218
218
|
LIMIT 1;
|
|
219
219
|
"""
|
|
220
220
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.84.
|
|
3
|
+
Version: 0.84.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.84.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.84.3.tar.gz
|
|
7
7
|
Author: Holosun ApS
|
|
8
8
|
Author-email: multivac@sunholo.com
|
|
9
9
|
License: Apache License, Version 2.0
|
|
@@ -59,7 +59,7 @@ sunholo/components/retriever.py,sha256=bKIVT7_18Ut3OJd0E0jyiISPnD9qkHWVjcQPT4i1_
|
|
|
59
59
|
sunholo/components/vectorstore.py,sha256=xKk7micTRwZckaI7U6PxvFz_ZSjCH48xPTDYiDcv2tc,5913
|
|
60
60
|
sunholo/database/__init__.py,sha256=bpB5Nk21kwqYj-qdVnvNgXjLsbflnH4g-San7OHMqR4,283
|
|
61
61
|
sunholo/database/alloydb.py,sha256=YH8wNPS8gN-TDZEXQcVHxwd1NScHRfAxma3gK4R6KCk,11740
|
|
62
|
-
sunholo/database/alloydb_client.py,sha256=
|
|
62
|
+
sunholo/database/alloydb_client.py,sha256=d2p-B_hRrVpAj6p1_r4KXyWkOfM_QiLi1oG9hK2tyE0,14703
|
|
63
63
|
sunholo/database/database.py,sha256=VqhZdkXUNdvWn8sUcUV3YNby1JDVf7IykPVXWBtxo9U,7361
|
|
64
64
|
sunholo/database/lancedb.py,sha256=DyfZntiFKBlVPaFooNN1Z6Pl-LAs4nxWKKuq8GBqN58,715
|
|
65
65
|
sunholo/database/static_dbs.py,sha256=8cvcMwUK6c32AS2e_WguKXWMkFf5iN3g9WHzsh0C07Q,442
|
|
@@ -135,9 +135,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
|
135
135
|
sunholo/vertex/memory_tools.py,sha256=q_phxgGX2TG2j2MXNULF2xGzQnQPENwjPN9nZ_A9Gh0,7526
|
|
136
136
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
|
137
137
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
|
138
|
-
sunholo-0.84.
|
|
139
|
-
sunholo-0.84.
|
|
140
|
-
sunholo-0.84.
|
|
141
|
-
sunholo-0.84.
|
|
142
|
-
sunholo-0.84.
|
|
143
|
-
sunholo-0.84.
|
|
138
|
+
sunholo-0.84.3.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
139
|
+
sunholo-0.84.3.dist-info/METADATA,sha256=1gaZ_bFF20P1KZddHM32s89viNG-qHxntnyREqOmycE,7412
|
|
140
|
+
sunholo-0.84.3.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
141
|
+
sunholo-0.84.3.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
142
|
+
sunholo-0.84.3.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
143
|
+
sunholo-0.84.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|