arize-phoenix 8.3.0__tar.gz → 8.4.1__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.
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/PKG-INFO +2 -1
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/README.md +1 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/models.py +68 -2
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/context.py +2 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/__init__.py +2 -0
- arize_phoenix-8.4.1/src/phoenix/server/api/dataloaders/num_child_spans.py +35 -0
- arize_phoenix-8.4.1/src/phoenix/server/api/dataloaders/span_descendants.py +103 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/SpanSort.py +1 -1
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/queries.py +72 -3
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Span.py +31 -4
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/app.py +2 -0
- arize_phoenix-8.4.1/src/phoenix/server/static/.vite/manifest.json +87 -0
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/components-T5K9z49d.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/components-CRlSj2mp.js +166 -167
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/index-DvHwFF8e.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/index-YUNmSSFA.js +9 -9
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/pages-CY3ZXSHj.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/pages-o_YaLL0c.js +635 -609
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/vendor-Cqfydjep.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/vendor-CRRq3WgM.js +116 -116
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/vendor-arizeai-WnerlUPN.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/vendor-arizeai-Dq64X_0o.js +1 -1
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/vendor-codemirror-D-ZZKLFq.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/vendor-codemirror-C1oevlym.js +1 -1
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/vendor-recharts-KY97ZPfK.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/vendor-recharts-CPj01S89.js +1 -1
- arize_phoenix-8.3.0/src/phoenix/server/static/assets/vendor-shiki-D5K9GnFn.js → arize_phoenix-8.4.1/src/phoenix/server/static/assets/vendor-shiki-aY7rz1pm.js +1 -1
- arize_phoenix-8.4.1/src/phoenix/version.py +1 -0
- arize_phoenix-8.3.0/src/phoenix/server/api/dataloaders/span_descendants.py +0 -66
- arize_phoenix-8.3.0/src/phoenix/server/static/.vite/manifest.json +0 -87
- arize_phoenix-8.3.0/src/phoenix/version.py +0 -1
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/.gitignore +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/IP_NOTICE +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/LICENSE +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/pyproject.toml +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/auth.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/config.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/core/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/core/embedding_dimension.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/core/model.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/core/model_schema.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/core/model_schema_adapter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/datetime_utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/README.md +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/alembic.ini +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/bulk_inserter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/engines.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/enums.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/facilitator.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/helpers.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/constants.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/dataset.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/document_annotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/evaluation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/helpers.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/span.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/span_annotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/trace_annotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/insertion/types.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrate.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/data_migration_scripts/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/data_migration_scripts/populate_project_sessions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/env.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/script.py.mako +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/10460e46d750_datasets.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/3be8647b87d8_add_token_columns_to_spans_table.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/4ded9e43755f_create_project_sessions_table.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/bc8fea3c2bc8_add_prompt_tables.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/cd164e83824f_users_and_tokens.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/migrations/versions/cf03bd6bae1d_init.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/types/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/types/identifier.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/db/types/model_provider.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/exceptions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/evaluators/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/evaluators/base.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/evaluators/code_evaluators.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/evaluators/llm_evaluators.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/evaluators/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/functions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/tracing.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/types.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/experiments/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/errors.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/fixtures.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/inferences.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/schema.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/inferences/validation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/logging/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/logging/_config.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/logging/_filter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/logging/_formatter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/README.md +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/binning.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/metrics.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/mixins.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/retrieval_metrics.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/timeseries.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/metrics/wrappers.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/pointcloud/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/pointcloud/clustering.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/pointcloud/pointcloud.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/pointcloud/projectors.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/pointcloud/umap_parameters.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/py.typed +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/README.md +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/auth.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/annotation_summaries.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/average_experiment_run_latency.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/cache/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/cache/two_tier_cache.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/dataset_example_revisions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/dataset_example_spans.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/document_evaluation_summaries.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/document_evaluations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/document_retrieval_metrics.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/experiment_annotation_summaries.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/experiment_error_rates.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/experiment_run_annotations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/experiment_run_counts.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/experiment_sequence_number.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/latency_ms_quantile.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/min_start_or_max_end_times.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/project_by_name.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/prompt_version_sequence_number.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/record_counts.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/session_io.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/session_num_traces.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/session_num_traces_with_error.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/session_token_usages.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/session_trace_latency_ms_quantile.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/span_annotations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/span_by_id.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/span_dataset_examples.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/span_projects.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/table_fields.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/token_counts.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/trace_by_trace_ids.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/trace_root_spans.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/user_roles.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/dataloaders/users.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/exceptions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/dataset_helpers.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/experiment_run_filters.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/playground_clients.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/playground_registry.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/playground_spans.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/prompts/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/prompts/conversions/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/prompts/conversions/anthropic.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/prompts/conversions/openai.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/helpers/prompts/models.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/AddExamplesToDatasetInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/AddSpansToDatasetInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/ChatCompletionInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/ChatCompletionMessageInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/ClearProjectInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/ClusterInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/Coordinates.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/CreateDatasetInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/CreateSpanAnnotationInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/CreateTraceAnnotationInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DataQualityMetricInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DatasetExampleInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DatasetSort.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DatasetVersionSort.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DeleteAnnotationsInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DeleteDatasetExamplesInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DeleteDatasetInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DeleteExperimentsInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DimensionFilter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/DimensionInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/GenerativeModelInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/Granularity.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/InvocationParameters.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PatchAnnotationInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PatchDatasetExamplesInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PatchDatasetInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PerformanceMetricInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/ProjectSessionSort.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PromptTemplateOptions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/PromptVersionInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/SpanAnnotationSort.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/TimeRange.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/TraceAnnotationSort.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/UserRoleInput.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/input_types/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/interceptor.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/api_key_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/chat_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/dataset_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/experiment_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/export_events_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/project_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/prompt_label_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/prompt_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/prompt_version_tag_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/span_annotations_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/trace_annotations_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/mutations/user_mutations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/openapi/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/openapi/main.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/openapi/schema.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/auth.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/embeddings.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/oauth2.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/datasets.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/evaluations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/experiment_evaluations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/experiment_runs.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/experiments.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/models.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/prompts.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/spans.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/traces.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/routers/v1/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/schema.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/subscriptions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Annotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/AnnotationSummary.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/AnnotatorKind.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ApiKey.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/AuthMethod.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ChatCompletionMessageRole.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ChatCompletionSubscriptionPayload.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Cluster.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/CreateDatasetPayload.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DataQualityMetric.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Dataset.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DatasetExample.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DatasetExampleRevision.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DatasetValues.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DatasetVersion.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Dimension.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DimensionDataType.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DimensionShape.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DimensionType.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DimensionWithValue.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DocumentEvaluationSummary.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/DocumentRetrievalMetrics.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/EmbeddingDimension.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/EmbeddingMetadata.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Evaluation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/EvaluationSummary.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Event.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/EventMetadata.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExampleRevisionInterface.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Experiment.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExperimentAnnotationSummary.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExperimentComparison.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExperimentRun.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExperimentRunAnnotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ExportedFile.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Functionality.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/GenerativeModel.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/GenerativeProvider.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Identifier.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Inferences.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/InferencesRole.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/LabelFraction.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/MimeType.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Model.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/NumericRange.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PerformanceMetric.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Project.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ProjectSession.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Prompt.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PromptLabel.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PromptResponse.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PromptVersion.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PromptVersionTag.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/PromptVersionTemplate.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ResponseFormat.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Retrieval.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ScalarDriftMetricEnum.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Segments.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/SortDir.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/SpanAnnotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/SpanIOValue.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/SystemApiKey.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/TimeSeries.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/TokenUsage.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ToolDefinition.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/Trace.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/TraceAnnotation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/UMAPPoints.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/User.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/UserApiKey.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/UserRole.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/ValidationResult.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/VectorDriftMetricEnum.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/node.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/types/pagination.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/api/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/bearer_auth.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/dml_event.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/dml_event_handler.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/email/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/email/sender.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/email/templates/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/email/templates/password_reset.html +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/email/types.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/grpc_server.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/jwt_store.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/main.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/oauth2.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/openapi/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/prometheus.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/rate_limiters.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-114x114.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-120x120.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-144x144.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-152x152.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-180x180.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-72x72.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon-76x76.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/apple-touch-icon.png +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/assets/vendor-Cg6lcjUC.css +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/assets/vendor-three-C-AGeJYv.js +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/favicon.ico +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/static/modernizr.js +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/telemetry.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/templates/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/templates/index.html +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/thread_server.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/server/types.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/services.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/session/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/session/client.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/session/data_extractor.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/session/evaluation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/session/session.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/settings.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/attributes.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/dsl/README.md +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/dsl/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/dsl/filter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/dsl/helpers.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/dsl/query.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/errors.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/evaluation_conventions.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/exporter.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/fixtures.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/otel.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/projects.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/schemas.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/span_evaluations.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/span_json_decoder.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/span_json_encoder.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/trace_dataset.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/utils.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/v1/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/v1/evaluation_pb2.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/trace/v1/evaluation_pb2.pyi +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/__init__.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/client.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/deprecation.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/error_handling.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/json.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/logging.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/project.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/re.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/span_store.py +0 -0
- {arize_phoenix-8.3.0 → arize_phoenix-8.4.1}/src/phoenix/utilities/template_formatters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: arize-phoenix
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.4.1
|
|
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
|
|
@@ -162,6 +162,7 @@ Phoenix is an open-source AI observability platform designed for experimentation
|
|
|
162
162
|
- [**_Datasets_**](https://docs.arize.com/phoenix/datasets-and-experiments/overview-datasets) - Create versioned datasets of examples for experimentation, evaluation, and fine-tuning.
|
|
163
163
|
- [**_Experiments_**](https://docs.arize.com/phoenix/datasets-and-experiments/overview-datasets#experiments) - Track and evaluate changes to prompts, LLMs, and retrieval.
|
|
164
164
|
- [**_Playground_**](https://docs.arize.com/phoenix/prompt-engineering/overview-prompts)- Optimize prompts, compare models, adjust parameters, and replay traced LLM calls.
|
|
165
|
+
- [**_Prompt Mangement_**](https://docs.arize.com/phoenix/prompt-engineering/overview-prompts/prompt-management)- Manage and test prompt changes systematically using version control, tagging, and experimentation.
|
|
165
166
|
|
|
166
167
|
Phoenix is vendor and language agnostic with out-of-the-box support for popular frameworks (🦙[LlamaIndex](https://docs.arize.com/phoenix/tracing/integrations-tracing/llamaindex), 🦜⛓[LangChain](https://docs.arize.com/phoenix/tracing/integrations-tracing/langchain), [Haystack](https://docs.arize.com/phoenix/tracing/integrations-tracing/haystack), 🧩[DSPy](https://docs.arize.com/phoenix/tracing/integrations-tracing/dspy)) and LLM providers ([OpenAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/openai), [Bedrock](https://docs.arize.com/phoenix/tracing/integrations-tracing/bedrock), [MistralAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/mistralai), [VertexAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/vertexai), [LiteLLM](https://docs.arize.com/phoenix/tracing/integrations-tracing/litellm), and more). For details on auto-instrumentation, check out the [OpenInference](https://github.com/Arize-ai/openinference) project.
|
|
167
168
|
|
|
@@ -34,6 +34,7 @@ Phoenix is an open-source AI observability platform designed for experimentation
|
|
|
34
34
|
- [**_Datasets_**](https://docs.arize.com/phoenix/datasets-and-experiments/overview-datasets) - Create versioned datasets of examples for experimentation, evaluation, and fine-tuning.
|
|
35
35
|
- [**_Experiments_**](https://docs.arize.com/phoenix/datasets-and-experiments/overview-datasets#experiments) - Track and evaluate changes to prompts, LLMs, and retrieval.
|
|
36
36
|
- [**_Playground_**](https://docs.arize.com/phoenix/prompt-engineering/overview-prompts)- Optimize prompts, compare models, adjust parameters, and replay traced LLM calls.
|
|
37
|
+
- [**_Prompt Mangement_**](https://docs.arize.com/phoenix/prompt-engineering/overview-prompts/prompt-management)- Manage and test prompt changes systematically using version control, tagging, and experimentation.
|
|
37
38
|
|
|
38
39
|
Phoenix is vendor and language agnostic with out-of-the-box support for popular frameworks (🦙[LlamaIndex](https://docs.arize.com/phoenix/tracing/integrations-tracing/llamaindex), 🦜⛓[LangChain](https://docs.arize.com/phoenix/tracing/integrations-tracing/langchain), [Haystack](https://docs.arize.com/phoenix/tracing/integrations-tracing/haystack), 🧩[DSPy](https://docs.arize.com/phoenix/tracing/integrations-tracing/dspy)) and LLM providers ([OpenAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/openai), [Bedrock](https://docs.arize.com/phoenix/tracing/integrations-tracing/bedrock), [MistralAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/mistralai), [VertexAI](https://docs.arize.com/phoenix/tracing/integrations-tracing/vertexai), [LiteLLM](https://docs.arize.com/phoenix/tracing/integrations-tracing/litellm), and more). For details on auto-instrumentation, check out the [OpenInference](https://github.com/Arize-ai/openinference) project.
|
|
39
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from datetime import datetime, timezone
|
|
2
2
|
from enum import Enum
|
|
3
|
-
from typing import Any, Optional, Sequence, TypedDict
|
|
3
|
+
from typing import Any, Iterable, Optional, Sequence, TypedDict, cast
|
|
4
4
|
|
|
5
5
|
import sqlalchemy.sql as sql
|
|
6
6
|
from openinference.semconv.trace import RerankerAttributes, SpanAttributes
|
|
@@ -39,7 +39,7 @@ from sqlalchemy.orm import (
|
|
|
39
39
|
mapped_column,
|
|
40
40
|
relationship,
|
|
41
41
|
)
|
|
42
|
-
from sqlalchemy.sql import expression
|
|
42
|
+
from sqlalchemy.sql import Values, column, compiler, expression, literal, roles, union_all
|
|
43
43
|
from sqlalchemy.sql.compiler import SQLCompiler
|
|
44
44
|
from sqlalchemy.sql.functions import coalesce
|
|
45
45
|
|
|
@@ -74,6 +74,72 @@ RERANKER_OUTPUT_DOCUMENTS = RerankerAttributes.RERANKER_OUTPUT_DOCUMENTS.split("
|
|
|
74
74
|
RETRIEVAL_DOCUMENTS = SpanAttributes.RETRIEVAL_DOCUMENTS.split(".")
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
class SubValues(Values, roles.CompoundElementRole):
|
|
78
|
+
"""
|
|
79
|
+
Adapted from the following recipe:
|
|
80
|
+
https://github.com/sqlalchemy/sqlalchemy/issues/7228#issuecomment-1746837960
|
|
81
|
+
|
|
82
|
+
This is part of a workaround to make it more convenient to construct the VALUES clause in
|
|
83
|
+
SQLite. The VALUES clause is useful for creating a temporary table in the database with a set
|
|
84
|
+
of user inputs in the form of multi-value tuples, which can then be joined with other tables.
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
inherit_cache = True
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def _all_selected_columns(self) -> Iterable[ColumnElement[Any]]:
|
|
91
|
+
return self.columns
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
@compiles(SubValues, "sqlite")
|
|
95
|
+
def render_subvalues_w_union(elem: SubValues, compiler: compiler.SQLCompiler, **kw: Any) -> str:
|
|
96
|
+
"""
|
|
97
|
+
Adapted from the following recipe:
|
|
98
|
+
https://github.com/sqlalchemy/sqlalchemy/issues/7228#issuecomment-1746837960
|
|
99
|
+
|
|
100
|
+
This is part of a workaround to make it more convenient to construct the VALUES clause in
|
|
101
|
+
SQLite. The VALUES clause is useful for creating a temporary table in the database with a set
|
|
102
|
+
of user inputs in the form of multi-value tuples, which can then be joined with other tables.
|
|
103
|
+
"""
|
|
104
|
+
# omit rendering parenthesis, columns, "AS name", etc.
|
|
105
|
+
kw.pop("asfrom", None)
|
|
106
|
+
return cast(str, compiler.visit_values(elem, **kw)) # type: ignore[no-untyped-call]
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@compiles(Values, "sqlite")
|
|
110
|
+
def render_values_w_union(
|
|
111
|
+
elem: Values,
|
|
112
|
+
compiler: compiler.SQLCompiler,
|
|
113
|
+
from_linter: Optional[compiler.FromLinter] = None,
|
|
114
|
+
**kw: Any,
|
|
115
|
+
) -> str:
|
|
116
|
+
"""
|
|
117
|
+
Adapted from the following recipe:
|
|
118
|
+
https://github.com/sqlalchemy/sqlalchemy/issues/7228#issuecomment-1746837960
|
|
119
|
+
|
|
120
|
+
This is part of a workaround to make it more convenient to construct the VALUES clause in
|
|
121
|
+
SQLite. The VALUES clause is useful for creating a temporary table in the database with a set
|
|
122
|
+
of user inputs in the form of multi-value tuples, which can then be joined with other tables.
|
|
123
|
+
"""
|
|
124
|
+
first: tuple[Any, ...]
|
|
125
|
+
rest: list[tuple[Any, ...]]
|
|
126
|
+
first, *rest = [e for chunk in elem._data for e in chunk]
|
|
127
|
+
stmt = select(*(literal(val).label(col.key) for col, val in zip(elem.columns, first)))
|
|
128
|
+
if rest:
|
|
129
|
+
cols = [column(c.key, c.type) for c in elem.columns]
|
|
130
|
+
stmt = union_all(stmt, SubValues(*cols).data(rest)) # type: ignore[assignment]
|
|
131
|
+
subquery = stmt.subquery(elem.name)
|
|
132
|
+
if from_linter:
|
|
133
|
+
# replace all occurrences of elem with subquery so the from linter
|
|
134
|
+
# can eliminate the values object from its cartesian product check.
|
|
135
|
+
edges = set(from_linter.edges)
|
|
136
|
+
from_linter.edges.clear()
|
|
137
|
+
from_linter.edges.update(
|
|
138
|
+
tuple(subquery if node == elem else node for node in edge) for edge in edges
|
|
139
|
+
)
|
|
140
|
+
return compiler.process(subquery, from_linter=from_linter, **kw)
|
|
141
|
+
|
|
142
|
+
|
|
77
143
|
class AuthMethod(Enum):
|
|
78
144
|
LOCAL = "LOCAL"
|
|
79
145
|
OAUTH2 = "OAUTH2"
|
|
@@ -29,6 +29,7 @@ from phoenix.server.api.dataloaders import (
|
|
|
29
29
|
ExperimentSequenceNumberDataLoader,
|
|
30
30
|
LatencyMsQuantileDataLoader,
|
|
31
31
|
MinStartOrMaxEndTimeDataLoader,
|
|
32
|
+
NumChildSpansDataLoader,
|
|
32
33
|
ProjectByNameDataLoader,
|
|
33
34
|
PromptVersionSequenceNumberDataLoader,
|
|
34
35
|
RecordCountDataLoader,
|
|
@@ -76,6 +77,7 @@ class DataLoaders:
|
|
|
76
77
|
experiment_sequence_number: ExperimentSequenceNumberDataLoader
|
|
77
78
|
latency_ms_quantile: LatencyMsQuantileDataLoader
|
|
78
79
|
min_start_or_max_end_times: MinStartOrMaxEndTimeDataLoader
|
|
80
|
+
num_child_spans: NumChildSpansDataLoader
|
|
79
81
|
project_fields: TableFieldsDataLoader
|
|
80
82
|
prompt_version_sequence_number: PromptVersionSequenceNumberDataLoader
|
|
81
83
|
record_counts: RecordCountDataLoader
|
|
@@ -17,6 +17,7 @@ from .experiment_run_counts import ExperimentRunCountsDataLoader
|
|
|
17
17
|
from .experiment_sequence_number import ExperimentSequenceNumberDataLoader
|
|
18
18
|
from .latency_ms_quantile import LatencyMsQuantileCache, LatencyMsQuantileDataLoader
|
|
19
19
|
from .min_start_or_max_end_times import MinStartOrMaxEndTimeCache, MinStartOrMaxEndTimeDataLoader
|
|
20
|
+
from .num_child_spans import NumChildSpansDataLoader
|
|
20
21
|
from .project_by_name import ProjectByNameDataLoader
|
|
21
22
|
from .prompt_version_sequence_number import PromptVersionSequenceNumberDataLoader
|
|
22
23
|
from .record_counts import RecordCountCache, RecordCountDataLoader
|
|
@@ -53,6 +54,7 @@ __all__ = [
|
|
|
53
54
|
"ExperimentSequenceNumberDataLoader",
|
|
54
55
|
"LatencyMsQuantileDataLoader",
|
|
55
56
|
"MinStartOrMaxEndTimeDataLoader",
|
|
57
|
+
"NumChildSpansDataLoader",
|
|
56
58
|
"PromptVersionSequenceNumberDataLoader",
|
|
57
59
|
"RecordCountDataLoader",
|
|
58
60
|
"SessionIODataLoader",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from typing import Iterable
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import func, select
|
|
4
|
+
from strawberry.dataloader import DataLoader
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
|
|
7
|
+
from phoenix.db import models
|
|
8
|
+
from phoenix.server.types import DbSessionFactory
|
|
9
|
+
|
|
10
|
+
SpanRowId: TypeAlias = int
|
|
11
|
+
|
|
12
|
+
Key: TypeAlias = SpanRowId
|
|
13
|
+
Result: TypeAlias = int
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class NumChildSpansDataLoader(DataLoader[Key, Result]):
|
|
17
|
+
def __init__(self, db: DbSessionFactory) -> None:
|
|
18
|
+
super().__init__(load_fn=self._load_fn)
|
|
19
|
+
self._db = db
|
|
20
|
+
|
|
21
|
+
async def _load_fn(self, keys: Iterable[Key]) -> list[Result]:
|
|
22
|
+
span_rowids = list(set(keys))
|
|
23
|
+
result: dict[Key, Result] = {}
|
|
24
|
+
children = select(models.Span).alias("children")
|
|
25
|
+
stmt = (
|
|
26
|
+
select(models.Span.id, func.count())
|
|
27
|
+
.where(models.Span.id.in_(span_rowids))
|
|
28
|
+
.join(children, children.c.parent_id == models.Span.span_id)
|
|
29
|
+
.group_by(models.Span.id)
|
|
30
|
+
)
|
|
31
|
+
async with self._db() as session:
|
|
32
|
+
data = await session.stream(stmt)
|
|
33
|
+
async for span_rowid, num_child_spans in data:
|
|
34
|
+
result[span_rowid] = num_child_spans
|
|
35
|
+
return [result.get(span_rowid, 0) for span_rowid in keys]
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
from collections import defaultdict
|
|
2
|
+
from typing import Iterable, Optional
|
|
3
|
+
|
|
4
|
+
import sqlalchemy as sa
|
|
5
|
+
from aioitertools.itertools import groupby
|
|
6
|
+
from sqlalchemy import select
|
|
7
|
+
from strawberry.dataloader import DataLoader
|
|
8
|
+
from typing_extensions import TypeAlias
|
|
9
|
+
|
|
10
|
+
from phoenix.db.models import Span
|
|
11
|
+
from phoenix.server.types import DbSessionFactory
|
|
12
|
+
|
|
13
|
+
SpanRowId: TypeAlias = int
|
|
14
|
+
MaxDepth: TypeAlias = int
|
|
15
|
+
|
|
16
|
+
Key: TypeAlias = tuple[SpanRowId, Optional[MaxDepth]]
|
|
17
|
+
Result: TypeAlias = list[SpanRowId]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class SpanDescendantsDataLoader(DataLoader[Key, Result]):
|
|
21
|
+
def __init__(self, db: DbSessionFactory) -> None:
|
|
22
|
+
super().__init__(load_fn=self._load_fn)
|
|
23
|
+
self._db = db
|
|
24
|
+
|
|
25
|
+
async def _load_fn(self, keys: Iterable[Key]) -> list[Result]:
|
|
26
|
+
# Create a values expression with Span.id and respective max_depth (which can be None).
|
|
27
|
+
values = sa.values(
|
|
28
|
+
sa.Column("root_rowid", sa.Integer),
|
|
29
|
+
sa.Column("max_depth", sa.Integer, nullable=True),
|
|
30
|
+
name="values",
|
|
31
|
+
).data(list(keys))
|
|
32
|
+
|
|
33
|
+
# Get the root spans with their depth limits by joining the values to the Span table.
|
|
34
|
+
roots = (
|
|
35
|
+
select(
|
|
36
|
+
Span.span_id,
|
|
37
|
+
values.c.root_rowid,
|
|
38
|
+
values.c.max_depth,
|
|
39
|
+
)
|
|
40
|
+
.join_from(values, Span, Span.id == values.c.root_rowid)
|
|
41
|
+
.subquery("roots")
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
# Initialize the recursive common table expression (CTE) with direct children
|
|
45
|
+
# of root spans, setting depth=1.
|
|
46
|
+
descendants = (
|
|
47
|
+
select(
|
|
48
|
+
Span.id,
|
|
49
|
+
Span.span_id,
|
|
50
|
+
Span.start_time,
|
|
51
|
+
roots.c.root_rowid,
|
|
52
|
+
roots.c.max_depth,
|
|
53
|
+
sa.literal(1).label("depth"), # immediate children are depth=1 from root
|
|
54
|
+
)
|
|
55
|
+
.join_from(roots, Span, Span.parent_id == roots.c.span_id)
|
|
56
|
+
.cte("descendants", recursive=True)
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
# Build the recursive part of the query to fetch descendants at increasing depths.
|
|
60
|
+
# This recursively finds children of spans in the current depth level.
|
|
61
|
+
parents = descendants.alias("parents")
|
|
62
|
+
descendants = descendants.union_all(
|
|
63
|
+
select(
|
|
64
|
+
Span.id,
|
|
65
|
+
Span.span_id,
|
|
66
|
+
Span.start_time,
|
|
67
|
+
parents.c.root_rowid,
|
|
68
|
+
parents.c.max_depth,
|
|
69
|
+
(parents.c.depth + 1).label("depth"), # Increment depth for each level
|
|
70
|
+
)
|
|
71
|
+
.join_from(parents, Span, Span.parent_id == parents.c.span_id)
|
|
72
|
+
.where(
|
|
73
|
+
sa.or_(
|
|
74
|
+
parents.c.max_depth.is_(None), # No limit if max_depth is NULL
|
|
75
|
+
parents.c.depth + 1 <= parents.c.max_depth, # Stop when max depth is reached
|
|
76
|
+
),
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
# Final query to select and order all descendants.
|
|
81
|
+
# Ordering ensures breadth-first traversal and consistent results.
|
|
82
|
+
stmt = select(
|
|
83
|
+
descendants.c.id,
|
|
84
|
+
descendants.c.root_rowid,
|
|
85
|
+
descendants.c.max_depth,
|
|
86
|
+
).order_by(
|
|
87
|
+
descendants.c.root_rowid,
|
|
88
|
+
descendants.c.max_depth,
|
|
89
|
+
descendants.c.depth, # Order by depth for BFS traversal
|
|
90
|
+
descendants.c.start_time,
|
|
91
|
+
descendants.c.id,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
results: defaultdict[Key, Result] = defaultdict(list)
|
|
95
|
+
async with self._db() as session:
|
|
96
|
+
data = await session.stream(stmt)
|
|
97
|
+
# Group results by root_rowid and max_depth (the Key tuple)
|
|
98
|
+
async for key, group in groupby(data, key=lambda d: tuple(d[1:])):
|
|
99
|
+
# Extract span IDs (the database row IDs) and add them to the result list.
|
|
100
|
+
# The first column (index 0) from our query is Span.id.
|
|
101
|
+
results[key].extend(id_ for id_, *_ in group)
|
|
102
|
+
|
|
103
|
+
return [results[key].copy() for key in keys]
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
from collections import defaultdict
|
|
2
2
|
from datetime import datetime
|
|
3
|
-
from typing import Optional, Union
|
|
3
|
+
from typing import Iterable, Iterator, Optional, Union, cast
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
import numpy.typing as npt
|
|
7
7
|
import strawberry
|
|
8
|
-
from sqlalchemy import and_, distinct, func, select
|
|
8
|
+
from sqlalchemy import and_, distinct, func, select, text
|
|
9
9
|
from sqlalchemy.orm import joinedload
|
|
10
10
|
from starlette.authentication import UnauthenticatedUser
|
|
11
11
|
from strawberry import ID, UNSET
|
|
12
12
|
from strawberry.relay import Connection, GlobalID, Node
|
|
13
13
|
from strawberry.types import Info
|
|
14
|
-
from typing_extensions import Annotated, TypeAlias
|
|
14
|
+
from typing_extensions import Annotated, TypeAlias, assert_never
|
|
15
15
|
|
|
16
|
+
from phoenix.config import ENV_PHOENIX_SQL_DATABASE_SCHEMA, getenv
|
|
16
17
|
from phoenix.db import enums, models
|
|
18
|
+
from phoenix.db.helpers import SupportedSQLDialect
|
|
17
19
|
from phoenix.db.models import DatasetExample as OrmExample
|
|
18
20
|
from phoenix.db.models import DatasetExampleRevision as OrmRevision
|
|
19
21
|
from phoenix.db.models import DatasetVersion as OrmVersion
|
|
@@ -81,6 +83,12 @@ class ModelsInput:
|
|
|
81
83
|
model_name: Optional[str] = None
|
|
82
84
|
|
|
83
85
|
|
|
86
|
+
@strawberry.type
|
|
87
|
+
class DbTableStats:
|
|
88
|
+
table_name: str
|
|
89
|
+
num_bytes: int
|
|
90
|
+
|
|
91
|
+
|
|
84
92
|
@strawberry.type
|
|
85
93
|
class Query:
|
|
86
94
|
@strawberry.field
|
|
@@ -780,3 +788,64 @@ class Query:
|
|
|
780
788
|
return to_gql_clusters(
|
|
781
789
|
clustered_events=clustered_events,
|
|
782
790
|
)
|
|
791
|
+
|
|
792
|
+
@strawberry.field
|
|
793
|
+
async def db_table_stats(
|
|
794
|
+
self,
|
|
795
|
+
info: Info[Context, None],
|
|
796
|
+
) -> list[DbTableStats]:
|
|
797
|
+
if info.context.db.dialect is SupportedSQLDialect.SQLITE:
|
|
798
|
+
stmt = text("SELECT name, sum(pgsize) FROM dbstat group by name;")
|
|
799
|
+
async with info.context.db() as session:
|
|
800
|
+
stats = cast(Iterable[tuple[str, int]], await session.execute(stmt))
|
|
801
|
+
stats = _consolidate_sqlite_db_table_stats(stats)
|
|
802
|
+
elif info.context.db.dialect is SupportedSQLDialect.POSTGRESQL:
|
|
803
|
+
stmt = text(f"""\
|
|
804
|
+
SELECT c.relname, pg_total_relation_size(c.oid)
|
|
805
|
+
FROM pg_class as c
|
|
806
|
+
INNER JOIN pg_namespace as n ON n.oid = c.relnamespace
|
|
807
|
+
WHERE c.relkind = 'r'
|
|
808
|
+
AND n.nspname = '{getenv(ENV_PHOENIX_SQL_DATABASE_SCHEMA) or "public"}';
|
|
809
|
+
""")
|
|
810
|
+
async with info.context.db() as session:
|
|
811
|
+
stats = cast(Iterable[tuple[str, int]], await session.execute(stmt))
|
|
812
|
+
else:
|
|
813
|
+
assert_never(info.context.db.dialect)
|
|
814
|
+
return [
|
|
815
|
+
DbTableStats(table_name=table_name, num_bytes=num_bytes)
|
|
816
|
+
for table_name, num_bytes in stats
|
|
817
|
+
]
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
def _consolidate_sqlite_db_table_stats(
|
|
821
|
+
stats: Iterable[tuple[str, int]],
|
|
822
|
+
) -> Iterator[tuple[str, int]]:
|
|
823
|
+
"""
|
|
824
|
+
Consolidate SQLite database stats by combining indexes with their respective tables.
|
|
825
|
+
"""
|
|
826
|
+
aggregate: dict[str, int] = {}
|
|
827
|
+
for name, num_bytes in stats:
|
|
828
|
+
# Skip internal SQLite tables and indexes.
|
|
829
|
+
if name.startswith("ix_") or name.startswith("sqlite_"):
|
|
830
|
+
continue
|
|
831
|
+
aggregate[name] = num_bytes
|
|
832
|
+
for name, num_bytes in stats:
|
|
833
|
+
# Combine indexes with their respective tables.
|
|
834
|
+
for flag in ["sqlite_autoindex_", "ix_"]:
|
|
835
|
+
if not name.startswith(flag):
|
|
836
|
+
continue
|
|
837
|
+
if parent := _longest_matching_prefix(name[len(flag) :], aggregate.keys()):
|
|
838
|
+
aggregate[parent] += num_bytes
|
|
839
|
+
break
|
|
840
|
+
yield from aggregate.items()
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
def _longest_matching_prefix(s: str, prefixes: Iterable[str]) -> str:
|
|
844
|
+
"""
|
|
845
|
+
Return the longest prefix of s that matches any of the given prefixes.
|
|
846
|
+
"""
|
|
847
|
+
longest = ""
|
|
848
|
+
for prefix in prefixes:
|
|
849
|
+
if s.startswith(prefix) and len(prefix) > len(longest):
|
|
850
|
+
longest = prefix
|
|
851
|
+
return longest
|
|
@@ -9,7 +9,7 @@ import numpy as np
|
|
|
9
9
|
import strawberry
|
|
10
10
|
from openinference.semconv.trace import SpanAttributes
|
|
11
11
|
from strawberry import ID, UNSET
|
|
12
|
-
from strawberry.relay import Node, NodeID
|
|
12
|
+
from strawberry.relay import Connection, Node, NodeID
|
|
13
13
|
from strawberry.types import Info
|
|
14
14
|
from typing_extensions import Annotated, TypeAlias
|
|
15
15
|
|
|
@@ -30,6 +30,7 @@ from phoenix.server.api.types.Evaluation import DocumentEvaluation
|
|
|
30
30
|
from phoenix.server.api.types.ExampleRevisionInterface import ExampleRevision
|
|
31
31
|
from phoenix.server.api.types.GenerativeProvider import GenerativeProvider
|
|
32
32
|
from phoenix.server.api.types.MimeType import MimeType
|
|
33
|
+
from phoenix.server.api.types.pagination import ConnectionArgs, CursorString, connection_from_list
|
|
33
34
|
from phoenix.server.api.types.SortDir import SortDir
|
|
34
35
|
from phoenix.server.api.types.SpanAnnotation import SpanAnnotation, to_gql_span_annotation
|
|
35
36
|
from phoenix.server.api.types.SpanIOValue import SpanIOValue, truncate_value
|
|
@@ -537,15 +538,41 @@ class Span(Node):
|
|
|
537
538
|
(self.span_rowid, evaluation_name or None, num_documents),
|
|
538
539
|
)
|
|
539
540
|
|
|
541
|
+
@strawberry.field
|
|
542
|
+
async def num_child_spans(self, info: Info[Context, None]) -> int:
|
|
543
|
+
return await info.context.data_loaders.num_child_spans.load(self.span_rowid)
|
|
544
|
+
|
|
540
545
|
@strawberry.field(
|
|
541
546
|
description="All descendant spans (children, grandchildren, etc.)",
|
|
542
547
|
) # type: ignore
|
|
543
548
|
async def descendants(
|
|
544
549
|
self,
|
|
545
550
|
info: Info[Context, None],
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
551
|
+
max_depth: Annotated[
|
|
552
|
+
Optional[int],
|
|
553
|
+
strawberry.argument(
|
|
554
|
+
description="Maximum depth of breadth first search. For example, "
|
|
555
|
+
"maxDepth=1 searches for only the immediate child spans (if any); "
|
|
556
|
+
"maxDepth=2 searches for the immediate child spans plus their children. "
|
|
557
|
+
"maxDepth=0 (or None) means no limit."
|
|
558
|
+
),
|
|
559
|
+
] = 3,
|
|
560
|
+
first: Optional[int] = 50,
|
|
561
|
+
last: Optional[int] = UNSET,
|
|
562
|
+
after: Optional[CursorString] = UNSET,
|
|
563
|
+
before: Optional[CursorString] = UNSET,
|
|
564
|
+
) -> Connection["Span"]:
|
|
565
|
+
args = ConnectionArgs(
|
|
566
|
+
first=first,
|
|
567
|
+
after=after if isinstance(after, CursorString) else None,
|
|
568
|
+
last=last,
|
|
569
|
+
before=before if isinstance(before, CursorString) else None,
|
|
570
|
+
)
|
|
571
|
+
span_rowids: Iterable[int] = await info.context.data_loaders.span_descendants.load(
|
|
572
|
+
(self.span_rowid, max_depth or None),
|
|
573
|
+
)
|
|
574
|
+
data = [Span(span_rowid=span_rowid) for span_rowid in span_rowids]
|
|
575
|
+
return connection_from_list(data=data, args=args)
|
|
549
576
|
|
|
550
577
|
@strawberry.field(
|
|
551
578
|
description="The span's attributes translated into an example revision for a dataset",
|
|
@@ -85,6 +85,7 @@ from phoenix.server.api.dataloaders import (
|
|
|
85
85
|
ExperimentSequenceNumberDataLoader,
|
|
86
86
|
LatencyMsQuantileDataLoader,
|
|
87
87
|
MinStartOrMaxEndTimeDataLoader,
|
|
88
|
+
NumChildSpansDataLoader,
|
|
88
89
|
ProjectByNameDataLoader,
|
|
89
90
|
PromptVersionSequenceNumberDataLoader,
|
|
90
91
|
RecordCountDataLoader,
|
|
@@ -614,6 +615,7 @@ def create_graphql_router(
|
|
|
614
615
|
else None
|
|
615
616
|
),
|
|
616
617
|
),
|
|
618
|
+
num_child_spans=NumChildSpansDataLoader(db),
|
|
617
619
|
project_fields=TableFieldsDataLoader(db, models.Project),
|
|
618
620
|
prompt_version_sequence_number=PromptVersionSequenceNumberDataLoader(db),
|
|
619
621
|
record_counts=RecordCountDataLoader(
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_components-CRlSj2mp.js": {
|
|
3
|
+
"file": "assets/components-CRlSj2mp.js",
|
|
4
|
+
"name": "components",
|
|
5
|
+
"imports": [
|
|
6
|
+
"_vendor-CRRq3WgM.js",
|
|
7
|
+
"_pages-o_YaLL0c.js",
|
|
8
|
+
"_vendor-arizeai-Dq64X_0o.js",
|
|
9
|
+
"_vendor-codemirror-C1oevlym.js",
|
|
10
|
+
"_vendor-three-C-AGeJYv.js"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"_pages-o_YaLL0c.js": {
|
|
14
|
+
"file": "assets/pages-o_YaLL0c.js",
|
|
15
|
+
"name": "pages",
|
|
16
|
+
"imports": [
|
|
17
|
+
"_vendor-CRRq3WgM.js",
|
|
18
|
+
"_vendor-arizeai-Dq64X_0o.js",
|
|
19
|
+
"_components-CRlSj2mp.js",
|
|
20
|
+
"_vendor-codemirror-C1oevlym.js",
|
|
21
|
+
"_vendor-recharts-CPj01S89.js"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"_vendor-CRRq3WgM.js": {
|
|
25
|
+
"file": "assets/vendor-CRRq3WgM.js",
|
|
26
|
+
"name": "vendor",
|
|
27
|
+
"imports": [
|
|
28
|
+
"_vendor-three-C-AGeJYv.js"
|
|
29
|
+
],
|
|
30
|
+
"css": [
|
|
31
|
+
"assets/vendor-Cg6lcjUC.css"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"_vendor-Cg6lcjUC.css": {
|
|
35
|
+
"file": "assets/vendor-Cg6lcjUC.css",
|
|
36
|
+
"src": "_vendor-Cg6lcjUC.css"
|
|
37
|
+
},
|
|
38
|
+
"_vendor-arizeai-Dq64X_0o.js": {
|
|
39
|
+
"file": "assets/vendor-arizeai-Dq64X_0o.js",
|
|
40
|
+
"name": "vendor-arizeai",
|
|
41
|
+
"imports": [
|
|
42
|
+
"_vendor-CRRq3WgM.js"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"_vendor-codemirror-C1oevlym.js": {
|
|
46
|
+
"file": "assets/vendor-codemirror-C1oevlym.js",
|
|
47
|
+
"name": "vendor-codemirror",
|
|
48
|
+
"imports": [
|
|
49
|
+
"_vendor-CRRq3WgM.js",
|
|
50
|
+
"_vendor-shiki-aY7rz1pm.js"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"_vendor-recharts-CPj01S89.js": {
|
|
54
|
+
"file": "assets/vendor-recharts-CPj01S89.js",
|
|
55
|
+
"name": "vendor-recharts",
|
|
56
|
+
"imports": [
|
|
57
|
+
"_vendor-CRRq3WgM.js"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"_vendor-shiki-aY7rz1pm.js": {
|
|
61
|
+
"file": "assets/vendor-shiki-aY7rz1pm.js",
|
|
62
|
+
"name": "vendor-shiki",
|
|
63
|
+
"imports": [
|
|
64
|
+
"_vendor-CRRq3WgM.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"_vendor-three-C-AGeJYv.js": {
|
|
68
|
+
"file": "assets/vendor-three-C-AGeJYv.js",
|
|
69
|
+
"name": "vendor-three"
|
|
70
|
+
},
|
|
71
|
+
"index.tsx": {
|
|
72
|
+
"file": "assets/index-YUNmSSFA.js",
|
|
73
|
+
"name": "index",
|
|
74
|
+
"src": "index.tsx",
|
|
75
|
+
"isEntry": true,
|
|
76
|
+
"imports": [
|
|
77
|
+
"_vendor-CRRq3WgM.js",
|
|
78
|
+
"_vendor-arizeai-Dq64X_0o.js",
|
|
79
|
+
"_pages-o_YaLL0c.js",
|
|
80
|
+
"_components-CRlSj2mp.js",
|
|
81
|
+
"_vendor-three-C-AGeJYv.js",
|
|
82
|
+
"_vendor-codemirror-C1oevlym.js",
|
|
83
|
+
"_vendor-shiki-aY7rz1pm.js",
|
|
84
|
+
"_vendor-recharts-CPj01S89.js"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|