arize-phoenix 3.19.3__tar.gz → 3.19.4__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.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

Files changed (185) hide show
  1. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/PKG-INFO +3 -3
  2. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/README.md +1 -1
  3. arize_phoenix-3.19.4/examples/manually-instrumented-chatbot/chat/app.py +189 -0
  4. arize_phoenix-3.19.4/examples/manually-instrumented-chatbot/chat/types.py +18 -0
  5. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/pyproject.toml +1 -1
  6. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/app.py +1 -2
  7. arize_phoenix-3.19.4/src/phoenix/storage/__init__.py +0 -0
  8. arize_phoenix-3.19.4/src/phoenix/version.py +1 -0
  9. arize_phoenix-3.19.3/src/phoenix/version.py +0 -1
  10. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/.gitignore +0 -0
  11. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/IP_NOTICE +0 -0
  12. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/LICENSE +0 -0
  13. {arize_phoenix-3.19.3/src/phoenix/core → arize_phoenix-3.19.4/examples/manually-instrumented-chatbot/chat}/__init__.py +0 -0
  14. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/__init__.py +0 -0
  15. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/config.py +0 -0
  16. {arize_phoenix-3.19.3/src/phoenix/datasets → arize_phoenix-3.19.4/src/phoenix/core}/__init__.py +0 -0
  17. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/embedding_dimension.py +0 -0
  18. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/model.py +0 -0
  19. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/model_schema.py +0 -0
  20. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/model_schema_adapter.py +0 -0
  21. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/project.py +0 -0
  22. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/core/traces.py +0 -0
  23. {arize_phoenix-3.19.3/src/phoenix/experimental → arize_phoenix-3.19.4/src/phoenix/datasets}/__init__.py +0 -0
  24. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datasets/dataset.py +0 -0
  25. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datasets/errors.py +0 -0
  26. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datasets/fixtures.py +0 -0
  27. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datasets/schema.py +0 -0
  28. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datasets/validation.py +0 -0
  29. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/datetime_utils.py +0 -0
  30. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/exceptions.py +0 -0
  31. {arize_phoenix-3.19.3/src/phoenix/server → arize_phoenix-3.19.4/src/phoenix/experimental}/__init__.py +0 -0
  32. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/__init__.py +0 -0
  33. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/evaluators.py +0 -0
  34. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/functions/__init__.py +0 -0
  35. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/functions/classify.py +0 -0
  36. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/functions/executor.py +0 -0
  37. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/functions/generate.py +0 -0
  38. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/functions/processing.py +0 -0
  39. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/__init__.py +0 -0
  40. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/anthropic.py +0 -0
  41. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/base.py +0 -0
  42. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/bedrock.py +0 -0
  43. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/litellm.py +0 -0
  44. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/openai.py +0 -0
  45. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/rate_limiters.py +0 -0
  46. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/vertex.py +0 -0
  47. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/models/vertexai.py +0 -0
  48. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/retrievals.py +0 -0
  49. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/templates/__init__.py +0 -0
  50. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/templates/default_templates.py +0 -0
  51. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/templates/template.py +0 -0
  52. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/utils/__init__.py +0 -0
  53. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/experimental/evals/utils/threads.py +0 -0
  54. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/README.md +0 -0
  55. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/__init__.py +0 -0
  56. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/binning.py +0 -0
  57. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/metrics.py +0 -0
  58. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/mixins.py +0 -0
  59. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/retrieval_metrics.py +0 -0
  60. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/timeseries.py +0 -0
  61. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/metrics/wrappers.py +0 -0
  62. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/pointcloud/__init__.py +0 -0
  63. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/pointcloud/clustering.py +0 -0
  64. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/pointcloud/pointcloud.py +0 -0
  65. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/pointcloud/projectors.py +0 -0
  66. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/pointcloud/umap_parameters.py +0 -0
  67. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/py.typed +0 -0
  68. {arize_phoenix-3.19.3/src/phoenix/server/api → arize_phoenix-3.19.4/src/phoenix/server}/__init__.py +0 -0
  69. {arize_phoenix-3.19.3/src/phoenix/server/api/input_types → arize_phoenix-3.19.4/src/phoenix/server/api}/__init__.py +0 -0
  70. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/context.py +0 -0
  71. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/helpers.py +0 -0
  72. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/ClusterInput.py +0 -0
  73. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/Coordinates.py +0 -0
  74. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/DataQualityMetricInput.py +0 -0
  75. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/DimensionFilter.py +0 -0
  76. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/DimensionInput.py +0 -0
  77. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/Granularity.py +0 -0
  78. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/PerformanceMetricInput.py +0 -0
  79. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/SpanSort.py +0 -0
  80. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/input_types/TimeRange.py +0 -0
  81. {arize_phoenix-3.19.3/src/phoenix/server/api/routers → arize_phoenix-3.19.4/src/phoenix/server/api/input_types}/__init__.py +0 -0
  82. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/interceptor.py +0 -0
  83. {arize_phoenix-3.19.3/src/phoenix/server/api/types → arize_phoenix-3.19.4/src/phoenix/server/api/routers}/__init__.py +0 -0
  84. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/routers/evaluation_handler.py +0 -0
  85. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/routers/span_handler.py +0 -0
  86. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/routers/trace_handler.py +0 -0
  87. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/routers/utils.py +0 -0
  88. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/schema.py +0 -0
  89. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Cluster.py +0 -0
  90. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DataQualityMetric.py +0 -0
  91. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Dataset.py +0 -0
  92. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DatasetRole.py +0 -0
  93. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DatasetValues.py +0 -0
  94. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Dimension.py +0 -0
  95. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DimensionDataType.py +0 -0
  96. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DimensionShape.py +0 -0
  97. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DimensionType.py +0 -0
  98. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DimensionWithValue.py +0 -0
  99. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DocumentEvaluationSummary.py +0 -0
  100. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/DocumentRetrievalMetrics.py +0 -0
  101. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/EmbeddingDimension.py +0 -0
  102. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/EmbeddingMetadata.py +0 -0
  103. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Evaluation.py +0 -0
  104. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/EvaluationSummary.py +0 -0
  105. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Event.py +0 -0
  106. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/EventMetadata.py +0 -0
  107. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/ExportEventsMutation.py +0 -0
  108. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/ExportedFile.py +0 -0
  109. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Functionality.py +0 -0
  110. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/MimeType.py +0 -0
  111. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Model.py +0 -0
  112. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/NumericRange.py +0 -0
  113. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/PerformanceMetric.py +0 -0
  114. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Project.py +0 -0
  115. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/PromptResponse.py +0 -0
  116. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Retrieval.py +0 -0
  117. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/ScalarDriftMetricEnum.py +0 -0
  118. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Segments.py +0 -0
  119. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/SortDir.py +0 -0
  120. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Span.py +0 -0
  121. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/TimeSeries.py +0 -0
  122. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/Trace.py +0 -0
  123. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/UMAPPoints.py +0 -0
  124. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/ValidationResult.py +0 -0
  125. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/VectorDriftMetricEnum.py +0 -0
  126. {arize_phoenix-3.19.3/src/phoenix/server/templates → arize_phoenix-3.19.4/src/phoenix/server/api/types}/__init__.py +0 -0
  127. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/node.py +0 -0
  128. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/api/types/pagination.py +0 -0
  129. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/main.py +0 -0
  130. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/prometheus.py +0 -0
  131. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-114x114.png +0 -0
  132. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-120x120.png +0 -0
  133. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-144x144.png +0 -0
  134. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-152x152.png +0 -0
  135. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-180x180.png +0 -0
  136. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-72x72.png +0 -0
  137. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon-76x76.png +0 -0
  138. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/apple-touch-icon.png +0 -0
  139. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/favicon.ico +0 -0
  140. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/index.css +0 -0
  141. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/index.js +0 -0
  142. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/static/modernizr.js +0 -0
  143. {arize_phoenix-3.19.3/src/phoenix/session → arize_phoenix-3.19.4/src/phoenix/server/templates}/__init__.py +0 -0
  144. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/templates/index.html +0 -0
  145. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/server/thread_server.py +0 -0
  146. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/services.py +0 -0
  147. {arize_phoenix-3.19.3/src/phoenix/storage → arize_phoenix-3.19.4/src/phoenix/session}/__init__.py +0 -0
  148. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/session/client.py +0 -0
  149. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/session/data_extractor.py +0 -0
  150. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/session/evaluation.py +0 -0
  151. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/session/session.py +0 -0
  152. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/storage/span_store/__init__.py +0 -0
  153. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/storage/span_store/text_file.py +0 -0
  154. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/__init__.py +0 -0
  155. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/dsl/__init__.py +0 -0
  156. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/dsl/filter.py +0 -0
  157. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/dsl/helpers.py +0 -0
  158. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/dsl/missing.py +0 -0
  159. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/dsl/query.py +0 -0
  160. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/errors.py +0 -0
  161. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/evaluation_conventions.py +0 -0
  162. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/exporter.py +0 -0
  163. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/fixtures.py +0 -0
  164. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/langchain/__init__.py +0 -0
  165. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/langchain/instrumentor.py +0 -0
  166. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/llama_index/__init__.py +0 -0
  167. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/llama_index/callback.py +0 -0
  168. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/openai/__init__.py +0 -0
  169. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/openai/instrumentor.py +0 -0
  170. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/otel.py +0 -0
  171. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/projects.py +0 -0
  172. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/schemas.py +0 -0
  173. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/span_evaluations.py +0 -0
  174. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/span_json_decoder.py +0 -0
  175. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/span_json_encoder.py +0 -0
  176. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/trace_dataset.py +0 -0
  177. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/utils.py +0 -0
  178. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/v1/__init__.py +0 -0
  179. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/v1/evaluation_pb2.py +0 -0
  180. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/trace/v1/evaluation_pb2.pyi +0 -0
  181. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/utilities/__init__.py +0 -0
  182. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/utilities/error_handling.py +0 -0
  183. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/utilities/logging.py +0 -0
  184. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/utilities/project.py +0 -0
  185. {arize_phoenix-3.19.3 → arize_phoenix-3.19.4}/src/phoenix/utilities/span_store.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arize-phoenix
