arize 8.0.0a23__tar.gz → 8.0.0b0__tar.gz

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 (177) hide show
  1. {arize-8.0.0a23 → arize-8.0.0b0}/PKG-INFO +10 -4
  2. {arize-8.0.0a23 → arize-8.0.0b0}/README.md +3 -3
  3. {arize-8.0.0a23 → arize-8.0.0b0}/pyproject.toml +6 -7
  4. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/__init__.py +11 -10
  5. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_exporter/client.py +1 -1
  6. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/client.py +36 -126
  7. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/config.py +59 -100
  8. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/datasets/client.py +11 -6
  9. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/nlp_generators.py +12 -6
  10. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/tabular_generators.py +14 -11
  11. arize-8.0.0b0/src/arize/experiments/__init__.py +13 -0
  12. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/client.py +11 -6
  13. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/batch_validation/errors.py +2 -2
  14. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/batch_validation/validator.py +5 -3
  15. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/casting.py +42 -78
  16. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/client.py +19 -17
  17. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/proto.py +2 -2
  18. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/stream_validation.py +1 -1
  19. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/surrogate_explainer/mimic.py +6 -2
  20. {arize-8.0.0a23/src/arize → arize-8.0.0b0/src/arize/ml}/types.py +99 -234
  21. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/pre_releases.py +2 -1
  22. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/projects/client.py +11 -6
  23. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/client.py +89 -84
  24. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/conversion.py +11 -4
  25. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/common/value_validation.py +1 -1
  26. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/spans/dataframe_form_validation.py +1 -1
  27. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/spans/value_validation.py +2 -1
  28. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/dataframe.py +1 -1
  29. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/online_tasks/dataframe_preprocessor.py +5 -6
  30. arize-8.0.0b0/src/arize/utils/types.py +105 -0
  31. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/version.py +1 -1
  32. arize-8.0.0a23/src/arize/experiments/__init__.py +0 -1
  33. {arize-8.0.0a23 → arize-8.0.0b0}/.gitignore +0 -0
  34. {arize-8.0.0a23 → arize-8.0.0b0}/LICENSE +0 -0
  35. {arize-8.0.0a23 → arize-8.0.0b0}/NOTICE +0 -0
  36. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_exporter/__init__.py +0 -0
  37. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_exporter/parsers/__init__.py +0 -0
  38. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_exporter/parsers/tracing_data_parser.py +0 -0
  39. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_exporter/validation.py +0 -0
  40. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_flight/__init__.py +0 -0
  41. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_flight/client.py +0 -0
  42. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_flight/types.py +0 -0
  43. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/__init__.py +0 -0
  44. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/__init__.py +0 -0
  45. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api/__init__.py +0 -0
  46. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api/datasets_api.py +0 -0
  47. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api/experiments_api.py +0 -0
  48. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api/projects_api.py +0 -0
  49. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api_client.py +0 -0
  50. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/api_response.py +0 -0
  51. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/configuration.py +0 -0
  52. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/exceptions.py +0 -0
  53. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/__init__.py +0 -0
  54. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset.py +0 -0
  55. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset_example.py +0 -0
  56. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset_example_update.py +0 -0
  57. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/dataset_version.py +0 -0
  58. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_create_request.py +0 -0
  59. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_examples_insert_request.py +0 -0
  60. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_examples_list200_response.py +0 -0
  61. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_examples_update_request.py +0 -0
  62. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/datasets_list200_response.py +0 -0
  63. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiment.py +0 -0
  64. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiment_run.py +0 -0
  65. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiment_run_create.py +0 -0
  66. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_create_request.py +0 -0
  67. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_list200_response.py +0 -0
  68. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/experiments_runs_list200_response.py +0 -0
  69. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/pagination_metadata.py +0 -0
  70. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/primitive_value.py +0 -0
  71. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/problem.py +0 -0
  72. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/project.py +0 -0
  73. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/projects_create_request.py +0 -0
  74. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/models/projects_list200_response.py +0 -0
  75. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/rest.py +0 -0
  76. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/__init__.py +0 -0
  77. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset.py +0 -0
  78. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset_example.py +0 -0
  79. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset_example_update.py +0 -0
  80. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_dataset_version.py +0 -0
  81. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_api.py +0 -0
  82. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_create_request.py +0 -0
  83. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_examples_insert_request.py +0 -0
  84. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_examples_list200_response.py +0 -0
  85. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_examples_update_request.py +0 -0
  86. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_datasets_list200_response.py +0 -0
  87. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiment.py +0 -0
  88. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiment_run.py +0 -0
  89. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiment_run_create.py +0 -0
  90. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_api.py +0 -0
  91. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_create_request.py +0 -0
  92. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_list200_response.py +0 -0
  93. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_experiments_runs_list200_response.py +0 -0
  94. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_pagination_metadata.py +0 -0
  95. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_primitive_value.py +0 -0
  96. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_problem.py +0 -0
  97. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_project.py +0 -0
  98. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_projects_api.py +0 -0
  99. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_projects_create_request.py +0 -0
  100. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client/test/test_projects_list200_response.py +0 -0
  101. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/api_client_README.md +0 -0
  102. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/protocol/__init__.py +0 -0
  103. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/protocol/flight/__init__.py +0 -0
  104. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/protocol/flight/flight_pb2.py +0 -0
  105. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/protocol/rec/__init__.py +0 -0
  106. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_generated/protocol/rec/public_pb2.py +0 -0
  107. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/_lazy.py +0 -0
  108. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/__init__.py +0 -0
  109. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/config.py +0 -0
  110. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/ml.py +0 -0
  111. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/model_mapping.json +0 -0
  112. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/openinference.py +0 -0
  113. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/pyarrow.py +0 -0
  114. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/constants/spans.py +0 -0
  115. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/datasets/__init__.py +0 -0
  116. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/datasets/errors.py +0 -0
  117. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/datasets/validation.py +0 -0
  118. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/__init__.py +0 -0
  119. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/auto_generator.py +0 -0
  120. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/base_generators.py +0 -0
  121. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/constants.py +0 -0
  122. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/cv_generators.py +0 -0
  123. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/errors.py +0 -0
  124. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/embeddings/usecases.py +0 -0
  125. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/__init__.py +0 -0
  126. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/auth.py +0 -0
  127. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/base.py +0 -0
  128. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/models.py +0 -0
  129. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/parameters.py +0 -0
  130. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/spaces.py +0 -0
  131. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/types.py +0 -0
  132. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/exceptions/values.py +0 -0
  133. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/__init__.py +0 -0
  134. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/base.py +0 -0
  135. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/exceptions.py +0 -0
  136. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/executors.py +0 -0
  137. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/rate_limiters.py +0 -0
  138. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/types.py +0 -0
  139. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/evaluators/utils.py +0 -0
  140. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/functions.py +0 -0
  141. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/tracing.py +0 -0
  142. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/experiments/types.py +0 -0
  143. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/logging.py +0 -0
  144. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/__init__.py +0 -0
  145. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/batch_validation/__init__.py +0 -0
  146. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/bounded_executor.py +0 -0
  147. {arize-8.0.0a23/src/arize/models → arize-8.0.0b0/src/arize/ml}/surrogate_explainer/__init__.py +0 -0
  148. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/projects/__init__.py +0 -0
  149. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/regions.py +0 -0
  150. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/__init__.py +0 -0
  151. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/columns.py +0 -0
  152. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/__init__.py +0 -0
  153. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/annotations/__init__.py +0 -0
  154. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/annotations/annotations_validation.py +0 -0
  155. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/annotations/dataframe_form_validation.py +0 -0
  156. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/annotations/value_validation.py +0 -0
  157. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/common/__init__.py +0 -0
  158. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/common/argument_validation.py +0 -0
  159. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/common/dataframe_form_validation.py +0 -0
  160. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/common/errors.py +0 -0
  161. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/evals/__init__.py +0 -0
  162. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/evals/dataframe_form_validation.py +0 -0
  163. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/evals/evals_validation.py +0 -0
  164. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/evals/value_validation.py +0 -0
  165. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/metadata/__init__.py +0 -0
  166. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/metadata/argument_validation.py +0 -0
  167. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/metadata/dataframe_form_validation.py +0 -0
  168. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/metadata/value_validation.py +0 -0
  169. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/spans/__init__.py +0 -0
  170. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/spans/validation/spans/spans_validation.py +0 -0
  171. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/__init__.py +0 -0
  172. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/arrow.py +0 -0
  173. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/cache.py +0 -0
  174. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/online_tasks/__init__.py +0 -0
  175. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/openinference_conversion.py +0 -0
  176. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/proto.py +0 -0
  177. {arize-8.0.0a23 → arize-8.0.0b0}/src/arize/utils/size.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arize
