nucliadb-utils 6.7.2.post4911__py3-none-any.whl → 6.8.0.post4918__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.

Potentially problematic release.


This version of nucliadb-utils might be problematic. Click here for more details.

@@ -86,12 +86,14 @@ class AuditStorage:
86
86
  chat_context: List[ChatContext],
87
87
  retrieved_context: List[RetrievedContext],
88
88
  answer: Optional[str],
89
+ reasoning: Optional[str],
89
90
  learning_id: Optional[str],
90
91
  status_code: int,
91
92
  model: Optional[str],
92
93
  rephrase_time: Optional[float] = None,
93
94
  generative_answer_time: Optional[float] = None,
94
95
  generative_answer_first_chunk_time: Optional[float] = None,
96
+ generative_reasoning_first_chunk_time: Optional[float] = None,
95
97
  ):
96
98
  raise NotImplementedError
97
99
 
@@ -87,12 +87,14 @@ class BasicAuditStorage(AuditStorage):
87
87
  chat_context: List[ChatContext],
88
88
  retrieved_context: List[RetrievedContext],
89
89
  answer: Optional[str],
90
+ reasoning: Optional[str],
90
91
  learning_id: Optional[str],
91
92
  status_code: int,
92
93
  model: Optional[str],
93
94
  rephrase_time: Optional[float] = None,
94
95
  generative_answer_time: Optional[float] = None,
95
96
  generative_answer_first_chunk_time: Optional[float] = None,
97
+ generative_reasoning_first_chunk_time: Optional[float] = None,
96
98
  ):
97
99
  logger.debug(f"CHAT {kbid} {user} {origin}")
98
100
 
@@ -425,12 +425,14 @@ class StreamAuditStorage(AuditStorage):
425
425
  chat_context: List[ChatContext],
426
426
  retrieved_context: List[RetrievedContext],
427
427
  answer: Optional[str],
428
+ reasoning: Optional[str],
428
429
  learning_id: Optional[str],
429
430
  status_code: int,
430
431
  model: Optional[str],
431
432
  rephrase_time: Optional[float] = None,
432
433
  generative_answer_time: Optional[float] = None,
433
434
  generative_answer_first_chunk_time: Optional[float] = None,
435
+ generative_reasoning_first_chunk_time: Optional[float] = None,
434
436
  ):
435
437
  rcontext = get_request_context()
436
438
  if rcontext is None:
@@ -448,6 +450,8 @@ class StreamAuditStorage(AuditStorage):
448
450
  auditrequest.generative_answer_time = generative_answer_time
449
451
  if generative_answer_first_chunk_time is not None:
450
452
  auditrequest.generative_answer_first_chunk_time = generative_answer_first_chunk_time
453
+ if generative_reasoning_first_chunk_time is not None:
454
+ auditrequest.generative_reasoning_first_chunk_time = generative_reasoning_first_chunk_time
451
455
 
452
456
  if retrieval_rephrased_question is not None:
453
457
  auditrequest.retrieval_rephrased_question = retrieval_rephrased_question
@@ -462,6 +466,9 @@ class StreamAuditStorage(AuditStorage):
462
466
  auditrequest.chat.rephrased_question = rephrased_question
463
467
  if answer is not None:
464
468
  auditrequest.chat.answer = answer
469
+ if reasoning is not None:
470
+ auditrequest.chat.reasoning = reasoning
471
+
465
472
  auditrequest.chat.status_code = status_code
466
473
  if model is not None:
467
474
  auditrequest.chat.model = model
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_utils
3
- Version: 6.7.2.post4911
3
+ Version: 6.8.0.post4918
4
4
  Summary: NucliaDB util library
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
27
27
  Requires-Dist: PyNaCl
28
28
  Requires-Dist: pyjwt>=2.4.0
29
29
  Requires-Dist: mrflagly>=0.2.9
