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.
- arize/_exporter/client.py +28 -8
- arize/_exporter/parsers/tracing_data_parser.py +7 -4
- arize/_exporter/validation.py +7 -3
- arize/_flight/client.py +11 -14
- arize/_lazy.py +38 -36
- arize/client.py +36 -4
- arize/config.py +37 -3
- arize/constants/config.py +6 -0
- arize/constants/ml.py +33 -31
- arize/constants/model_mapping.json +199 -0
- arize/exceptions/base.py +47 -42
- arize/exceptions/models.py +12 -0
- arize/exceptions/parameters.py +342 -324
- arize/exceptions/values.py +16 -0
- arize/logging.py +6 -6
- arize/models/__init__.py +0 -0
- arize/models/batch_validation/__init__.py +0 -0
- arize/models/batch_validation/errors.py +1145 -0
- arize/models/batch_validation/validator.py +3711 -0
- arize/models/bounded_executor.py +34 -0
- arize/models/client.py +807 -0
- arize/models/stream_validation.py +214 -0
- arize/spans/client.py +55 -188
- arize/spans/validation/annotations/annotations_validation.py +8 -4
- arize/spans/validation/annotations/dataframe_form_validation.py +6 -2
- arize/spans/validation/annotations/value_validation.py +6 -3
- arize/spans/validation/common/argument_validation.py +5 -2
- arize/spans/validation/common/dataframe_form_validation.py +5 -2
- arize/spans/validation/evals/evals_validation.py +8 -4
- arize/spans/validation/evals/value_validation.py +8 -4
- arize/spans/validation/metadata/argument_validation.py +5 -2
- arize/spans/validation/spans/spans_validation.py +8 -4
- arize/spans/validation/spans/value_validation.py +8 -5
- arize/types.py +1421 -1366
- arize/utils/arrow.py +143 -2
- arize/utils/casting.py +396 -0
- arize/utils/proto.py +751 -310
- arize/version.py +1 -1
- {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/METADATA +165 -9
- {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/RECORD +43 -34
- /arize/utils/{pandas.py → dataframe.py} +0 -0
- {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/WHEEL +0 -0
- {arize-8.0.0a2.dist-info → arize-8.0.0a4.dist-info}/licenses/LICENSE.md +0 -0
arize/exceptions/values.py
CHANGED
|
@@ -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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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(
|
arize/models/__init__.py
ADDED
|
File without changes
|
|
File without changes
|