3
- Version: 8.0.0a23
3
+ Version: 8.0.0b0
4
4
  Summary: A helper library to interact with Arize AI APIs
5
5
  Project-URL: Homepage, https://arize.com
6
6
  Project-URL: Documentation, https://docs.arize.com/arize
@@ -37,6 +37,12 @@ Requires-Dist: torch<3,>=1.13; extra == 'auto-embeddings'
37
37
  Requires-Dist: transformers<5,>=4.25; extra == 'auto-embeddings'
38
38
  Provides-Extra: datasets-experiments
39
39
  Requires-Dist: numpy>=2.0.0; extra == 'datasets-experiments'
40
+ Requires-Dist: openinference-semantic-conventions<1,>=0.1.21; extra == 'datasets-experiments'
41
+ Requires-Dist: opentelemetry-api>=1.38.0; extra == 'datasets-experiments'
42
+ Requires-Dist: opentelemetry-exporter-otlp-proto-common>=1.38.0; extra == 'datasets-experiments'
43
+ Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.38.0; extra == 'datasets-experiments'
44
+ Requires-Dist: opentelemetry-proto>=1.38.0; extra == 'datasets-experiments'
45
+ Requires-Dist: opentelemetry-sdk>=1.38.0; extra == 'datasets-experiments'
40
46
  Requires-Dist: pydantic; extra == 'datasets-experiments'