3
- Version: 3.19.3
3
+ Version: 3.19.4
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://docs.arize.com/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
7
7
  Project-URL: Source, https://github.com/Arize-ai/phoenix
8
8
  Author-email: Arize AI <phoenix-devs@arize.com>
9
- License-Expression: Elastic-2.0
9
+ License: Elastic-2.0
10
10
  License-File: IP_NOTICE
11
11
  License-File: LICENSE
12
12
  Keywords: Explainability,Monitoring,Observability
@@ -100,7 +100,7 @@ Description-Content-Type: text/markdown
100
100
  <a target="_blank" href="https://pypi.org/project/arize-phoenix/">
101
101
  <img src="https://img.shields.io/pypi/pyversions/arize-phoenix">
102
102
  </a>
103
- <a target="_blank" href="https://hub.docker.com/repository/docker/arizephoenix/phoenix/general">
103
+ <a target="_blank" href="https://hub.docker.com/r/arizephoenix/phoenix/tags">
104
104
  <img src="https://img.shields.io/docker/v/arizephoenix/phoenix?sort=semver&logo=docker&label=image&color=blue">
105
105
  </a>
106
106
  </p>
@@ -22,7 +22,7 @@
22
22
  <a target="_blank" href="https://pypi.org/project/arize-phoenix/">
