sunholo 0.97.10__py3-none-any.whl → 0.98.1__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 +9 -1
- sunholo/embedder/embed_chunk.py +1 -0
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/METADATA +2 -2
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/RECORD +8 -8
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/WHEEL +0 -0
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/entry_points.txt +0 -0
- {sunholo-0.97.10.dist-info → sunholo-0.98.1.dist-info}/top_level.txt +0 -0
|
@@ -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,
|
|
@@ -195,6 +195,14 @@ class AlloyDBClient:
|
|
|
195
195
|
vector_name=vector_name)
|
|
196
196
|
|
|
197
197
|
return await self.vectorstore.asimilarity_search(query, filter=source_filter_cmd, k=k)
|
|
198
|
+
|
|
199
|
+
def create_index(self, vectorstore=None):
|
|
200
|
+
from langchain_google_alloydb_pg.indexes import IVFFlatIndex
|
|
201
|
+
index = IVFFlatIndex()
|
|
202
|
+
vs = vectorstore or self.vectorstore
|
|
203
|
+
|
|
204
|
+
return vs.apply_vector_index(index)
|
|
205
|
+
|
|
198
206
|
|
|
199
207
|
def execute_sql(self, sql_statement):
|
|
200
208
|
log.info(f"Executing sync SQL statement: {sql_statement}")
|
sunholo/embedder/embed_chunk.py
CHANGED
|
@@ -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.
|
|
3
|
+
Version: 0.98.1
|
|
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.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.98.1.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=CYn6nSWMSHVq0TFTSGQiUPENr0NoFYBsVSvOyP9BxNg,18560
|
|
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=
|
|
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.
|
|
148
|
-
sunholo-0.
|
|
149
|
-
sunholo-0.
|
|
150
|
-
sunholo-0.
|
|
151
|
-
sunholo-0.
|
|
152
|
-
sunholo-0.
|
|
147
|
+
sunholo-0.98.1.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
148
|
+
sunholo-0.98.1.dist-info/METADATA,sha256=899hF-3uy5gxoGg8-ZMubl538Use0fb0xbh8uzc8NHE,8310
|
|
149
|
+
sunholo-0.98.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
150
|
+
sunholo-0.98.1.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
151
|
+
sunholo-0.98.1.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
152
|
+
sunholo-0.98.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|