41
47
  Requires-Dist: wrapt<2.0.0,>=1.0.0; extra == 'datasets-experiments'
42
48
  Provides-Extra: dev
@@ -261,7 +267,7 @@ Use `arize.models` to interact with ML models: log ML data (traininv, validation
261
267
 
262
268
  ```python
263
269
  from arize import ArizeClient
264
- from arize.types import ModelTypes, Environments
270
+ from arize.ml.types import ModelTypes, Environments
265
271
 
266
272
  client = ArizeClient(api_key=API_KEY)
267
273
  SPACE_ID = "<your-space-id>"
@@ -286,14 +292,14 @@ response = client.models.log_stream(
286
292
 
287
293
  ```python
288
294
  from arize import ArizeClient
289
- from arize.types import ModelTypes, Environments
295
+ from arize.ml.types import ModelTypes, Environments
290
296
 
291
297
  client = ArizeClient(api_key=API_KEY)
292
298
  SPACE_ID = "<your-space-id>"
293
299
  MODEL_NAME = "<your-model-name>"
294
300
  MODEL_VERSION = "1.0"
295
301
 
296
- from arize.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
302
+ from arize.ml.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
297
303
 
298
304
  tags = ["drift_type"]
299
305
  embedding_feature_column_names = {
@@ -196,7 +196,7 @@ Use `arize.models` to interact with ML models: log ML data (traininv, validation
196
196
 
197
197
  ```python
198
198
  from arize import ArizeClient
199
- from arize.types import ModelTypes, Environments
199
+ from arize.ml.types import ModelTypes, Environments
200
200
 
201
201
  client = ArizeClient(api_key=API_KEY)
202
202
  SPACE_ID = "<your-space-id>"
@@ -221,14 +221,14 @@ response = client.models.log_stream(
221
221
 
222
222
  ```python
223
223
  from arize import ArizeClient
224
- from arize.types import ModelTypes, Environments
224
+ from arize.ml.types import ModelTypes, Environments
225
225
 
226
226
  client = ArizeClient(api_key=API_KEY)
227
227
  SPACE_ID = "<your-space-id>"
228
228
  MODEL_NAME = "<your-model-name>"
229
229
  MODEL_VERSION = "1.0"
230
230
 
231
- from arize.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
231
+ from arize.ml.types import Schema, EmbeddingColumnNames, ObjectDetectionColumnNames, ModelTypes, Environments
232
232
 
233
233
  tags = ["drift_type"]
234
234
  embedding_feature_column_names = {
@@ -75,13 +75,12 @@ datasets-experiments = [
75
75
  "pydantic",
76
76
  "numpy>=2.0.0",
77
77
  "wrapt>=1.0.0,<2.0.0",
78
- # "openinference-semantic-conventions>=0.1.21, <1",
79
- # "opentelemetry-exporter-otlp-proto-common>=1.38.0",
80
- # "opentelemetry-exporter-otlp-proto-grpc>=1.38.0",
81
- # "opentelemetry-sdk>=1.38.0",
82
- #
83
- # "opentelemetry-api>=1.38.0",
84
- # "opentelemetry-proto>=1.38.0",
78
+ "openinference-semantic-conventions>=0.1.21, <1",
79
+ "opentelemetry-exporter-otlp-proto-common>=1.38.0",
80
+ "opentelemetry-exporter-otlp-proto-grpc>=1.38.0",
81
+ "opentelemetry-sdk>=1.38.0",
82
+ "opentelemetry-api>=1.38.0",
83
+ "opentelemetry-proto>=1.38.0",
85
84
  ]
86
85
  mimic-explainer = [
87
86
  "interpret-community[mimic]>=0.22.0,<1"
@@ -44,18 +44,19 @@ def make_to_df(field_name: str) -> object:
44
44
  - If an item is a mapping (dict-like), use it as-is.
45
45
  - Otherwise, raise a ValueError (unsupported row type).
46
46
 
47
- Parameters:
48
- by_alias: Use field aliases when dumping Pydantic models.
49
- exclude_none:
50
- - False: keep Nones as-is
51
- - "all": drop columns where *all* values are None/NaN
52
- - "any": drop columns where *any* value is None/NaN
53
- - True: alias for "all"
54
- json_normalize: If True, flatten nested dicts via `pandas.json_normalize`.
55
- convert_dtypes: If True, call `DataFrame.convert_dtypes()` at the end.
47
+ Args:
48
+ self (object): The object instance containing the field to convert.
49
+ by_alias (bool): Use field aliases when dumping Pydantic models.
50
+ exclude_none (str | bool): Control None/NaN column dropping.
51
+ - False: keep Nones as-is
52
+ - "all": drop columns where all values are None/NaN
53
+ - "any": drop columns where any value is None/NaN
54
+ - True: alias for "all"
55
+ json_normalize (bool): If True, flatten nested dicts via `pandas.json_normalize`.
56
+ convert_dtypes (bool): If True, call `DataFrame.convert_dtypes()` at the end.
56
57
 
57
58
  Returns:
58
- pandas.DataFrame
59
+ pandas.DataFrame: The converted DataFrame.
59
60
  """
60
61
  import pandas as pd
61
62
 
@@ -17,7 +17,7 @@ from arize._exporter.validation import (
17
17
  )
18
18
  from arize._generated.protocol.flight import flight_pb2
19
19
  from arize.logging import CtxAdapter
20
- from arize.types import Environments, SimilaritySearchParams
20
+ from arize.ml.types import Environments, SimilaritySearchParams
21
21
  from arize.utils.dataframe import reset_dataframe_index
22
22
 
23
23
  logger = logging.getLogger(__name__)
@@ -13,13 +13,21 @@ from arize.config import SDKConfiguration
13
13
  if TYPE_CHECKING:
14
14
  from arize.datasets.client import DatasetsClient
15
15
  from arize.experiments.client import ExperimentsClient
16
- from arize.models.client import MLModelsClient
16
+ from arize.ml.client import MLModelsClient
17
17
  from arize.projects.client import ProjectsClient
18
18
  from arize.regions import Region
19
19
  from arize.spans.client import SpansClient
20
20
 
21
21
  logger = logging.getLogger(__name__)
22
22
 
23
+ # TODO(Kiko): Clean commented lines over the SDK
24
+ # TODO(Kiko): Implement https://github.com/Arize-ai/arize/pull/59917
25
+
26
+ # TODO(Kiko): Go private connect. Need a `base_domain`, such that we get:
27
+ # - api.<base_domain>
28
+ # - app.<base_domain>
29
+ # - flight.<base_domain>
30
+ # - otlp.<base_domain>
23
31
 
24
32
  # TODO(Kiko): Enforce type checking, remove all type ignores
25
33
 
@@ -44,133 +52,35 @@ class ArizeClient(LazySubclientsMixin):
44
52
  """Root client for the Arize SDK.
45
53
 
46
54
  The ArizeClient provides access to all Arize platform services including datasets,
47
- experiments, models, projects, and spans. It uses SDKConfiguration internally to
55
+ experiments, ML models, projects, and spans. It uses SDKConfiguration internally to
48
56
  manage configuration settings.
49
57
 
50
- Configuration Precedence
51
- ------------------------
52
58
  All parameters are optional (except api_key which must be provided via argument
53
59
  or environment variable). For each parameter, values are resolved in this order:
54
- 1. Explicit value passed to constructor (highest priority)
55
- 2. Environment variable value (see SDKConfiguration for variable names)
56
- 3. Built-in default value (lowest priority)
57
-
58
- Parameters
59
- ----------
60
- api_key : str
61
- Arize API key for authentication. Required - must be provided via this parameter
62
- or the ARIZE_API_KEY environment variable.
63
- Environment variable: ARIZE_API_KEY
64
- Default: None (raises MissingAPIKeyError if not provided)
65
-
66
- region : Region, optional
67
- Arize region (e.g., Region.US_CENTRAL, Region.EU_WEST). When specified,
68
- overrides individual host/port settings with region-specific endpoints.
69
- Environment variable: ARIZE_REGION
70
- Default: Region.UNSPECIFIED
71
-
72
- api_host : str, optional
73
- Custom API endpoint host override.
74
- Environment variable: ARIZE_API_HOST
75
- Default: "api.arize.com"
76
-
77
- api_scheme : str, optional
78
- API endpoint scheme (http/https).
79
- Environment variable: ARIZE_API_SCHEME
80
- Default: "https"
81
-
82
- otlp_host : str, optional
83
- OTLP (OpenTelemetry Protocol) endpoint host override.
84
- Environment variable: ARIZE_OTLP_HOST
85
- Default: "otlp.arize.com"
86
-
87
- otlp_scheme : str, optional
88
- OTLP endpoint scheme (http/https).
89
- Environment variable: ARIZE_OTLP_SCHEME
90
- Default: "https"
91
-
92
- flight_host : str, optional
93
- Apache Arrow Flight endpoint host override.
94
- Environment variable: ARIZE_FLIGHT_HOST
95
- Default: "flight.arize.com"
96
-
97
- flight_port : int, optional
98
- Apache Arrow Flight endpoint port (1-65535).
99
- Environment variable: ARIZE_FLIGHT_PORT
100
- Default: 443
101
-
102
- flight_scheme : str, optional
103
- Apache Arrow Flight endpoint scheme.
104
- Environment variable: ARIZE_FLIGHT_SCHEME
105
- Default: "grpc+tls"
106
-
107
- pyarrow_max_chunksize : int, optional
108
- Maximum chunk size for PyArrow operations (1 to MAX_CHUNKSIZE).
109
- Environment variable: ARIZE_MAX_CHUNKSIZE
110
- Default: 10_000
111
-
112
- request_verify : bool, optional
113
- Whether to verify SSL certificates for HTTP requests.
114
- Environment variable: ARIZE_REQUEST_VERIFY
115
- Default: True
116
-
117
- stream_max_workers : int, optional
118
- Maximum number of worker threads for streaming operations (minimum: 1).
119
- Environment variable: ARIZE_STREAM_MAX_WORKERS
120
- Default: 8
121
-
122
- stream_max_queue_bound : int, optional
123
- Maximum queue size for streaming operations (minimum: 1).
124
- Environment variable: ARIZE_STREAM_MAX_QUEUE_BOUND
125
- Default: 5000
126
-
127
- max_http_payload_size_mb : float, optional
128
- Maximum HTTP payload size in megabytes (minimum: 1).
129
- Environment variable: ARIZE_MAX_HTTP_PAYLOAD_SIZE_MB
130
- Default: 100
131
-
132
- arize_directory : str, optional
133
- Directory for Arize SDK files (cache, logs, etc.).
134
- Environment variable: ARIZE_DIRECTORY
135
- Default: "~/.arize"
136
-
137
- enable_caching : bool, optional
138
- Whether to enable local caching.
139
- Environment variable: ARIZE_ENABLE_CACHING
140
- Default: True
141
-
142
- single_host : str, optional
143
- Single host to use for all endpoints. Overrides individual host settings.
144
- Environment variable: ARIZE_SINGLE_HOST
145
- Default: None (not set)
146
-
147
- single_port : int, optional
148
- Single port to use for all endpoints. Overrides individual port settings (0-65535).
149
- Environment variable: ARIZE_SINGLE_PORT
150
- Default: 0 (not set)
151
60
 
152
- Examples:
153
- --------
154
- Initialize with API key only (other settings use defaults):
61
+ 1. Explicit value passed to constructor (highest priority)
62
+ 2. Environment variable value (see SDKConfiguration for variable names)
63
+ 3. Built-in default value (lowest priority)
155
64
 
156
- >>> client = ArizeClient(api_key="your-api-key")
65
+ Examples:
66
+ Initialize with API key only (other settings use defaults):
157
67
 
158
- Initialize with custom endpoints:
68
+ >>> client = ArizeClient(api_key="your-api-key")
159
69
 
160
- >>> client = ArizeClient(
161
- ... api_key="your-api-key",
162
- ... api_host="custom.api.com",
163
- ... flight_port=8443,
164
- ... )
70
+ Initialize with custom endpoints:
165
71
 
166
- Initialize with region (overrides host/port settings):
72
+ >>> client = ArizeClient(
73
+ ... api_key="your-api-key",
74
+ ... api_host="custom.api.com",
75
+ ... flight_port=8443,
76
+ ... )
167
77
 
168
- >>> from arize.regions import Region
169
- >>> client = ArizeClient(api_key="your-api-key", region=Region.EU_WEST)
78
+ Initialize with region (overrides host/port settings):
170
79
 
171
- See Also:
172
- --------
173
- SDKConfiguration : Internal configuration class with detailed parameter documentation
80
+ >>> from arize.regions import Region
81
+ >>> client = ArizeClient(
82
+ ... api_key="your-api-key", region=Region.EU_WEST
83
+ ... )
174
84
  """
175
85
 
176
86
  _SUBCLIENTS: ClassVar[dict[str, tuple[str, str]]] = {
@@ -186,8 +96,8 @@ class ArizeClient(LazySubclientsMixin):
186
96
  "arize.projects.client",
187
97
  "ProjectsClient",
188
98
  ),
189
- "models": (
190
- "arize.models.client",
99
+ "ml": (
100
+ "arize.ml.client",
191
101
  "MLModelsClient",
192
102
  ),
193
103
  "spans": (
@@ -231,7 +141,7 @@ class ArizeClient(LazySubclientsMixin):
231
141
  # Imports are gated in each method of the models client
232
142
  # This is to allow for very lean package install if people only
233
143
  # want to stream ML records
234
- "models": (None, ()),
144
+ "ml": (None, ()),
235
145
  }
236
146
 
237
147
  def __init__(
@@ -299,8 +209,8 @@ class ArizeClient(LazySubclientsMixin):
299
209
  MissingAPIKeyError: If api_key is not provided via argument or environment variable.
300
210
 
301
211
  Notes:
302
- Values provided here override environment variables, which in turn override
303
- default values. See SDKConfiguration for detailed parameter documentation.
212
+ Values provided to this class override environment variables, which in turn
213
+ override default values. See SDKConfiguration for detailed parameter documentation.
304
214
  """
305
215
  cfg_kwargs: dict = {}
306
216
  if api_key is not None:
@@ -356,9 +266,9 @@ class ArizeClient(LazySubclientsMixin):
356
266
  return self.__getattr__("experiments")
357
267
 
358
268
  @property
359
- def models(self) -> MLModelsClient:
360
- """Access the models client for ML model operations (lazy-loaded)."""
361
- return self.__getattr__("models")
269
+ def ml(self) -> MLModelsClient:
270
+ """Access the ML models client for ML model operations (lazy-loaded)."""
271
+ return self.__getattr__("ml")
362
272
 
363
273
  @property
364
274
  def projects(self) -> ProjectsClient:
@@ -385,7 +295,7 @@ class ArizeClient(LazySubclientsMixin):
385
295
  # 'datasets': lazy,
386
296
  # 'experiments': lazy,
387
297
  # 'spans': lazy,
388
- # 'models': lazy,
298
+ # 'ml': lazy,
389
299
  # }
390
300
  # )
391
301
  lines = [f"{self.__class__.__name__}("]
@@ -167,112 +167,71 @@ def _parse_bool(val: bool | str | None) -> bool:
167
167
  class SDKConfiguration:
168
168
  """Configuration for the Arize SDK with endpoint and authentication settings.
169
169
 
170
- This class is used internally by ArizeClient to manage SDK configuration. Users
171
- typically interact with ArizeClient rather than instantiating this class directly.
170
+ This class is used internally by ArizeClient to manage SDK configuration. It is not
171
+ recommended to use this class directly; users should interact with ArizeClient
172
+ instead.
172
173
 
173
- Configuration Precedence
174
- ------------------------
175
174
  Each configuration parameter follows this resolution order:
176
175
  1. Explicit value passed to ArizeClient constructor (highest priority)
177
176
  2. Environment variable value
178
177
  3. Built-in default value (lowest priority)
179
178
 
180
- Parameters
181
- ----------
182
- api_key : str
183
- Arize API key for authentication. Required.
184
- Environment variable: ARIZE_API_KEY
185
- Default: None (must be provided via argument or environment variable)
186
-
187
- api_host : str
188
- API endpoint host.
189
- Environment variable: ARIZE_API_HOST
190
- Default: "api.arize.com"
191
-
192
- api_scheme : str
193
- API endpoint scheme (http/https).
194
- Environment variable: ARIZE_API_SCHEME
195
- Default: "https"
196
-
197
- otlp_host : str
198
- OTLP (OpenTelemetry Protocol) endpoint host.
199
- Environment variable: ARIZE_OTLP_HOST
200
- Default: "otlp.arize.com"
201
-
202
- otlp_scheme : str
203
- OTLP endpoint scheme (http/https).
204
- Environment variable: ARIZE_OTLP_SCHEME
205
- Default: "https"
206
-
207
- flight_host : str
208
- Apache Arrow Flight endpoint host.
209
- Environment variable: ARIZE_FLIGHT_HOST
210
- Default: "flight.arize.com"
211
-
212
- flight_port : int
213
- Apache Arrow Flight endpoint port (1-65535).
214
- Environment variable: ARIZE_FLIGHT_PORT
215
- Default: 443
216
-
217
- flight_scheme : str
218
- Apache Arrow Flight endpoint scheme.
219
- Environment variable: ARIZE_FLIGHT_SCHEME
220
- Default: "grpc+tls"
221
-
222
- pyarrow_max_chunksize : int
223
- Maximum chunk size for PyArrow operations (1 to MAX_CHUNKSIZE).
224
- Environment variable: ARIZE_MAX_CHUNKSIZE
225
- Default: 10_000
226
-
227
- request_verify : bool
228
- Whether to verify SSL certificates for HTTP requests.
229
- Environment variable: ARIZE_REQUEST_VERIFY
230
- Default: True
231
-
232
- stream_max_workers : int
233
- Maximum number of worker threads for streaming operations (minimum: 1).
234
- Environment variable: ARIZE_STREAM_MAX_WORKERS
235
- Default: 8
236
-
237
- stream_max_queue_bound : int
238
- Maximum queue size for streaming operations (minimum: 1).
239
- Environment variable: ARIZE_STREAM_MAX_QUEUE_BOUND
240
- Default: 5000
241
-
242
- max_http_payload_size_mb : float
243
- Maximum HTTP payload size in megabytes (minimum: 1).
244
- Environment variable: ARIZE_MAX_HTTP_PAYLOAD_SIZE_MB
245
- Default: 100
246
-
247
- arize_directory : str
248
- Directory for Arize SDK files (cache, logs, etc.).
249
- Environment variable: ARIZE_DIRECTORY
250
- Default: "~/.arize"
251
-
252
- enable_caching : bool
253
- Whether to enable local caching.
254
- Environment variable: ARIZE_ENABLE_CACHING
255
- Default: True
256
-
257
- region : Region
258
- Arize region (e.g., US_CENTRAL, EU_WEST). When specified, overrides
259
- individual host/port settings.
260
- Environment variable: ARIZE_REGION
261
- Default: Region.UNSPECIFIED
262
-
263
- single_host : str
264
- Single host to use for all endpoints. Overrides individual host settings.
265
- Environment variable: ARIZE_SINGLE_HOST
266
- Default: "" (not set)
267
-
268
- single_port : int
269
- Single port to use for all endpoints. Overrides individual port settings (0-65535).
270
- Environment variable: ARIZE_SINGLE_PORT
271
- Default: 0 (not set)
272
-
273
- See Also:
274
- --------
275
- ArizeClient : Main client class that uses this configuration
179
+ Args:
180
+ api_key: Arize API key for authentication. Required.
181
+ Environment variable: ARIZE_API_KEY.
182
+ Default: None (must be provided via argument or environment variable).
183
+ api_host: API endpoint host.
184
+ Environment variable: ARIZE_API_HOST.
185
+ Default: "api.arize.com".
186
+ api_scheme: API endpoint scheme (http/https).
187
+ Environment variable: ARIZE_API_SCHEME.
188
+ Default: "https".
189
+ otlp_host: OTLP (OpenTelemetry Protocol) endpoint host.
190
+ Environment variable: ARIZE_OTLP_HOST.
191
+ Default: "otlp.arize.com".
192
+ otlp_scheme: OTLP endpoint scheme (http/https).
193
+ Environment variable: ARIZE_OTLP_SCHEME.
194
+ Default: "https".
195
+ flight_host: Apache Arrow Flight endpoint host.
196
+ Environment variable: ARIZE_FLIGHT_HOST.
197
+ Default: "flight.arize.com".
198
+ flight_port: Apache Arrow Flight endpoint port (1-65535).
199
+ Environment variable: ARIZE_FLIGHT_PORT.
200
+ Default: 443.
201
+ flight_scheme: Apache Arrow Flight endpoint scheme.
202
+ Environment variable: ARIZE_FLIGHT_SCHEME.
203
+ Default: "grpc+tls".
204
+ pyarrow_max_chunksize: Maximum chunk size for PyArrow operations (1 to MAX_CHUNKSIZE).
205
+ Environment variable: ARIZE_MAX_CHUNKSIZE.
206
+ Default: 10_000.
207
+ request_verify: Whether to verify SSL certificates for HTTP requests.
208
+ Environment variable: ARIZE_REQUEST_VERIFY.
209
+ Default: True.
210
+ stream_max_workers: Maximum number of worker threads for streaming operations (minimum: 1).
211
+ Environment variable: ARIZE_STREAM_MAX_WORKERS.
212
+ Default: 8.
213
+ stream_max_queue_bound: Maximum queue size for streaming operations (minimum: 1).
214
+ Environment variable: ARIZE_STREAM_MAX_QUEUE_BOUND.
215
+ Default: 5000.
216
+ max_http_payload_size_mb: Maximum HTTP payload size in megabytes (minimum: 1).
217
+ Environment variable: ARIZE_MAX_HTTP_PAYLOAD_SIZE_MB.
218
+ Default: 100.
219
+ arize_directory: Directory for Arize SDK files (cache, logs, etc.).
220
+ Environment variable: ARIZE_DIRECTORY.
221
+ Default: "~/.arize".
222
+ enable_caching: Whether to enable local caching.
223
+ Environment variable: ARIZE_ENABLE_CACHING.
224
+ Default: True.
225
+ region: Arize region (e.g., US_CENTRAL, EU_WEST). When specified, overrides
226
+ individual host/port settings.
227
+ Environment variable: ARIZE_REGION.
228
+ Default: Region.UNSPECIFIED.
229
+ single_host: Single host to use for all endpoints. Overrides individual host settings.
230
+ Environment variable: ARIZE_SINGLE_HOST.
231
+ Default: "" (not set).
232
+ single_port: Single port to use for all endpoints. Overrides individual port settings (0-65535).
233
+ Environment variable: ARIZE_SINGLE_PORT.
234
+ Default: 0 (not set).
276
235
  """
277
236
 
278
237
  api_key: str = field(
@@ -30,17 +30,22 @@ logger = logging.getLogger(__name__)
30
30
 
31
31
 
32
32
  class DatasetsClient:
33
- """Client for managing datasets including creation, retrieval, and example management."""
33
+ """Client for managing datasets including creation, retrieval, and example management.
34
34
 
35
- def __init__(self, *, sdk_config: SDKConfiguration) -> None:
36
- """Create a datasets sub-client.
35
+ This class is primarily intended for internal use within the SDK. Users are
36
+ highly encouraged to access resource-specific functionality via
37
+ :class:`arize.ArizeClient`.
37
38
 
38
- The datasets client is a thin wrapper around the generated REST API client,
39
- using the shared generated API client owned by `SDKConfiguration`.
39
+ The datasets client is a thin wrapper around the generated REST API client,
40
+ using the shared generated API client owned by
41
+ :class:`arize.config.SDKConfiguration`.
42
+ """
40
43
 
44
+ def __init__(self, *, sdk_config: SDKConfiguration) -> None:
45
+ """
41
46
  Args:
42
47
  sdk_config: Resolved SDK configuration.
43
- """
48
+ """ # noqa: D205, D212
44
49
  self._sdk_config = sdk_config
45
50
 
46
51
  # Import at runtime so it's still lazy and extras-gated by the parent
@@ -49,10 +49,13 @@ class EmbeddingGeneratorForNLPSequenceClassification(NLPEmbeddingGenerator):
49
49
  ) -> pd.Series:
50
50
  """Obtain embedding vectors from your text data using pre-trained large language models.
51
51
 
52
- :param text_col: a pandas Series containing the different pieces of text.
53
- :param class_label_col: if this column is passed, the sentence "The classification label
54
- is <class_label>" will be appended to the text in the `text_col`.
55
- :return: a pandas Series containing the embedding vectors.
52
+ Args:
53
+ text_col: A pandas Series containing the different pieces of text.
54
+ class_label_col: If this column is passed, the sentence "The classification label
55
+ is <class_label>" will be appended to the text in the `text_col`.
56
+
57
+ Returns:
58
+ A pandas Series containing the embedding vectors.
56
59
  """
57
60
  if not isinstance(text_col, pd.Series):
58
61
  raise TypeError("text_col must be a pandas Series")
@@ -110,8 +113,11 @@ class EmbeddingGeneratorForNLPSummarization(NLPEmbeddingGenerator):
110
113
  ) -> pd.Series:
111
114
  """Obtain embedding vectors from your text data using pre-trained large language models.
112
115
 
113
- :param text_col: a pandas Series containing the different pieces of text.
114
- :return: a pandas Series containing the embedding vectors.
116
+ Args:
117
+ text_col: A pandas Series containing the different pieces of text.
118
+
119
+ Returns:
120
+ A pandas Series containing the embedding vectors.
115
121
  """
116
122
  if not isinstance(text_col, pd.Series):
117
123
  raise TypeError("text_col must be a pandas Series")
@@ -11,7 +11,7 @@ from arize.embeddings.constants import (
11
11
  IMPORT_ERROR_MESSAGE,
12
12
  )
13
13
  from arize.embeddings.usecases import UseCases
14
- from arize.types import is_list_of
14
+ from arize.utils.types import is_list_of
15
15
 
16
16
  try:
17
17
  from datasets import Dataset
@@ -79,16 +79,19 @@ class EmbeddingGeneratorForTabularFeatures(NLPEmbeddingGenerator):
79
79
  Prompts are generated from your `selected_columns` and passed to a pre-trained
80
80
  large language model for embedding vector computation.
81
81
 
82
- :param df: pandas DataFrame containing the tabular data, not all columns will be
83
- considered, see `selected_columns`.
84
- :param selected_columns: columns to be considered to construct the prompt to be passed to
85
- the LLM.
86
- :param col_name_map: mapping between selected column names and a more verbose description of
87
- the name. This helps the LLM understand the features better.
88
- :param return_prompt_col: if set to True, an extra pandas Series will be returned
89
- containing the constructed prompts. Defaults to False.
90
- :return: a pandas Series containing the embedding vectors and, if `return_prompt_col` is
91
- set to True, a pandas Series containing the prompts created from tabular features.
82
+ Args:
83
+ df: Pandas DataFrame containing the tabular data. Not all columns will be
84
+ considered, see `selected_columns`.
85
+ selected_columns: Columns to be considered to construct the prompt to be passed to
86
+ the LLM.
87
+ col_name_map: Mapping between selected column names and a more verbose description of
88
+ the name. This helps the LLM understand the features better.
89
+ return_prompt_col: If set to True, an extra pandas Series will be returned
90
+ containing the constructed prompts. Defaults to False.
91
+
92
+ Returns:
93
+ A pandas Series containing the embedding vectors and, if `return_prompt_col` is
94
+ set to True, a pandas Series containing the prompts created from tabular features.
92
95
  """
93
96
  if col_name_map is None:
94
97
  col_name_map = {}
@@ -0,0 +1,13 @@
1
+ """Experiment tracking and evaluation functionality for the Arize SDK."""
2
+
3
+ from arize.experiments.evaluators.types import (
4
+ EvaluationResult,
5
+ EvaluationResultFieldNames,
6
+ )
7
+ from arize.experiments.types import ExperimentTaskResultFieldNames
8
+
9
+ __all__ = [
10
+ "EvaluationResult",
11
+ "EvaluationResultFieldNames",
12
+ "ExperimentTaskResultFieldNames",
13
+ ]