sunholo 0.119.13__py3-none-any.whl → 0.119.15__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/discovery_engine/discovery_engine_client.py +7 -3
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/METADATA +1 -1
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/RECORD +7 -7
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/WHEEL +0 -0
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/entry_points.txt +0 -0
- {sunholo-0.119.13.dist-info → sunholo-0.119.15.dist-info}/top_level.txt +0 -0
@@ -347,9 +347,11 @@ class DiscoveryEngineClient:
|
|
347
347
|
return (
|
348
348
|
f"# {chunk.id}\n"
|
349
349
|
f"{chunk.content}\n"
|
350
|
-
f"## metadata\n"
|
350
|
+
f"## {chunk.id} metadata\n"
|
351
|
+
f"Relevance score: {chunk.relevance_score}\n"
|
351
352
|
f"Document URI: {chunk.document_metadata.uri}\n"
|
352
353
|
f"Document Title: {chunk.document_metadata.title}\n"
|
354
|
+
f"Document Metadata: {chunk.document_metadata.struct_data}\n"
|
353
355
|
)
|
354
356
|
|
355
357
|
def process_chunks(self, response):
|
@@ -357,7 +359,8 @@ class DiscoveryEngineClient:
|
|
357
359
|
|
358
360
|
# Check if the response contains results
|
359
361
|
if not hasattr(response, 'results') or not response.results:
|
360
|
-
|
362
|
+
log.info(f'No results found in response: {response=}')
|
363
|
+
return []
|
361
364
|
|
362
365
|
# Iterate through each result in the response
|
363
366
|
for result in response.results:
|
@@ -386,7 +389,8 @@ class DiscoveryEngineClient:
|
|
386
389
|
|
387
390
|
# Check if the response contains results
|
388
391
|
if not hasattr(response, 'results') or not response.results:
|
389
|
-
|
392
|
+
log.info(f'No results found in response: {response=}')
|
393
|
+
return []
|
390
394
|
|
391
395
|
# Iterate through each result in the response
|
392
396
|
for result in response.results:
|
@@ -75,7 +75,7 @@ sunholo/discovery_engine/__init__.py,sha256=hLgqRDJ22Aov9o2QjAEfsVgnL3kMdM-g5p8R
|
|
75
75
|
sunholo/discovery_engine/chunker_handler.py,sha256=2775W5wHzdkYXqkRMlwh8MRbas20wcMnnnNngo0ljms,6160
|
76
76
|
sunholo/discovery_engine/cli.py,sha256=KGVle5rkLL49oF9TQhrGI--8017IvvLOEoYur545Qb0,12790
|
77
77
|
sunholo/discovery_engine/create_new.py,sha256=WUi4_xh_dFaGX3xA9jkNKZhaR6LCELjMPeRb0hyj4FU,1226
|
78
|
-
sunholo/discovery_engine/discovery_engine_client.py,sha256=
|
78
|
+
sunholo/discovery_engine/discovery_engine_client.py,sha256=Zsgv4mO25UCgXRUHdSMmIkLDB367VVePEVNq5LXhgCE,36928
|
79
79
|
sunholo/discovery_engine/get_ai_search_chunks.py,sha256=I6Dt1CznqEvE7XIZ2PkLqopmjpO96iVEWJJqL5cJjOU,5554
|
80
80
|
sunholo/embedder/__init__.py,sha256=sI4N_CqgEVcrMDxXgxKp1FsfsB4FpjoXgPGkl4N_u4I,44
|
81
81
|
sunholo/embedder/embed_chunk.py,sha256=did2pKkWM2o0KkRcb0H9l2x_WjCq6OyuHDxGbITFKPM,6530
|
@@ -166,9 +166,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
166
166
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
167
167
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
168
168
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
169
|
-
sunholo-0.119.
|
170
|
-
sunholo-0.119.
|
171
|
-
sunholo-0.119.
|
172
|
-
sunholo-0.119.
|
173
|
-
sunholo-0.119.
|
174
|
-
sunholo-0.119.
|
169
|
+
sunholo-0.119.15.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
170
|
+
sunholo-0.119.15.dist-info/METADATA,sha256=pzYtTqgbxbUhXkVf0efAnnLKw0oGvFZztGl85YcOldk,9715
|
171
|
+
sunholo-0.119.15.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
|
172
|
+
sunholo-0.119.15.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
173
|
+
sunholo-0.119.15.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
174
|
+
sunholo-0.119.15.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|