30
- Requires-Dist: nucliadb-protos>=6.7.2.post4911
31
- Requires-Dist: nucliadb-telemetry>=6.7.2.post4911
30
+ Requires-Dist: nucliadb-protos>=6.8.0.post4918
31
+ Requires-Dist: nucliadb-telemetry>=6.8.0.post4918
32
32
  Provides-Extra: cache
33
33
  Requires-Dist: redis>=4.3.4; extra == "cache"
34
34
  Requires-Dist: orjson>=3.6.7; extra == "cache"
@@ -21,9 +21,9 @@ nucliadb_utils/aiopynecone/client.py,sha256=MPyHnDXwhukJr7U3CJh7BpsekfSuOkyM4g5b
21
21
  nucliadb_utils/aiopynecone/exceptions.py,sha256=fUErx3ceKQK1MUbOnYcZhIzpNe8UVAptZE9JIRDLXDE,4000
22
22
  nucliadb_utils/aiopynecone/models.py,sha256=XkNIZx4bxdbVo9zYVn8IRp70q4DWUMWN79ybGloFj2Q,3492
23
23
  nucliadb_utils/audit/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
24
- nucliadb_utils/audit/audit.py,sha256=QNrohgWcWkO0exDOi-U7wp1YY7s8ezJqJESWGx4KnYM,3493
25
- nucliadb_utils/audit/basic.py,sha256=4NX3IkZtTM_F2jD9TGE8-1eoS-hc-_zWwFGYVahGNSs,4141
26
- nucliadb_utils/audit/stream.py,sha256=NPQAP6UNS1--YynGMOP2PfoXcYt0SC0_LqRtXq11tWk,17313
24
+ nucliadb_utils/audit/audit.py,sha256=xmJJiAGG8rPGADwD9gXN9-QJ80GeGvqmY-kCwEf6PiQ,3598
25
+ nucliadb_utils/audit/basic.py,sha256=fcCYvoFSGVbbB8cSCnm95bN2rf1AAeuWhGfh5no0S-Y,4246
26
+ nucliadb_utils/audit/stream.py,sha256=A0PK-uHW-gXxrDsggbWwbcf2x1CWfP2rYf60wSixg0k,17670
27
27
  nucliadb_utils/cache/__init__.py,sha256=itSI7dtTwFP55YMX4iK7JzdMHS5CQVUiB1XzQu4UBh8,833
28
28
  nucliadb_utils/cache/exceptions.py,sha256=Zu-O_-0-yctOEgoDGI92gPzWfBMRrpiAyESA62ld6MA,975
29
29
  nucliadb_utils/cache/nats.py,sha256=3aV25374fsA_oOr9ZqLDxhNn700O7CIagJ-0Y-ojwqE,7294
@@ -57,7 +57,7 @@ nucliadb_utils/tests/gcs.py,sha256=MBMzn_UHU5SU6iILuCsB5zU4umhNcaCw_MKrxZhwvOc,4
57
57
  nucliadb_utils/tests/local.py,sha256=z9E11_ol1mu7N8Y6PkjKl-WMPPMl7JqQbDj3uhVa1A0,1933
58
58
  nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
59
59
  nucliadb_utils/tests/s3.py,sha256=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
60
- nucliadb_utils-6.7.2.post4911.dist-info/METADATA,sha256=F-eH9NAHvGhqwRA49mBz7pllorkmqJJa4t8nRhiDyRk,2180
61
- nucliadb_utils-6.7.2.post4911.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
- nucliadb_utils-6.7.2.post4911.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
- nucliadb_utils-6.7.2.post4911.dist-info/RECORD,,
60
+ nucliadb_utils-6.8.0.post4918.dist-info/METADATA,sha256=xBCt7TlYRhVeqSODpoBJQPxiIkxYyrFWeaypyWPY2so,2180
61
+ nucliadb_utils-6.8.0.post4918.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
+ nucliadb_utils-6.8.0.post4918.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
+ nucliadb_utils-6.8.0.post4918.dist-info/RECORD,,