arize 8.0.0a2__py3-none-any.whl → 8.0.0a4__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.
Files changed (43) hide show
  1. arize/_exporter/client.py +28 -8
  2. arize/_exporter/parsers/tracing_data_parser.py +7 -4
  3. arize/_exporter/validation.py +7 -3
  4. arize/_flight/client.py +11 -14
  5. arize/_lazy.py +38 -36
  6. arize/client.py +36 -4
  7. arize/config.py +37 -3
  8. arize/constants/config.py +6 -0
  9. arize/constants/ml.py +33 -31
  10. arize/constants/model_mapping.json +199 -0
  11. arize/exceptions/base.py +47 -42
  12. arize/exceptions/models.py +12 -0
  13. arize/exceptions/parameters.py +342 -324
  14. arize/exceptions/values.py +16 -0
  15. arize/logging.py +6 -6
  16. arize/models/__init__.py +0 -0
  17. arize/models/batch_validation/__init__.py +0 -0
  18. arize/models/batch_validation/errors.py +1145 -0
  19. arize/models/batch_validation/validator.py +3711 -0
  20. arize/models/bounded_executor.py +34 -0
  21. arize/models/client.py +807 -0
  22. arize/models/stream_validation.py +214 -0
  23. arize/spans/client.py +55 -188
  24. arize/spans/validation/annotations/annotations_validation.py +8 -4
  25. arize/spans/validation/annotations/dataframe_form_validation.py +6 -2
  26. arize/spans/validation/annotations/value_validation.py +6 -3
  27. arize/spans/validation/common/argument_validation.py +5 -2
  28. arize/spans/validation/common/dataframe_form_validation.py +5 -2
  29. arize/spans/validation/evals/evals_validation.py +8 -4
  30. arize/spans/validation/evals/value_validation.py +8 -4
  31. arize/spans/validation/metadata/argument_validation.py +5 -2
  32. arize/spans/validation/spans/spans_validation.py +8 -4
  33. arize/spans/validation/spans/value_validation.py +8 -5
  34. arize/types.py +1421 -1366
  35. arize/utils/arrow.py +143 -2
  36. arize/utils/casting.py +396 -0
  37. arize/utils/proto.py +751 -310
  38. arize/version.py +1 -1
  39. {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/METADATA +165 -9
  40. {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/RECORD +43 -34
  41. /arize/utils/{pandas.py → dataframe.py} +0 -0
  42. {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/WHEEL +0 -0
  43. {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/licenses/LICENSE.md +0 -0
@@ -492,3 +492,19 @@ class InvalidRecord(ValidationError):
492
492
  " - If you are sending SHAP values, make sure not all your SHAP values are null "
493
493
  "in any given row.\n"
494
494
  )
495
+
496
+
497
+ class InvalidStringLength(Exception):
498
+ def __init__(self, name: str, min_length: int, max_length: int) -> None:
499
+ self.name = name
500
+ self.min_length = min_length
501
+ self.max_length = max_length
502
+
503
+ def __repr__(self) -> str:
504
+ return "Invalid_String_Length"
505
+
506
+ def __str__(self) -> str:
507
+ return self.error_message()
508
+
509
+ def error_message(self) -> str:
510
+ return f"{self.name} must be of length between {self.min_length} and {self.max_length} characters."
arize/logging.py CHANGED
@@ -201,12 +201,12 @@ _STANDARD_RECORD_KEYS = {
201
201
  }
202
202
 
203
203
 
204
- # def get_truncation_warning_message(instance, limit) -> str:
205
- # return (
206
- # f"Attention: {instance} exceeding the {limit} character limit will be "
207
- # "automatically truncated upon ingestion into the Arize platform. Should you require "
208
- # "a higher limit, please reach out to our support team at support@arize.com"
209
- # )
204
+ def get_truncation_warning_message(instance, limit) -> str:
205
+ return (
206
+ f"Attention: {instance} exceeding the {limit} character limit will be "
207
+ "automatically truncated upon ingestion into the Arize platform. Should you require "
208
+ "a higher limit, please reach out to our support team at support@arize.com"
209
+ )
210
210
 
211
211
 
212
212
  def configure_logging(
File without changes
File without changes