sunholo 0.99.0__py3-none-any.whl → 0.99.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.
@@ -87,7 +87,7 @@ class AlloyDBClient:
87
87
  self.password = password
88
88
  self.inst_url = ""
89
89
  if user:
90
- log.info("User specified {user} - using pg8000 engine")
90
+ log.info(f"User specified {user} - using pg8000 engine")
91
91
  self.inst_url = self._build_instance_uri(project_id, region, cluster_name, instance_name)
92
92
  self.engine = self._create_engine_from_pg8000(user, password, self.database)
93
93
  self.engine_type = "pg8000"
@@ -206,11 +206,16 @@ class AlloyDBClient:
206
206
 
207
207
  def create_index(self, vectorstore=None):
208
208
  from langchain_google_alloydb_pg.indexes import IVFFlatIndex
209
+
209
210
  index = IVFFlatIndex()
210
211
  vs = vectorstore or self.vectorstore
211
212
 
212
213
  return vs.apply_vector_index(index)
214
+
215
+ def refresh_index(self, vectorstore=None):
216
+ vs = vectorstore or self.vectorstore
213
217
 
218
+ return vs.reindex()
214
219
 
215
220
  def execute_sql(self, sql_statement):
216
221
  log.info(f"Executing sync SQL statement: {sql_statement}")
@@ -472,7 +477,7 @@ class AlloyDBClient:
472
477
  CREATE TABLE IF NOT EXISTS "{vectorstore_id}" (
473
478
  langchain_id UUID NOT NULL,
474
479
  content TEXT NOT NULL,
475
- embedding vector NOT NULL,
480
+ embedding vector({vector_size}) NOT NULL,
476
481
  source TEXT,
477
482
  langchain_metadata JSONB,
478
483
  docstore_doc_id UUID,
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.99.0
3
+ Version: 0.99.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.99.0.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.99.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=mt5i53J0YxvekEGs6hNq5DvkIApdxTOwPR74wIxJIcM,18844
62
+ sunholo/database/alloydb_client.py,sha256=UQpmILNeInuqMrMgf-AeIB7_I44AgJuR_WSrBafDC_k,18986
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
@@ -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.99.0.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
- sunholo-0.99.0.dist-info/METADATA,sha256=IDkleGbhluctXL_TEEM_hWJGpezTBv-dhDx85zqslMU,8310
149
- sunholo-0.99.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
150
- sunholo-0.99.0.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
- sunholo-0.99.0.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
- sunholo-0.99.0.dist-info/RECORD,,
147
+ sunholo-0.99.2.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
+ sunholo-0.99.2.dist-info/METADATA,sha256=fws38XF7U74myvRCU-tsXdM0wf3Lc6SCcM2tcVA7yPc,8310
149
+ sunholo-0.99.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
150
+ sunholo-0.99.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
+ sunholo-0.99.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
+ sunholo-0.99.2.dist-info/RECORD,,