sunholo 0.89.4__py3-none-any.whl → 0.89.6__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/agents/flask/vac_routes.py +5 -3
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/METADATA +2 -2
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/RECORD +7 -7
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/LICENSE.txt +0 -0
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/WHEEL +0 -0
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/entry_points.txt +0 -0
- {sunholo-0.89.4.dist-info → sunholo-0.89.6.dist-info}/top_level.txt +0 -0
|
@@ -222,11 +222,11 @@ if __name__ == "__main__":
|
|
|
222
222
|
generation.end(output=response)
|
|
223
223
|
span.end(output=response)
|
|
224
224
|
trace.update(output=response)
|
|
225
|
-
self.langfuse_eval_response(trace.id, all_input.get('eval_percent'
|
|
225
|
+
self.langfuse_eval_response(trace_id=trace.id, eval_percent=all_input.get('eval_percent'))
|
|
226
226
|
|
|
227
227
|
return response
|
|
228
228
|
|
|
229
|
-
def langfuse_eval_response(trace_id, eval_percent=0.01):
|
|
229
|
+
def langfuse_eval_response(self, trace_id, eval_percent=0.01):
|
|
230
230
|
"""
|
|
231
231
|
Sends an evaluation message based on a probability defined by eval_percent.
|
|
232
232
|
|
|
@@ -299,7 +299,7 @@ if __name__ == "__main__":
|
|
|
299
299
|
if trace:
|
|
300
300
|
span.end(output=jsonify(bot_output))
|
|
301
301
|
trace.update(output=jsonify(bot_output))
|
|
302
|
-
self.langfuse_eval_response(trace.id, all_input.get('eval_percent'
|
|
302
|
+
self.langfuse_eval_response(trace_id=trace.id, eval_percent=all_input.get('eval_percent'))
|
|
303
303
|
|
|
304
304
|
# {'answer': 'output'}
|
|
305
305
|
return jsonify(bot_output)
|
|
@@ -537,6 +537,7 @@ if __name__ == "__main__":
|
|
|
537
537
|
stream_wait_time = data.pop('stream_wait_time', 7)
|
|
538
538
|
stream_timeout = data.pop('stream_timeout', 120)
|
|
539
539
|
chat_history = data.pop('chat_history', None)
|
|
540
|
+
eval_percent = data.pop('eval_percent', 0.01)
|
|
540
541
|
vector_name = data.pop('vector_name', vector_name)
|
|
541
542
|
|
|
542
543
|
paired_messages = extract_chat_history(chat_history)
|
|
@@ -546,6 +547,7 @@ if __name__ == "__main__":
|
|
|
546
547
|
'chat_history': paired_messages,
|
|
547
548
|
'stream_wait_time': stream_wait_time,
|
|
548
549
|
'stream_timeout': stream_timeout,
|
|
550
|
+
'eval_percent': eval_percent,
|
|
549
551
|
'kwargs': data}
|
|
550
552
|
|
|
551
553
|
if trace:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sunholo
|
|
3
|
-
Version: 0.89.
|
|
3
|
+
Version: 0.89.6
|
|
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.
|
|
6
|
+
Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.89.6.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
|
|
17
|
+
sunholo/agents/flask/vac_routes.py,sha256=-6f77rahVh7dS3eLR8seRWIZtmtokwalSrPWJXKC14Y,22681
|
|
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.
|
|
148
|
-
sunholo-0.89.
|
|
149
|
-
sunholo-0.89.
|
|
150
|
-
sunholo-0.89.
|
|
151
|
-
sunholo-0.89.
|
|
152
|
-
sunholo-0.89.
|
|
147
|
+
sunholo-0.89.6.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
|
148
|
+
sunholo-0.89.6.dist-info/METADATA,sha256=kr5uvZUWqTQI2FPB64sWeMRBDchzWXCm3ZdbxXXhgKU,7706
|
|
149
|
+
sunholo-0.89.6.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
150
|
+
sunholo-0.89.6.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
|
151
|
+
sunholo-0.89.6.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
|
152
|
+
sunholo-0.89.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|