nucliadb-utils 6.2.1.post2939__py3-none-any.whl → 6.2.1.post2954__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.

@@ -84,9 +84,9 @@ class AuditStorage:
84
84
  chat_context: List[ChatContext],
85
85
  retrieved_context: List[RetrievedContext],
86
86
  answer: Optional[str],
87
- learning_id: str,
87
+ learning_id: Optional[str],
88
88
  status_code: int,
89
- model: str,
89
+ model: Optional[str],
90
90
  rephrase_time: Optional[float] = None,
91
91
  generative_answer_time: Optional[float] = None,
92
92
  generative_answer_first_chunk_time: Optional[float] = None,
@@ -85,9 +85,9 @@ class BasicAuditStorage(AuditStorage):
85
85
  chat_context: List[ChatContext],
86
86
  retrieved_context: List[RetrievedContext],
87
87
  answer: Optional[str],
88
- learning_id: str,
88
+ learning_id: Optional[str],
89
89
  status_code: int,
90
- model: str,
90
+ model: Optional[str],
91
91
  rephrase_time: Optional[float] = None,
92
92
  generative_answer_time: Optional[float] = None,
93
93
  generative_answer_first_chunk_time: Optional[float] = None,
@@ -375,9 +375,9 @@ class StreamAuditStorage(AuditStorage):
375
375
  chat_context: List[ChatContext],
376
376
  retrieved_context: List[RetrievedContext],
377
377
  answer: Optional[str],
378
- learning_id: str,
378
+ learning_id: Optional[str],
379
379
  status_code: int,
380
- model: str,
380
+ model: Optional[str],
381
381
  rephrase_time: Optional[float] = None,
382
382
  generative_answer_time: Optional[float] = None,
383
383
  generative_answer_first_chunk_time: Optional[float] = None,
@@ -402,13 +402,15 @@ class StreamAuditStorage(AuditStorage):
402
402
  auditrequest.chat.question = question
403
403
  auditrequest.chat.chat_context.extend(chat_context)
404
404
  auditrequest.chat.retrieved_context.extend(retrieved_context)
405
- auditrequest.chat.learning_id = learning_id
405
+ if learning_id is not None:
406
+ auditrequest.chat.learning_id = learning_id
406
407
  if rephrased_question is not None:
407
408
  auditrequest.chat.rephrased_question = rephrased_question
408
409
  if answer is not None:
409
410
  auditrequest.chat.answer = answer
410
411
  auditrequest.chat.status_code = status_code
411
- auditrequest.chat.model = model
412
+ if model is not None:
413
+ auditrequest.chat.model = model
412
414
 
413
415
  def feedback(
414
416
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nucliadb_utils
3
- Version: 6.2.1.post2939
3
+ Version: 6.2.1.post2954
4
4
  Home-page: https://nuclia.com
5
5
  License: BSD
6
6
  Classifier: Development Status :: 4 - Beta
@@ -24,8 +24,8 @@ Requires-Dist: PyNaCl
24
24
  Requires-Dist: pyjwt>=2.4.0
25
25
  Requires-Dist: memorylru>=1.1.2
26
26
  Requires-Dist: mrflagly>=0.2.9
27
- Requires-Dist: nucliadb-protos>=6.2.1.post2939
28
- Requires-Dist: nucliadb-telemetry>=6.2.1.post2939
27
+ Requires-Dist: nucliadb-protos>=6.2.1.post2954
28
+ Requires-Dist: nucliadb-telemetry>=6.2.1.post2954
29
29
  Provides-Extra: cache
30
30
  Requires-Dist: redis>=4.3.4; extra == "cache"
31
31
  Requires-Dist: orjson>=3.6.7; extra == "cache"
@@ -22,9 +22,9 @@ nucliadb_utils/aiopynecone/client.py,sha256=MPyHnDXwhukJr7U3CJh7BpsekfSuOkyM4g5b
22
22
  nucliadb_utils/aiopynecone/exceptions.py,sha256=fUErx3ceKQK1MUbOnYcZhIzpNe8UVAptZE9JIRDLXDE,4000
23
23
  nucliadb_utils/aiopynecone/models.py,sha256=XkNIZx4bxdbVo9zYVn8IRp70q4DWUMWN79ybGloFj2Q,3492
24
24
  nucliadb_utils/audit/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
25
- nucliadb_utils/audit/audit.py,sha256=2kRG4MLyvuxwaZl1uFkRNfItHNE5r9BNxxoNKWt1pFU,3364
26
- nucliadb_utils/audit/basic.py,sha256=p9DB9wYaKJuzHjNkXTMcbdoIDQRVTFjbLmx7fwoRQFI,4012
27
- nucliadb_utils/audit/stream.py,sha256=p1CBs-35G5VCCABmv9n3z9K4Je30cEEbdBvSv_NG-lI,15139
25
+ nucliadb_utils/audit/audit.py,sha256=VDUqcSToEoz5m7iG-4omjTlsBSEJGcp0_xl51idnU3Q,3384
26
+ nucliadb_utils/audit/basic.py,sha256=pVf1oKp7T_oTDCyt8QbSsfC_uWjF66ooF6rqY-SWSrc,4032
27
+ nucliadb_utils/audit/stream.py,sha256=zT--ECfFNfhL22hhN4IKkPrCaNITKijmufXVoVWm_4c,15233
28
28
  nucliadb_utils/cache/__init__.py,sha256=itSI7dtTwFP55YMX4iK7JzdMHS5CQVUiB1XzQu4UBh8,833
29
29
  nucliadb_utils/cache/exceptions.py,sha256=Zu-O_-0-yctOEgoDGI92gPzWfBMRrpiAyESA62ld6MA,975
30
30
  nucliadb_utils/cache/nats.py,sha256=-AjCfkFgKVdJUlGR0hT9JDSNkPVFg4S6w9eW-ZIcXPM,7037
@@ -59,8 +59,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
59
59
  nucliadb_utils/tests/local.py,sha256=fXIBasrvdaFJM-sw2wk1_oiFzBcm9O10iCyC-OiXwY8,1914
60
60
  nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
61
61
  nucliadb_utils/tests/s3.py,sha256=pl-RJFjA4MH6iXkqhsh5g8gDuEhrYu1nPZ-laxlrMlE,3704
62
- nucliadb_utils-6.2.1.post2939.dist-info/METADATA,sha256=pqLCb80cF04h0-jqouhKCGC09JTL0oVDd6b7rbsXMbM,2204
63
- nucliadb_utils-6.2.1.post2939.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
64
- nucliadb_utils-6.2.1.post2939.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
65
- nucliadb_utils-6.2.1.post2939.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
66
- nucliadb_utils-6.2.1.post2939.dist-info/RECORD,,
62
+ nucliadb_utils-6.2.1.post2954.dist-info/METADATA,sha256=g4UqwRJKnLXp75z3CjGmvWbRCOU0_cDHqFDuaiSAUE4,2204
63
+ nucliadb_utils-6.2.1.post2954.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
64
+ nucliadb_utils-6.2.1.post2954.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
65
+ nucliadb_utils-6.2.1.post2954.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
66
+ nucliadb_utils-6.2.1.post2954.dist-info/RECORD,,