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.
@@ -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
- raise ValueError(f'No results found in response: {response=}')
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
- raise ValueError(f'No results found in response: {response=}')
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: sunholo
3
- Version: 0.119.13
3
+ Version: 0.119.15
4
4
  Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
5
5
  Author-email: Holosun ApS <multivac@sunholo.com>
6
6
  License: Apache License, Version 2.0
@@ -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=w3ZwAcP9t8cGgwEQZsf4_b1HPnnIzgetTiaEvG4tMwI,36741
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.13.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
170
- sunholo-0.119.13.dist-info/METADATA,sha256=m5LFMkpjiaKq1GOIq6HYsOt66fe0gcrSUW80_FlmbRk,9715
171
- sunholo-0.119.13.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
172
- sunholo-0.119.13.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
173
- sunholo-0.119.13.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
174
- sunholo-0.119.13.dist-info/RECORD,,
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,,