sunholo 0.89.5__py3-none-any.whl → 0.89.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.
@@ -22,7 +22,7 @@ except ImportError:
22
22
  pass
23
23
 
24
24
  try:
25
- from ..pubsub import PubSubManager
25
+ from ...pubsub import PubSubManager
26
26
  except ImportError:
27
27
  PubSubManager = None
28
28
 
@@ -242,11 +242,12 @@ if __name__ == "__main__":
242
242
 
243
243
  # Generate a random float between 0 and 1
244
244
  random_value = random.random()
245
-
245
+ log.info(f"Eval: {trace_id=} {eval_percent=} / {random_value=}")
246
246
  # Check if evaluation should be triggered
247
247
  if random_value < eval_percent:
248
248
  if PubSubManager:
249
249
  try:
250
+ log.info(f"Publishing for eval {trace_id=}")
250
251
  pubsub_manager = PubSubManager("langfuse_evals", pubsub_topic="topicid-to-langfuse-eval")
251
252
  the_data = {"trace_id": trace_id}
252
253
  pubsub_manager.publish_message(the_data)
@@ -537,6 +538,7 @@ if __name__ == "__main__":
537
538
  stream_wait_time = data.pop('stream_wait_time', 7)
538
539
  stream_timeout = data.pop('stream_timeout', 120)
539
540
  chat_history = data.pop('chat_history', None)
541
+ eval_percent = data.pop('eval_percent', 0.01)
540
542
  vector_name = data.pop('vector_name', vector_name)
541
543
 
542
544
  paired_messages = extract_chat_history(chat_history)
@@ -546,6 +548,7 @@ if __name__ == "__main__":
546
548
  'chat_history': paired_messages,
547
549
  'stream_wait_time': stream_wait_time,
548
550
  'stream_timeout': stream_timeout,
551
+ 'eval_percent': eval_percent,
549
552
  'kwargs': data}
550
553
 
551
554
  if trace:
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.89.5
3
+ Version: 0.89.7
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.89.5.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.89.7.tar.gz
7
7
  Author: Holosun ApS
8
8
  Author-email: multivac@sunholo.com
9
9
  License: Apache License, Version 2.0
@@ -14,7 +14,7 @@ sunholo/agents/fastapi/qna_routes.py,sha256=lKHkXPmwltu9EH3RMwmD153-J6pE7kWQ4BhB
14
14
  sunholo/agents/flask/__init__.py,sha256=poJDKMr2qj8qMb99JqCvCPSiEt1tj2tLQ3hKW3f2aVw,107
15
15
  sunholo/agents/flask/base.py,sha256=FgSaCODyoTtlstJtsqlLPScdgRUtv9_plxftdzHdVFo,809
16
16
  sunholo/agents/flask/qna_routes.py,sha256=uwUD1yrzOPH27m2AXpiQrPk_2VfJOQOM6dAynOWQtoQ,22532
17
- sunholo/agents/flask/vac_routes.py,sha256=IpfOlfJOLXxhrGW8kD-vU2dXCqxBxNt3lg7G97CQoAc,22576
17
+ sunholo/agents/flask/vac_routes.py,sha256=z3omGsb6Ze3Hpxx_em1vve9aPnRQQjYKdz0dkStmJ-I,22811
18
18
  sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
19
19
  sunholo/archive/archive.py,sha256=PxVfDtO2_2ZEEbnhXSCbXLdeoHoQVImo4y3Jr2XkCFY,1204
20
20
  sunholo/auth/__init__.py,sha256=TeP-OY0XGxYV_8AQcVGoh35bvyWhNUcMRfhuD5l44Sk,91
@@ -144,9 +144,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
144
144
  sunholo/vertex/memory_tools.py,sha256=q_phxgGX2TG2j2MXNULF2xGzQnQPENwjPN9nZ_A9Gh0,7526
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.89.5.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
- sunholo-0.89.5.dist-info/METADATA,sha256=ZFTQF0eC8irdWFbtD7VcUxh3ro6fiJdnh3BRZ5t7aDw,7706
149
- sunholo-0.89.5.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
150
- sunholo-0.89.5.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
- sunholo-0.89.5.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
- sunholo-0.89.5.dist-info/RECORD,,
147
+ sunholo-0.89.7.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
148
+ sunholo-0.89.7.dist-info/METADATA,sha256=x7xML4fBGhjEtcjjCXUlu0IAl68yMNy7Njth-JN6FtU,7706
149
+ sunholo-0.89.7.dist-info/WHEEL,sha256=ixB2d4u7mugx_bCBycvM9OzZ5yD7NmPXFRtKlORZS2Y,91
150
+ sunholo-0.89.7.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
151
+ sunholo-0.89.7.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
152
+ sunholo-0.89.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.0.0)
2
+ Generator: setuptools (74.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5