sunholo 0.134.6__py3-none-any.whl → 0.134.7__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 +14 -9
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/METADATA +1 -1
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/RECORD +7 -7
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/WHEEL +0 -0
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/entry_points.txt +0 -0
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.134.6.dist-info → sunholo-0.134.7.dist-info}/top_level.txt +0 -0
@@ -445,6 +445,7 @@ class DiscoveryEngineClient:
|
|
445
445
|
def document_format(self, document):
|
446
446
|
"""Format a document for string output."""
|
447
447
|
# Extract useful fields from the document
|
448
|
+
|
448
449
|
document_id = document.id
|
449
450
|
document_name = document.name
|
450
451
|
|
@@ -855,7 +856,7 @@ class DiscoveryEngineClient:
|
|
855
856
|
return big_string
|
856
857
|
|
857
858
|
log.info("Discovery engine response object")
|
858
|
-
|
859
|
+
|
859
860
|
return search_response
|
860
861
|
|
861
862
|
async def async_search_with_filters(self, query, filter_str=None,
|
@@ -921,15 +922,19 @@ class DiscoveryEngineClient:
|
|
921
922
|
log.info(f"No results {search_request.data_store_specs=}: {str(e)}")
|
922
923
|
return None
|
923
924
|
|
924
|
-
if
|
925
|
-
if
|
926
|
-
|
927
|
-
|
925
|
+
if parse_chunks_to_string:
|
926
|
+
if content_search_spec_type=="chunks":
|
927
|
+
if parse_chunks_to_string:
|
928
|
+
big_string = self.async_process_chunks(search_response)
|
929
|
+
log.info(f"Discovery engine chunks string sample: {big_string[:100]}")
|
930
|
+
|
931
|
+
return big_string
|
932
|
+
|
933
|
+
elif content_search_spec_type=="documents":
|
934
|
+
big_string = self.async_process_documents(search_response)
|
935
|
+
log.info(f"Discovery engine documents string sample: {big_string[:100]}")
|
936
|
+
|
928
937
|
return big_string
|
929
|
-
elif content_search_spec_type=="documents":
|
930
|
-
big_string = self.process_documents(search_response)
|
931
|
-
log.info(f"Discovery engine documents string sample: {big_string[:100]}")
|
932
|
-
return big_string
|
933
938
|
|
934
939
|
log.info("Discovery engine response object")
|
935
940
|
return search_response
|
@@ -75,7 +75,7 @@ sunholo/discovery_engine/__init__.py,sha256=hLgqRDJ22Aov9o2QjAEfsVgnL3kMdM-g5p8R
|
|
75
75
|
sunholo/discovery_engine/chunker_handler.py,sha256=wkvXl4rFtYfN6AZUKdW9_QD49Whf77BukDbO82UwlAg,7480
|
76
76
|
sunholo/discovery_engine/cli.py,sha256=tsKqNSDCEsDTz5-wuNwjttb3Xt35D97-KyyEiaqolMQ,35628
|
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=SqzFNirl5FMldF2T8E9NMRXgn3AwRwG_WkAdQQzq5AQ,58684
|
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
|
@@ -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.134.
|
172
|
-
sunholo-0.134.
|
173
|
-
sunholo-0.134.
|
174
|
-
sunholo-0.134.
|
175
|
-
sunholo-0.134.
|
176
|
-
sunholo-0.134.
|
171
|
+
sunholo-0.134.7.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.134.7.dist-info/METADATA,sha256=cogo1VdlgznP_MC7vo-EwbzYuXsk1jg1eClmG1ExBqU,10067
|
173
|
+
sunholo-0.134.7.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
174
|
+
sunholo-0.134.7.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.134.7.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.134.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|