23
23
  <img src="https://img.shields.io/pypi/pyversions/arize-phoenix">
24
24
  </a>
25
- <a target="_blank" href="https://hub.docker.com/repository/docker/arizephoenix/phoenix/general">
25
+ <a target="_blank" href="https://hub.docker.com/r/arizephoenix/phoenix/tags">
26
26
  <img src="https://img.shields.io/docker/v/arizephoenix/phoenix?sort=semver&logo=docker&label=image&color=blue">
27
27
  </a>
28
28
  </p>
@@ -0,0 +1,189 @@
1
+ import json
2
+ import os
3
+ from typing import Any, Dict, Iterator, List, Tuple
4
+
5
+ from fastapi import FastAPI, HTTPException
6
+ from httpx import AsyncClient
7
+ from openinference.semconv.trace import (
8
+ MessageAttributes,
9
+ OpenInferenceMimeTypeValues,
10
+ OpenInferenceSpanKindValues,
11
+ SpanAttributes,
12
+ )
13
+ from opentelemetry import trace as trace_api
14
+ from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
15
+ from opentelemetry.sdk import trace as trace_sdk
16
+ from opentelemetry.sdk.trace.export import (
17
+ SimpleSpanProcessor,
18
+ )
19
+
20
+ from chat.types import Message, MessagesPayload, MessagesResponse
21
+
22
+ endpoint = "http://127.0.0.1:6006/v1/traces"
23
+ tracer_provider = trace_sdk.TracerProvider()
24
+ tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))
25
+ trace_api.set_tracer_provider(tracer_provider)
26
+ tracer = trace_api.get_tracer(__name__)
27
+
28
+
29
+ def getenv_or_raise(key: str) -> str:
30
+ if not (value := os.getenv(key)):
31
+ raise ValueError(f"Please set the {key} environment variable.")
32
+ return value
33
+
34
+
35
+ OPENAI_API_KEY = getenv_or_raise("OPENAI_API_KEY")
36
+ OPENAI_API_URL = "https://api.openai.com/v1/chat/completions"
37
+ OPENAI_MODEL = "gpt-4"
38
+
39
+ http_client = AsyncClient()
40
+ app = FastAPI()
41
+
42
+
43
+ class OpenAIException(HTTPException):
44
+ pass
45
+
46
+
47
+ @app.post("/messages/")
48
+ async def messages(messages_payload: MessagesPayload) -> MessagesResponse:
49
+ messages = messages_payload.messages
50
+ invocation_parameters = {"temperature": 0.1}
51
+ openai_payload = {
52
+ "model": OPENAI_MODEL,
53
+ **invocation_parameters,
54
+ "messages": [message.model_dump() for message in messages],
55
+ }
56
+ with tracer.start_as_current_span("OpenAI Async Chat Completion") as span:
57
+ for attribute_key, attribute_value in (
58
+ *_llm_span_kind_attributes(),
59
+ *_llm_model_name_attributes(OPENAI_MODEL),
60
+ *_llm_invocation_parameters_attributes(invocation_parameters),
61
+ *_input_attributes(openai_payload),
62
+ *_llm_input_messages_attributes(messages),
63
+ ):
64
+ span.set_attribute(attribute_key, attribute_value)
65
+ response = await http_client.post(
66
+ OPENAI_API_URL,
67
+ headers={
68
+ "Content-Type": "application/json",
69
+ "Authorization": f"Bearer {OPENAI_API_KEY}",
70
+ },
71
+ json=openai_payload,
72
+ )
73
+ if not (200 <= response.status_code < 300):
74
+ raise OpenAIException(
75
+ status_code=500, detail=response.content.decode("utf-8")
76
+ )
77
+ span.set_status(trace_api.StatusCode.OK)
78
+ response_data = response.json()
79
+ assistant_message_content = response_data["choices"][0]["message"]["content"]
80
+ assistant_message = Message(
81
+ role="assistant",
82
+ content=assistant_message_content,
83
+ )
84
+ for (
85
+ attribute_key,
86
+ attribute_value,
87
+ ) in (
88
+ *_output_attributes(response_data),
89
+ *_llm_output_message_attributes(assistant_message),
90
+ *_llm_token_usage_attributes(response_data),
91
+ ):
92
+ span.set_attribute(attribute_key, attribute_value)
93
+ return MessagesResponse(message=assistant_message)
94
+
95
+
96
+ def _llm_span_kind_attributes() -> Iterator[Tuple[str, str]]:
97
+ """
98
+ Yields the OpenInference span kind attribute for LLMs.
99
+ """
100
+ yield SpanAttributes.OPENINFERENCE_SPAN_KIND, OpenInferenceSpanKindValues.LLM.value
101
+
102
+
103
+ def _llm_model_name_attributes(model_name: str) -> Iterator[Tuple[str, str]]:
104
+ """
105
+ Yields the OpenInference model name attribute.
106
+ """
107
+ yield SpanAttributes.LLM_MODEL_NAME, model_name
108
+
109
+
110
+ def _llm_invocation_parameters_attributes(
111
+ invocation_parameters: Dict[str, Any],
112
+ ) -> Iterator[Tuple[str, str]]:
113
+ """
114
+ Yields the OpenInference invocation parameters attribute as a JSON string.
115
+ """
116
+ yield SpanAttributes.LLM_INVOCATION_PARAMETERS, json.dumps(invocation_parameters)
117
+
118
+
119
+ def _input_attributes(payload: Any) -> Iterator[Tuple[str, str]]:
120
+ """
121
+ Yields the OpenInference input value attribute as a JSON string if the
122
+ payload can be serialized as JSON, otherwise as a string.
123
+ """
124
+ try:
125
+ yield SpanAttributes.INPUT_VALUE, json.dumps(payload)
126
+ yield SpanAttributes.INPUT_MIME_TYPE, OpenInferenceMimeTypeValues.JSON.value
127
+ except json.JSONDecodeError:
128
+ yield SpanAttributes.INPUT_VALUE, str(payload)
129
+ yield SpanAttributes.INPUT_MIME_TYPE, OpenInferenceMimeTypeValues.TEXT.value
130
+
131
+
132
+ def _llm_input_messages_attributes(
133
+ messages: List[Message],
134
+ ) -> Iterator[Tuple[str, str]]:
135
+ """
136
+ Yields the OpenInference input messages attributes for each message in the list.
137
+ """
138
+ for messages_index, message in enumerate(messages):
139
+ yield (
140
+ f"{SpanAttributes.LLM_INPUT_MESSAGES}.{messages_index}.{MessageAttributes.MESSAGE_ROLE}",
141
+ message.role,
142
+ )
143
+ yield (
144
+ f"{SpanAttributes.LLM_INPUT_MESSAGES}.{messages_index}.{MessageAttributes.MESSAGE_CONTENT}",
145
+ message.content,
146
+ )
147
+
148
+
149
+ def _output_attributes(payload: Any) -> Iterator[Tuple[str, str]]:
150
+ """
151
+ Yields the OpenInference output value attribute as a JSON string if the
152
+ payload can be serialized as JSON, otherwise as a string.
153
+ """
154
+ try:
155
+ yield SpanAttributes.OUTPUT_VALUE, json.dumps(payload)
156
+ yield SpanAttributes.OUTPUT_MIME_TYPE, OpenInferenceMimeTypeValues.JSON.value
157
+ except json.JSONDecodeError:
158
+ yield SpanAttributes.OUTPUT_VALUE, str(payload)
159
+ yield SpanAttributes.OUTPUT_MIME_TYPE, OpenInferenceMimeTypeValues.TEXT.value
160
+
161
+
162
+ def _llm_output_message_attributes(message: Message) -> Iterator[Tuple[str, str]]:
163
+ """
164
+ Yields the OpenInference output message attributes.
165
+ """
166
+ yield (
167
+ f"{SpanAttributes.LLM_OUTPUT_MESSAGES}.0.{MessageAttributes.MESSAGE_ROLE}",
168
+ message.role,
169
+ )
170
+ yield (
171
+ f"{SpanAttributes.LLM_OUTPUT_MESSAGES}.0.{MessageAttributes.MESSAGE_CONTENT}",
172
+ message.content,
173
+ )
174
+
175
+
176
+ def _llm_token_usage_attributes(
177
+ response_data: Dict[str, Any],
178
+ ) -> Iterator[Tuple[str, int]]:
179
+ """
180
+ Parses and yields token usage attributes from the response data.
181
+ """
182
+ if not isinstance((usage := response_data.get("usage")), dict):
183
+ return
184
+ if prompt_tokens := usage.get("prompt_tokens"):
185
+ yield SpanAttributes.LLM_TOKEN_COUNT_PROMPT, prompt_tokens
186
+ if completion_tokens := usage.get("completion_tokens"):
187
+ yield SpanAttributes.LLM_TOKEN_COUNT_COMPLETION, completion_tokens
188
+ if total_tokens := usage.get("total_tokens"):
189
+ yield SpanAttributes.LLM_TOKEN_COUNT_TOTAL, total_tokens
@@ -0,0 +1,18 @@
1
+ from typing import List, Literal
2
+
3
+ from pydantic import BaseModel
4
+
5
+ Role = Literal["system", "assistant", "user"]
6
+
7
+
8
+ class Message(BaseModel):
9
+ role: Role
10
+ content: str
11
+
12
+
13
+ class MessagesPayload(BaseModel):
14
+ messages: List[Message]
15
+
16
+
17
+ class MessagesResponse(BaseModel):
18
+ message: Message
@@ -3,7 +3,7 @@ name = "arize-phoenix"
3
3
  description = "AI Observability and Evaluation"
4
4
  readme = "README.md"
5
5
  requires-python = ">=3.8, <3.13"
6
- license = "Elastic-2.0"
6
+ license = {text="Elastic-2.0"}
7
7
  license-files = { paths = ["LICENSE", "IP_NOTICE"] }
8
8
  keywords = [
9
9
  "Observability",
@@ -10,7 +10,7 @@ from starlette.middleware import Middleware
10
10
  from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
11
11
  from starlette.requests import Request
12
12
  from starlette.responses import FileResponse, PlainTextResponse, Response
13
- from starlette.routing import Mount, Route, WebSocketRoute
13
+ from starlette.routing import Mount, Route
14
14
  from starlette.staticfiles import StaticFiles
15
15
  from starlette.templating import Jinja2Templates
16
16
  from starlette.types import Scope
@@ -205,7 +205,6 @@ def create_app(
205
205
  "/graphql",
206
206
  graphql,
207
207
  ),
208
- WebSocketRoute("/graphql", graphql),
209
208
  Mount(
210
209
  "/",
211
210
  app=Static(
File without changes
@@ -0,0 +1 @@
1
+ __version__ = "3.19.4"
@@ -1 +0,0 @@
1
- __version__ = "3.19.3"
File without changes
File without changes