sunholo 0.98.0__py3-none-any.whl → 0.98.2__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.
@@ -39,7 +39,7 @@ class AlloyDBClient:
39
39
  """
40
40
 
41
41
  def __init__(self,
42
- config:ConfigManager,
42
+ config:ConfigManager=None,
43
43
  project_id: str=None,
44
44
  region: str=None,
45
45
  cluster_name:str=None,
@@ -70,7 +70,7 @@ class AlloyDBClient:
70
70
  instance_name = alloydb_config["instance"]
71
71
 
72
72
  ALLOYDB_DB = os.environ.get("ALLOYDB_DB")
73
- if ALLOYDB_DB is None and alloydb_config.get("database") is None:
73
+ if ALLOYDB_DB is None and alloydb_config and alloydb_config.get("database") is None:
74
74
  log.warning("Could not locate ALLOYDB_DB environment variable or 'alloydb_config.database'")
75
75
 
76
76
  self.database = alloydb_config.get("database") or ALLOYDB_DB or db
@@ -159,6 +159,7 @@ def embed_pubsub_chunk(data: dict):
159
159
  log.debug(f"Adding single document for {vector_name} to vector store {vector_store}")
160
160
  try:
161
161
  vector_store.add_documents([doc], ids = [doc_id])
162
+ ##TODO: add_images()
162
163
  log.info(f"Added doc for {vector_name} to {vector_store} - metadata: {metadata}")
163
164
  metadata_list.append(metadata)
164
165
  except Exception as err:
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.98.0
3
+ Version: 0.98.2
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.98.0.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.98.2.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=EP0awyNOjwW18sTpRbLqwD_QZYiPKZz5NchJIpYvzmI,18555
62
+ sunholo/database/alloydb_client.py,sha256=CN1VEUyEL1g8qmG3lpRLjZppnubFt5fAMQTaz1MnKdc,18579
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
@@ -76,7 +76,7 @@ sunholo/discovery_engine/create_new.py,sha256=NzhSh6nG6nQ5J9gZh8IDph4JiEVT_DC5GG
76
76
  sunholo/discovery_engine/discovery_engine_client.py,sha256=uNhHDa2rCSSHZkNX2ZyWdLwEmFj36HmY0w4KiJLxEIc,21554
77
77
  sunholo/discovery_engine/get_ai_search_chunks.py,sha256=6SO6v_4AcrUat0bP7wqC8xg9aY916Fnw_aZsogrLx-g,3877
78
78
  sunholo/embedder/__init__.py,sha256=sI4N_CqgEVcrMDxXgxKp1FsfsB4FpjoXgPGkl4N_u4I,44
79
- sunholo/embedder/embed_chunk.py,sha256=MCbTePWjUbIRVDFFhHJ94BvOZvIom62-mTr0PmfQyt0,6951
79
+ sunholo/embedder/embed_chunk.py,sha256=_FdO4-9frUJlDPqXv2Ai49ejUrrMTMGti3D7bfJGfy8,6984
80
80
  sunholo/excel/__init__.py,sha256=AqTMN9K4qJYi4maEgoORc5oxDVGO_eqmwzDaVP37JgY,56
81
81
  sunholo/excel/plugin.py,sha256=rl3FoECZ6Ts8KKExPrbPwr3u3CegZfsevmcjgUXAlhE,4033
82
82
  sunholo/gcs/__init__.py,sha256=SZvbsMFDko40sIRHTHppA37IijvJTae54vrhooEF5-4,90
@@ -144,9 +144,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
144
144
  sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
145
145
  sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
146
146
  sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
147
- sunholo-0.98.0.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
- sunholo-0.98.0.dist-info/METADATA,sha256=gq5z4QNr3JpzAPrrBBNumkbp4FfGQPpq4571wX2Sxbs,8310
149
- sunholo-0.98.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
150
- sunholo-0.98.0.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
- sunholo-0.98.0.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
- sunholo-0.98.0.dist-info/RECORD,,
147
+ sunholo-0.98.2.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
+ sunholo-0.98.2.dist-info/METADATA,sha256=NJ1wXjxI911Fo4P6YnoFhO0_GxYjoyCcvFW-GrB2uvk,8310
149
+ sunholo-0.98.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
150
+ sunholo-0.98.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
+ sunholo-0.98.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
+ sunholo-0.98.2.dist-info/RECORD,,