sunholo 0.131.10__py3-none-any.whl → 0.132.0__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 -1
- sunholo/discovery_engine/cli.py +5 -4
- sunholo/pubsub/process_pubsub.py +1 -1
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/METADATA +1 -1
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/RECORD +9 -9
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/WHEEL +1 -1
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/entry_points.txt +0 -0
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.131.10.dist-info → sunholo-0.132.0.dist-info}/top_level.txt +0 -0
@@ -1198,7 +1198,10 @@ class AlloyDBClient:
|
|
1198
1198
|
|
1199
1199
|
# Insert the row
|
1200
1200
|
result = await self._insert_single_row(table_name, filtered_row, primary_key_column=primary_key_column)
|
1201
|
-
|
1201
|
+
result_ids = []
|
1202
|
+
for res in result:
|
1203
|
+
result_ids.append(str(res))
|
1204
|
+
results['return_ids'].append(result_ids)
|
1202
1205
|
results['inserted_rows'] += 1
|
1203
1206
|
|
1204
1207
|
except Exception as e:
|
sunholo/discovery_engine/cli.py
CHANGED
@@ -375,7 +375,7 @@ def search_engine_command(args):
|
|
375
375
|
for source in citation.sources:
|
376
376
|
# source is a CitationSource object with reference_index
|
377
377
|
ref_idx = getattr(source, 'reference_index', 'N/A')
|
378
|
-
source_details.append(f"RefIdx:{ref_idx}") # Append details of each source
|
378
|
+
source_details.append(f"RefIdx:{ref_idx+1}") # Append details of each source
|
379
379
|
|
380
380
|
source_info = ", ".join(source_details) if source_details else "No Source Info"
|
381
381
|
start_idx = getattr(citation, 'start_index', 'N/A')
|
@@ -385,8 +385,8 @@ def search_engine_command(args):
|
|
385
385
|
references = page.summary.summary_with_metadata.references
|
386
386
|
if references:
|
387
387
|
console.print("[bold cyan]References:[/bold cyan]")
|
388
|
-
for ref in references:
|
389
|
-
console.print(f" - {ref}")
|
388
|
+
for i, ref in enumerate(references):
|
389
|
+
console.print(f" - {i+1} {ref}")
|
390
390
|
|
391
391
|
console.print("-" * 20)
|
392
392
|
|
@@ -399,12 +399,13 @@ def search_engine_command(args):
|
|
399
399
|
console.print(f"\n[bold]Result {i+1}:[/bold]")
|
400
400
|
doc = result.document
|
401
401
|
console.print(f" ID: {doc.id}")
|
402
|
-
console.print(f" Name: {doc.name}")
|
403
402
|
# Display structData if present
|
404
403
|
if doc.struct_data:
|
405
404
|
try:
|
406
405
|
struct_dict = convert_composite_to_native(doc.struct_data)
|
407
406
|
metadata_output = struct_dict.get("structData", {})
|
407
|
+
console.print(f" Title: {struct_dict.get("title", "")}")
|
408
|
+
console.print(f" Content: {struct_dict.get("content", "")}")
|
408
409
|
except Exception as json_err:
|
409
410
|
console.print(f"[yellow] Warning: Could not convert metadata Struct to JSON: {json_err}[/yellow]")
|
410
411
|
metadata_output = doc.struct_data
|
sunholo/pubsub/process_pubsub.py
CHANGED
@@ -34,7 +34,7 @@ def decode_pubsub_message(data: dict) -> tuple:
|
|
34
34
|
attributes['vector_name'] = vector_name
|
35
35
|
|
36
36
|
log.info(f"Process Pub/Sub was triggered by messageId {messageId} published at {publishTime}")
|
37
|
-
log.debug(
|
37
|
+
log.debug("Processing Pub/Sub data", log_struct=message_data)
|
38
38
|
|
39
39
|
return message_data, attributes, vector_name
|
40
40
|
|
@@ -60,7 +60,7 @@ sunholo/components/retriever.py,sha256=Wmchv3huAM4w7DIS-a5Lp9Hi7M8pE6vZdxgseiT9S
|
|
60
60
|
sunholo/components/vectorstore.py,sha256=k7GS1Y5c6ZGXSDAJvyCes6dTjhDAi0fjGbVLqpyfzBc,5918
|
61
61
|
sunholo/database/__init__.py,sha256=bpB5Nk21kwqYj-qdVnvNgXjLsbflnH4g-San7OHMqR4,283
|
62
62
|
sunholo/database/alloydb.py,sha256=x1zUMB-EVWbE2Zvp4nAs2Z-tB_kOZmS45H2lwVHdYnk,11678
|
63
|
-
sunholo/database/alloydb_client.py,sha256=
|
63
|
+
sunholo/database/alloydb_client.py,sha256=VCnjwzY3pw75wUmlHXIfF5oGhy7iyzo7VQVEs3MT4YY,53350
|
64
64
|
sunholo/database/database.py,sha256=VqhZdkXUNdvWn8sUcUV3YNby1JDVf7IykPVXWBtxo9U,7361
|
65
65
|
sunholo/database/lancedb.py,sha256=DyfZntiFKBlVPaFooNN1Z6Pl-LAs4nxWKKuq8GBqN58,715
|
66
66
|
sunholo/database/static_dbs.py,sha256=8cvcMwUK6c32AS2e_WguKXWMkFf5iN3g9WHzsh0C07Q,442
|
@@ -73,7 +73,7 @@ sunholo/database/sql/sb/return_sources.sql,sha256=89KAnxfK8n_qGK9jy1OQT8f9n4uYUt
|
|
73
73
|
sunholo/database/sql/sb/setup.sql,sha256=CvoFvZQev2uWjmFa3aj3m3iuPFzAAJZ0S7Qi3L3-zZI,89
|
74
74
|
sunholo/discovery_engine/__init__.py,sha256=hLgqRDJ22Aov9o2QjAEfsVgnL3kMdM-g5p8RJ9OyKdQ,130
|
75
75
|
sunholo/discovery_engine/chunker_handler.py,sha256=wkvXl4rFtYfN6AZUKdW9_QD49Whf77BukDbO82UwlAg,7480
|
76
|
-
sunholo/discovery_engine/cli.py,sha256=
|
76
|
+
sunholo/discovery_engine/cli.py,sha256=BWYNG3V1vq3mOcmkAeQItSdTw7HeFzbCpHkfYuau2BE,32382
|
77
77
|
sunholo/discovery_engine/create_new.py,sha256=WUi4_xh_dFaGX3xA9jkNKZhaR6LCELjMPeRb0hyj4FU,1226
|
78
78
|
sunholo/discovery_engine/discovery_engine_client.py,sha256=nV4loBBnOqGPRlEbFIFRJEB6cXKDVgJOMRMdf4-v510,51775
|
79
79
|
sunholo/discovery_engine/get_ai_search_chunks.py,sha256=I6Dt1CznqEvE7XIZ2PkLqopmjpO96iVEWJJqL5cJjOU,5554
|
@@ -115,7 +115,7 @@ sunholo/mcp/cli.py,sha256=d24nnVzhZYz4AWgTqmN-qjKG4rPbf8RhdmEOHZkBHy8,10570
|
|
115
115
|
sunholo/ollama/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
116
116
|
sunholo/ollama/ollama_images.py,sha256=H2cpcNu88R4TwyfL_nnqkQhdvBQ2FPCAy4Ok__0yQmo,2351
|
117
117
|
sunholo/pubsub/__init__.py,sha256=DfTEk4zmCfqn6gFxRrqDO0pOrvXTDqH-medpgYO4PGw,117
|
118
|
-
sunholo/pubsub/process_pubsub.py,sha256=
|
118
|
+
sunholo/pubsub/process_pubsub.py,sha256=H56kzpvFJnakqnp7zo3MB-J9IxaW8FEJPN1g3fNwJks,3099
|
119
119
|
sunholo/pubsub/pubsub_manager.py,sha256=19w_N0LiG-wgVWvgJ13b8BUeN8ZzgSPXAhPmL1HRRSI,6966
|
120
120
|
sunholo/qna/__init__.py,sha256=F8q1uR_HreoSX0IfmKY1qoSwIgXhO2Q8kuDSxh9_-EE,28
|
121
121
|
sunholo/qna/parsers.py,sha256=YpOaK5S_LxJ6FbliSYDc3AVOJ62RVduayoNnzi_p8CM,2494
|
@@ -168,9 +168,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
168
168
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
169
169
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
170
170
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
171
|
-
sunholo-0.
|
172
|
-
sunholo-0.
|
173
|
-
sunholo-0.
|
174
|
-
sunholo-0.
|
175
|
-
sunholo-0.
|
176
|
-
sunholo-0.
|
171
|
+
sunholo-0.132.0.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.132.0.dist-info/METADATA,sha256=9Mpo28cEMCX2kwTQQrXK7sih-dNgQ_4JwXTbB0Kicvc,10067
|
173
|
+
sunholo-0.132.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
174
|
+
sunholo-0.132.0.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.132.0.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.132.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|