arize-phoenix 4.30.1__tar.gz → 4.31.0__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-4.30.1 → arize_phoenix-4.31.0}/PKG-INFO +1 -1
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/context.py +2 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/__init__.py +2 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/dataset_example_revisions.py +54 -17
- arize_phoenix-4.31.0/src/phoenix/server/api/dataloaders/experiment_run_annotations.py +40 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExperimentRun.py +1 -9
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/app.py +36 -2
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/dml_event_handler.py +1 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/main.py +21 -1
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/.vite/manifest.json +9 -9
- arize_phoenix-4.30.1/src/phoenix/server/static/assets/components-CkSg5zK4.js → arize_phoenix-4.31.0/src/phoenix/server/static/assets/components-CEsu6itL.js +1 -1
- arize_phoenix-4.30.1/src/phoenix/server/static/assets/index-DTecsU5w.js → arize_phoenix-4.31.0/src/phoenix/server/static/assets/index-Cuxn1Qdi.js +1 -1
- arize_phoenix-4.30.1/src/phoenix/server/static/assets/pages-C6emDFIO.js → arize_phoenix-4.31.0/src/phoenix/server/static/assets/pages-eeRVG3GZ.js +218 -180
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/fixtures.py +46 -10
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/utils.py +2 -8
- arize_phoenix-4.31.0/src/phoenix/version.py +1 -0
- arize_phoenix-4.30.1/src/phoenix/version.py +0 -1
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/.gitignore +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/IP_NOTICE +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/LICENSE +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/README.md +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/chat-service/chat/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/chat-service/chat/app.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/chat-service/chat/types.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/Dockerfile +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/Makefile +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/pyproject.toml +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/requirements.txt +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/examples/manually-instrumented-chatbot/frontend/schema.json +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/pyproject.toml +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/auth.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/config.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/core/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/core/embedding_dimension.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/core/model.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/core/model_schema.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/core/model_schema_adapter.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/datetime_utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/README.md +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/alembic.ini +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/bulk_inserter.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/engines.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/helpers.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/constants.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/dataset.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/document_annotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/evaluation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/helpers.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/span.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/span_annotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/trace_annotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/insertion/types.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrate.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/env.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/future_versions/README.md +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/future_versions/cd164e83824f_users_and_tokens.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/script.py.mako +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/versions/.gitignore +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/versions/10460e46d750_datasets.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/versions/3be8647b87d8_add_token_columns_to_spans_table.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/migrations/versions/cf03bd6bae1d_init.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/db/models.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/exceptions.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/evaluators/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/evaluators/base.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/evaluators/code_evaluators.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/evaluators/llm_evaluators.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/evaluators/utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/functions.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/tracing.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/types.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/experiments/utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/errors.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/fixtures.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/inferences.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/schema.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/inferences/validation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/README.md +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/binning.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/metrics.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/mixins.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/retrieval_metrics.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/timeseries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/metrics/wrappers.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/pointcloud/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/pointcloud/clustering.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/pointcloud/pointcloud.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/pointcloud/projectors.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/pointcloud/umap_parameters.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/py.typed +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/annotation_summaries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/average_experiment_run_latency.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/cache/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/cache/two_tier_cache.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/dataset_example_spans.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/document_evaluation_summaries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/document_evaluations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/document_retrieval_metrics.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/experiment_annotation_summaries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/experiment_error_rates.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/experiment_run_counts.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/experiment_sequence_number.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/latency_ms_quantile.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/min_start_or_max_end_times.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/project_by_name.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/record_counts.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/span_annotations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/span_dataset_examples.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/span_descendants.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/span_projects.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/token_counts.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/trace_row_ids.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/exceptions.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/helpers/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/helpers/dataset_helpers.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/AddExamplesToDatasetInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/AddSpansToDatasetInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/ClearProjectInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/ClusterInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/Coordinates.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/CreateDatasetInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/CreateSpanAnnotationInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/CreateTraceAnnotationInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DataQualityMetricInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DatasetExampleInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DatasetSort.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DatasetVersionSort.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DeleteAnnotationsInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DeleteDatasetExamplesInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DeleteDatasetInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DeleteExperimentsInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DimensionFilter.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/DimensionInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/Granularity.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/PatchAnnotationInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/PatchDatasetExamplesInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/PatchDatasetInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/PerformanceMetricInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/SpanAnnotationSort.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/SpanSort.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/TimeRange.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/TraceAnnotationSort.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/UserRoleInput.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/input_types/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/interceptor.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/api_key_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/auth.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/auth_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/dataset_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/experiment_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/export_events_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/project_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/span_annotations_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/trace_annotations_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/mutations/user_mutations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/openapi/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/openapi/main.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/openapi/schema.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/queries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/datasets.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/evaluations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/experiment_evaluations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/experiment_runs.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/experiments.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/pydantic_compat.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/spans.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/traces.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/routers/v1/utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/schema.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Annotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/AnnotationSummary.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/AnnotatorKind.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ApiKey.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Cluster.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/CreateDatasetPayload.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DataQualityMetric.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Dataset.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DatasetExample.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DatasetExampleRevision.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DatasetValues.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DatasetVersion.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Dimension.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DimensionDataType.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DimensionShape.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DimensionType.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DimensionWithValue.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DocumentEvaluationSummary.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/DocumentRetrievalMetrics.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/EmbeddingDimension.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/EmbeddingMetadata.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Evaluation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/EvaluationSummary.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Event.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/EventMetadata.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExampleRevisionInterface.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Experiment.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExperimentAnnotationSummary.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExperimentComparison.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExperimentRunAnnotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ExportedFile.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Functionality.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Inferences.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/InferencesRole.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/LabelFraction.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/MimeType.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Model.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/NumericRange.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/PerformanceMetric.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Project.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/PromptResponse.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Retrieval.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ScalarDriftMetricEnum.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Segments.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/SortDir.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Span.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/SpanAnnotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/SystemApiKey.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/TimeSeries.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/Trace.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/TraceAnnotation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/UMAPPoints.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/User.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/UserApiKey.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/UserRole.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/ValidationResult.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/VectorDriftMetricEnum.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/node.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/types/pagination.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/utils.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/dml_event.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/grpc_server.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/openapi/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/prometheus.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-114x114.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-120x120.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-144x144.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-152x152.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-180x180.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-72x72.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon-76x76.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/apple-touch-icon.png +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-DsnEJuEV.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-DxkFTwjz.css +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-arizeai-DtynTLNi.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-codemirror-C5to5cK4.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-recharts-reihe2SJ.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/assets/vendor-three-DwGkEfCM.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/favicon.ico +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/static/modernizr.js +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/telemetry.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/templates/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/templates/index.html +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/thread_server.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/types.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/services.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/session/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/session/client.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/session/data_extractor.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/session/evaluation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/session/session.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/settings.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/attributes.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/dsl/README.md +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/dsl/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/dsl/filter.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/dsl/helpers.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/dsl/query.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/errors.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/evaluation_conventions.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/exporter.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/langchain/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/langchain/instrumentor.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/llama_index/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/llama_index/callback.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/openai/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/openai/instrumentor.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/otel.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/projects.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/schemas.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/span_evaluations.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/span_json_decoder.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/span_json_encoder.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/trace_dataset.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/v1/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/v1/evaluation_pb2.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/trace/v1/evaluation_pb2.pyi +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/__init__.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/client.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/deprecation.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/error_handling.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/json.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/logging.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/project.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/re.py +0 -0
- {arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/utilities/span_store.py +0 -0
|
@@ -17,6 +17,7 @@ from phoenix.server.api.dataloaders import (
|
|
|
17
17
|
DocumentRetrievalMetricsDataLoader,
|
|
18
18
|
ExperimentAnnotationSummaryDataLoader,
|
|
19
19
|
ExperimentErrorRatesDataLoader,
|
|
20
|
+
ExperimentRunAnnotations,
|
|
20
21
|
ExperimentRunCountsDataLoader,
|
|
21
22
|
ExperimentSequenceNumberDataLoader,
|
|
22
23
|
LatencyMsQuantileDataLoader,
|
|
@@ -45,6 +46,7 @@ class DataLoaders:
|
|
|
45
46
|
annotation_summaries: AnnotationSummaryDataLoader
|
|
46
47
|
experiment_annotation_summaries: ExperimentAnnotationSummaryDataLoader
|
|
47
48
|
experiment_error_rates: ExperimentErrorRatesDataLoader
|
|
49
|
+
experiment_run_annotations: ExperimentRunAnnotations
|
|
48
50
|
experiment_run_counts: ExperimentRunCountsDataLoader
|
|
49
51
|
experiment_sequence_number: ExperimentSequenceNumberDataLoader
|
|
50
52
|
latency_ms_quantile: LatencyMsQuantileDataLoader
|
{arize_phoenix-4.30.1 → arize_phoenix-4.31.0}/src/phoenix/server/api/dataloaders/__init__.py
RENAMED
|
@@ -12,6 +12,7 @@ from .document_evaluations import DocumentEvaluationsDataLoader
|
|
|
12
12
|
from .document_retrieval_metrics import DocumentRetrievalMetricsDataLoader
|
|
13
13
|
from .experiment_annotation_summaries import ExperimentAnnotationSummaryDataLoader
|
|
14
14
|
from .experiment_error_rates import ExperimentErrorRatesDataLoader
|
|
15
|
+
from .experiment_run_annotations import ExperimentRunAnnotations
|
|
15
16
|
from .experiment_run_counts import ExperimentRunCountsDataLoader
|
|
16
17
|
from .experiment_sequence_number import ExperimentSequenceNumberDataLoader
|
|
17
18
|
from .latency_ms_quantile import LatencyMsQuantileCache, LatencyMsQuantileDataLoader
|
|
@@ -36,6 +37,7 @@ __all__ = [
|
|
|
36
37
|
"AnnotationSummaryDataLoader",
|
|
37
38
|
"ExperimentAnnotationSummaryDataLoader",
|
|
38
39
|
"ExperimentErrorRatesDataLoader",
|
|
40
|
+
"ExperimentRunAnnotations",
|
|
39
41
|
"ExperimentRunCountsDataLoader",
|
|
40
42
|
"ExperimentSequenceNumberDataLoader",
|
|
41
43
|
"LatencyMsQuantileDataLoader",
|
|
@@ -5,7 +5,8 @@ from typing import (
|
|
|
5
5
|
Union,
|
|
6
6
|
)
|
|
7
7
|
|
|
8
|
-
from sqlalchemy import
|
|
8
|
+
from sqlalchemy import and_, case, func, null, or_, select
|
|
9
|
+
from sqlalchemy.sql.expression import literal
|
|
9
10
|
from strawberry.dataloader import DataLoader
|
|
10
11
|
from typing_extensions import TypeAlias
|
|
11
12
|
|
|
@@ -22,40 +23,76 @@ Result: TypeAlias = DatasetExampleRevision
|
|
|
22
23
|
|
|
23
24
|
class DatasetExampleRevisionsDataLoader(DataLoader[Key, Result]):
|
|
24
25
|
def __init__(self, db: DbSessionFactory) -> None:
|
|
25
|
-
super().__init__(
|
|
26
|
+
super().__init__(
|
|
27
|
+
load_fn=self._load_fn,
|
|
28
|
+
max_batch_size=200, # needed to prevent the size of the query from getting too large
|
|
29
|
+
)
|
|
26
30
|
self._db = db
|
|
27
31
|
|
|
28
32
|
async def _load_fn(self, keys: List[Key]) -> List[Union[Result, NotFound]]:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
example_and_version_ids = tuple(
|
|
34
|
+
set(
|
|
35
|
+
(example_id, version_id)
|
|
36
|
+
for example_id, version_id in keys
|
|
37
|
+
if version_id is not None
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
versionless_example_ids = tuple(
|
|
41
|
+
set(example_id for example_id, version_id in keys if version_id is None)
|
|
42
|
+
)
|
|
43
|
+
resolved_example_and_version_ids = (
|
|
44
|
+
(
|
|
33
45
|
select(
|
|
34
|
-
|
|
35
|
-
|
|
46
|
+
models.DatasetExample.id.label("example_id"),
|
|
47
|
+
models.DatasetVersion.id.label("version_id"),
|
|
48
|
+
)
|
|
49
|
+
.select_from(models.DatasetExample)
|
|
50
|
+
.join(
|
|
51
|
+
models.DatasetVersion,
|
|
52
|
+
onclause=literal(True), # cross join
|
|
53
|
+
)
|
|
54
|
+
.where(
|
|
55
|
+
or_(
|
|
56
|
+
*(
|
|
57
|
+
and_(
|
|
58
|
+
models.DatasetExample.id == example_id,
|
|
59
|
+
models.DatasetVersion.id == version_id,
|
|
60
|
+
)
|
|
61
|
+
for example_id, version_id in example_and_version_ids
|
|
62
|
+
)
|
|
63
|
+
)
|
|
36
64
|
)
|
|
37
|
-
for example_id, version_id in keys
|
|
38
65
|
)
|
|
39
|
-
|
|
66
|
+
.union(
|
|
67
|
+
select(
|
|
68
|
+
models.DatasetExample.id.label("example_id"), null().label("version_id")
|
|
69
|
+
).where(models.DatasetExample.id.in_(versionless_example_ids))
|
|
70
|
+
)
|
|
71
|
+
.subquery()
|
|
72
|
+
)
|
|
40
73
|
revision_ids = (
|
|
41
74
|
select(
|
|
42
|
-
|
|
43
|
-
|
|
75
|
+
resolved_example_and_version_ids.c.example_id,
|
|
76
|
+
resolved_example_and_version_ids.c.version_id,
|
|
44
77
|
func.max(models.DatasetExampleRevision.id).label("revision_id"),
|
|
45
78
|
)
|
|
46
|
-
.select_from(
|
|
79
|
+
.select_from(resolved_example_and_version_ids)
|
|
47
80
|
.join(
|
|
48
81
|
models.DatasetExampleRevision,
|
|
49
|
-
onclause=
|
|
82
|
+
onclause=resolved_example_and_version_ids.c.example_id
|
|
50
83
|
== models.DatasetExampleRevision.dataset_example_id,
|
|
51
84
|
)
|
|
52
85
|
.where(
|
|
53
86
|
or_(
|
|
54
|
-
|
|
55
|
-
models.DatasetExampleRevision.dataset_version_id
|
|
87
|
+
resolved_example_and_version_ids.c.version_id.is_(None),
|
|
88
|
+
models.DatasetExampleRevision.dataset_version_id
|
|
89
|
+
<= resolved_example_and_version_ids.c.version_id,
|
|
56
90
|
)
|
|
57
91
|
)
|
|
58
|
-
.group_by(
|
|
92
|
+
.group_by(
|
|
93
|
+
resolved_example_and_version_ids.c.example_id,
|
|
94
|
+
resolved_example_and_version_ids.c.version_id,
|
|
95
|
+
)
|
|
59
96
|
).subquery()
|
|
60
97
|
query = (
|
|
61
98
|
select(
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from collections import defaultdict
|
|
2
|
+
from typing import (
|
|
3
|
+
DefaultDict,
|
|
4
|
+
List,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
from sqlalchemy import select
|
|
8
|
+
from strawberry.dataloader import DataLoader
|
|
9
|
+
from typing_extensions import TypeAlias
|
|
10
|
+
|
|
11
|
+
from phoenix.db.models import ExperimentRunAnnotation as OrmExperimentRunAnnotation
|
|
12
|
+
from phoenix.server.types import DbSessionFactory
|
|
13
|
+
|
|
14
|
+
ExperimentRunID: TypeAlias = int
|
|
15
|
+
Key: TypeAlias = ExperimentRunID
|
|
16
|
+
Result: TypeAlias = List[OrmExperimentRunAnnotation]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ExperimentRunAnnotations(DataLoader[Key, Result]):
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
db: DbSessionFactory,
|
|
23
|
+
) -> None:
|
|
24
|
+
super().__init__(load_fn=self._load_fn)
|
|
25
|
+
self._db = db
|
|
26
|
+
|
|
27
|
+
async def _load_fn(self, keys: List[Key]) -> List[Result]:
|
|
28
|
+
run_ids = tuple(set(keys))
|
|
29
|
+
annotations: DefaultDict[Key, Result] = defaultdict(list)
|
|
30
|
+
async with self._db() as session:
|
|
31
|
+
async for run_id, annotation in await session.stream(
|
|
32
|
+
select(
|
|
33
|
+
OrmExperimentRunAnnotation.experiment_run_id, OrmExperimentRunAnnotation
|
|
34
|
+
).where(OrmExperimentRunAnnotation.experiment_run_id.in_(run_ids))
|
|
35
|
+
):
|
|
36
|
+
annotations[run_id].append(annotation)
|
|
37
|
+
return [
|
|
38
|
+
sorted(annotations[run_id], key=lambda annotation: annotation.name, reverse=True)
|
|
39
|
+
for run_id in run_ids
|
|
40
|
+
]
|
|
@@ -2,7 +2,6 @@ from datetime import datetime
|
|
|
2
2
|
from typing import Optional
|
|
3
3
|
|
|
4
4
|
import strawberry
|
|
5
|
-
from sqlalchemy import select
|
|
6
5
|
from strawberry import UNSET
|
|
7
6
|
from strawberry.relay import Connection, GlobalID, Node, NodeID
|
|
8
7
|
from strawberry.scalars import JSON
|
|
@@ -48,14 +47,7 @@ class ExperimentRun(Node):
|
|
|
48
47
|
before=before if isinstance(before, CursorString) else None,
|
|
49
48
|
)
|
|
50
49
|
run_id = self.id_attr
|
|
51
|
-
|
|
52
|
-
annotations = (
|
|
53
|
-
await session.scalars(
|
|
54
|
-
select(models.ExperimentRunAnnotation)
|
|
55
|
-
.where(models.ExperimentRunAnnotation.experiment_run_id == run_id)
|
|
56
|
-
.order_by(models.ExperimentRunAnnotation.name.desc())
|
|
57
|
-
)
|
|
58
|
-
).all()
|
|
50
|
+
annotations = await info.context.data_loaders.experiment_run_annotations.load(run_id)
|
|
59
51
|
return connection_from_list(
|
|
60
52
|
[to_gql_experiment_run_annotation(annotation) for annotation in annotations], args
|
|
61
53
|
)
|
|
@@ -46,7 +46,13 @@ from typing_extensions import TypeAlias
|
|
|
46
46
|
|
|
47
47
|
import phoenix
|
|
48
48
|
import phoenix.trace.v1 as pb
|
|
49
|
-
from phoenix.config import
|
|
49
|
+
from phoenix.config import (
|
|
50
|
+
DEFAULT_PROJECT_NAME,
|
|
51
|
+
SERVER_DIR,
|
|
52
|
+
get_env_host,
|
|
53
|
+
get_env_port,
|
|
54
|
+
server_instrumentation_is_enabled,
|
|
55
|
+
)
|
|
50
56
|
from phoenix.core.model_schema import Model
|
|
51
57
|
from phoenix.db import models
|
|
52
58
|
from phoenix.db.bulk_inserter import BulkInserter
|
|
@@ -66,6 +72,7 @@ from phoenix.server.api.dataloaders import (
|
|
|
66
72
|
DocumentRetrievalMetricsDataLoader,
|
|
67
73
|
ExperimentAnnotationSummaryDataLoader,
|
|
68
74
|
ExperimentErrorRatesDataLoader,
|
|
75
|
+
ExperimentRunAnnotations,
|
|
69
76
|
ExperimentRunCountsDataLoader,
|
|
70
77
|
ExperimentSequenceNumberDataLoader,
|
|
71
78
|
LatencyMsQuantileDataLoader,
|
|
@@ -94,10 +101,13 @@ from phoenix.server.types import (
|
|
|
94
101
|
LastUpdatedAt,
|
|
95
102
|
)
|
|
96
103
|
from phoenix.trace.fixtures import (
|
|
104
|
+
TracesFixture,
|
|
105
|
+
get_dataset_fixtures,
|
|
97
106
|
get_evals_from_fixture,
|
|
98
107
|
get_trace_fixture_by_name,
|
|
99
108
|
load_example_traces,
|
|
100
109
|
reset_fixture_span_ids_and_timestamps,
|
|
110
|
+
send_dataset_fixtures,
|
|
101
111
|
)
|
|
102
112
|
from phoenix.trace.otel import decode_otlp_span, encode_span_to_otlp
|
|
103
113
|
from phoenix.trace.schemas import Span
|
|
@@ -249,6 +259,7 @@ class Scaffolder(DaemonTask):
|
|
|
249
259
|
queue_evaluation: Callable[[pb.Evaluation], Awaitable[None]],
|
|
250
260
|
tracing_fixture_names: Set[str] = set(),
|
|
251
261
|
force_fixture_ingestion: bool = False,
|
|
262
|
+
scaffold_datasets: bool = False,
|
|
252
263
|
) -> None:
|
|
253
264
|
super().__init__()
|
|
254
265
|
self._db = db
|
|
@@ -258,6 +269,7 @@ class Scaffolder(DaemonTask):
|
|
|
258
269
|
get_trace_fixture_by_name(name) for name in tracing_fixture_names
|
|
259
270
|
)
|
|
260
271
|
self._force_fixture_ingestion = force_fixture_ingestion
|
|
272
|
+
self._scaffold_datasets = scaffold_datasets
|
|
261
273
|
|
|
262
274
|
async def __aenter__(self) -> None:
|
|
263
275
|
await self.start()
|
|
@@ -271,7 +283,7 @@ class Scaffolder(DaemonTask):
|
|
|
271
283
|
Determines whether to load fixtures and handles them.
|
|
272
284
|
"""
|
|
273
285
|
if await self._should_load_fixtures():
|
|
274
|
-
logger.info("Loading trace fixtures
|
|
286
|
+
logger.info("Loading trace fixtures...")
|
|
275
287
|
await self._handle_tracing_fixtures()
|
|
276
288
|
logger.info("Finished loading fixtures.")
|
|
277
289
|
else:
|
|
@@ -316,6 +328,10 @@ class Scaffolder(DaemonTask):
|
|
|
316
328
|
get_evals_from_fixture(fixture.name),
|
|
317
329
|
)
|
|
318
330
|
|
|
331
|
+
# Ingest dataset fixtures
|
|
332
|
+
if self._scaffold_datasets:
|
|
333
|
+
await self._handle_dataset_fixtures(fixture)
|
|
334
|
+
|
|
319
335
|
project_name = fixture.project_name or fixture.name
|
|
320
336
|
logger.info(f"Loading '{project_name}' fixtures...")
|
|
321
337
|
for span in fixture_spans:
|
|
@@ -330,6 +346,19 @@ class Scaffolder(DaemonTask):
|
|
|
330
346
|
except Exception as e:
|
|
331
347
|
logger.error(f"Unexpected error processing fixture '{fixture.name}': {e}")
|
|
332
348
|
|
|
349
|
+
async def _handle_dataset_fixtures(self, fixture: TracesFixture) -> None:
|
|
350
|
+
loop = asyncio.get_running_loop()
|
|
351
|
+
try:
|
|
352
|
+
dataset_fixtures = await loop.run_in_executor(None, get_dataset_fixtures, fixture.name)
|
|
353
|
+
await loop.run_in_executor(
|
|
354
|
+
None,
|
|
355
|
+
send_dataset_fixtures,
|
|
356
|
+
f"http://{get_env_host()}:{get_env_port()}",
|
|
357
|
+
dataset_fixtures,
|
|
358
|
+
)
|
|
359
|
+
except Exception as e:
|
|
360
|
+
logger.error(f"Error processing dataset fixture: {e}")
|
|
361
|
+
|
|
333
362
|
|
|
334
363
|
def _lifespan(
|
|
335
364
|
*,
|
|
@@ -343,6 +372,7 @@ def _lifespan(
|
|
|
343
372
|
read_only: bool = False,
|
|
344
373
|
tracing_fixture_names: Set[str] = set(),
|
|
345
374
|
force_fixture_ingestion: bool = False,
|
|
375
|
+
scaffold_datasets: bool = False,
|
|
346
376
|
) -> StatefulLifespan[FastAPI]:
|
|
347
377
|
@contextlib.asynccontextmanager
|
|
348
378
|
async def lifespan(_: FastAPI) -> AsyncIterator[Dict[str, Any]]:
|
|
@@ -364,6 +394,7 @@ def _lifespan(
|
|
|
364
394
|
queue_evaluation=queue_evaluation,
|
|
365
395
|
tracing_fixture_names=tracing_fixture_names,
|
|
366
396
|
force_fixture_ingestion=force_fixture_ingestion,
|
|
397
|
+
scaffold_datasets=scaffold_datasets,
|
|
367
398
|
):
|
|
368
399
|
for callback in startup_callbacks:
|
|
369
400
|
callback()
|
|
@@ -446,6 +477,7 @@ def create_graphql_router(
|
|
|
446
477
|
),
|
|
447
478
|
experiment_annotation_summaries=ExperimentAnnotationSummaryDataLoader(db),
|
|
448
479
|
experiment_error_rates=ExperimentErrorRatesDataLoader(db),
|
|
480
|
+
experiment_run_annotations=ExperimentRunAnnotations(db),
|
|
449
481
|
experiment_run_counts=ExperimentRunCountsDataLoader(db),
|
|
450
482
|
experiment_sequence_number=ExperimentSequenceNumberDataLoader(db),
|
|
451
483
|
latency_ms_quantile=LatencyMsQuantileDataLoader(
|
|
@@ -557,6 +589,7 @@ def create_app(
|
|
|
557
589
|
secret: Optional[str] = None,
|
|
558
590
|
tracing_fixture_names: Set[str] = set(),
|
|
559
591
|
force_fixture_ingestion: bool = False,
|
|
592
|
+
scaffold_datasets: bool = False,
|
|
560
593
|
) -> FastAPI:
|
|
561
594
|
startup_callbacks_list: List[Callable[[], None]] = list(startup_callbacks)
|
|
562
595
|
shutdown_callbacks_list: List[Callable[[], None]] = list(shutdown_callbacks)
|
|
@@ -644,6 +677,7 @@ def create_app(
|
|
|
644
677
|
startup_callbacks=startup_callbacks_list,
|
|
645
678
|
tracing_fixture_names=tracing_fixture_names,
|
|
646
679
|
force_fixture_ingestion=force_fixture_ingestion,
|
|
680
|
+
scaffold_datasets=scaffold_datasets,
|
|
647
681
|
),
|
|
648
682
|
middleware=[
|
|
649
683
|
Middleware(HeadersMiddleware),
|
|
@@ -186,6 +186,7 @@ class _AnnotationDmlEventHandler(
|
|
|
186
186
|
async def __call__(self) -> None:
|
|
187
187
|
async with self._db() as session:
|
|
188
188
|
async for row in await session.stream(self._get_stmt()):
|
|
189
|
+
self._last_updated_at.set(Project, row.id)
|
|
189
190
|
if cache := self._cache_for_dataloaders:
|
|
190
191
|
self._clear(cache, row.id, row.name)
|
|
191
192
|
|
|
@@ -143,7 +143,9 @@ if __name__ == "__main__":
|
|
|
143
143
|
# Whether the app is running in a development environment
|
|
144
144
|
parser.add_argument("--dev", action="store_true")
|
|
145
145
|
parser.add_argument("--no-ui", action="store_true")
|
|
146
|
+
|
|
146
147
|
subparsers = parser.add_subparsers(dest="command", required=True)
|
|
148
|
+
|
|
147
149
|
serve_parser = subparsers.add_parser("serve")
|
|
148
150
|
serve_parser.add_argument(
|
|
149
151
|
"--with-fixture",
|
|
@@ -182,14 +184,27 @@ if __name__ == "__main__":
|
|
|
182
184
|
"database is new."
|
|
183
185
|
),
|
|
184
186
|
)
|
|
187
|
+
serve_parser.add_argument(
|
|
188
|
+
"--scaffold-datasets",
|
|
189
|
+
action="store_true", # default is False
|
|
190
|
+
required=False,
|
|
191
|
+
help=(
|
|
192
|
+
"Whether or not to add any datasets defined in "
|
|
193
|
+
"the inputted project or trace fixture. "
|
|
194
|
+
"Default is False. "
|
|
195
|
+
),
|
|
196
|
+
)
|
|
197
|
+
|
|
185
198
|
datasets_parser = subparsers.add_parser("datasets")
|
|
186
199
|
datasets_parser.add_argument("--primary", type=str, required=True)
|
|
187
200
|
datasets_parser.add_argument("--reference", type=str, required=False)
|
|
188
201
|
datasets_parser.add_argument("--corpus", type=str, required=False)
|
|
189
202
|
datasets_parser.add_argument("--trace", type=str, required=False)
|
|
203
|
+
|
|
190
204
|
fixture_parser = subparsers.add_parser("fixture")
|
|
191
205
|
fixture_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
|
|
192
206
|
fixture_parser.add_argument("--primary-only", action="store_true") # Default is False
|
|
207
|
+
|
|
193
208
|
trace_fixture_parser = subparsers.add_parser("trace-fixture")
|
|
194
209
|
trace_fixture_parser.add_argument(
|
|
195
210
|
"fixture", type=str, choices=[fixture.name for fixture in TRACES_FIXTURES]
|
|
@@ -197,19 +212,22 @@ if __name__ == "__main__":
|
|
|
197
212
|
trace_fixture_parser.add_argument(
|
|
198
213
|
"--simulate-streaming", action="store_true"
|
|
199
214
|
) # Default is False
|
|
215
|
+
|
|
200
216
|
demo_parser = subparsers.add_parser("demo")
|
|
201
217
|
demo_parser.add_argument("fixture", type=str, choices=[fixture.name for fixture in FIXTURES])
|
|
202
218
|
demo_parser.add_argument(
|
|
203
219
|
"trace_fixture", type=str, choices=[fixture.name for fixture in TRACES_FIXTURES]
|
|
204
220
|
)
|
|
205
221
|
demo_parser.add_argument("--simulate-streaming", action="store_true")
|
|
206
|
-
args = parser.parse_args()
|
|
207
222
|
|
|
223
|
+
args = parser.parse_args()
|
|
208
224
|
db_connection_str = (
|
|
209
225
|
args.database_url if args.database_url else get_env_database_connection_str()
|
|
210
226
|
)
|
|
211
227
|
export_path = Path(args.export_path) if args.export_path else EXPORT_DIR
|
|
228
|
+
|
|
212
229
|
force_fixture_ingestion = False
|
|
230
|
+
scaffold_datasets = False
|
|
213
231
|
if args.command == "datasets":
|
|
214
232
|
primary_inferences_name = args.primary
|
|
215
233
|
reference_inferences_name = args.reference
|
|
@@ -264,6 +282,7 @@ if __name__ == "__main__":
|
|
|
264
282
|
for fixture in get_trace_fixtures_by_project_name(name)
|
|
265
283
|
)
|
|
266
284
|
force_fixture_ingestion = args.force_fixture_ingestion
|
|
285
|
+
scaffold_datasets = args.scaffold_datasets
|
|
267
286
|
host: Optional[str] = args.host or get_env_host()
|
|
268
287
|
display_host = host or "localhost"
|
|
269
288
|
# If the host is "::", the convention is to bind to all interfaces. However, uvicorn
|
|
@@ -355,6 +374,7 @@ if __name__ == "__main__":
|
|
|
355
374
|
secret=secret,
|
|
356
375
|
tracing_fixture_names=tracing_fixture_names,
|
|
357
376
|
force_fixture_ingestion=force_fixture_ingestion,
|
|
377
|
+
scaffold_datasets=scaffold_datasets,
|
|
358
378
|
)
|
|
359
379
|
server = Server(config=Config(app, host=host, port=port, root_path=host_root_path)) # type: ignore
|
|
360
380
|
Thread(target=_write_pid_file_when_ready, args=(server,), daemon=True).start()
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_components-
|
|
3
|
-
"file": "assets/components-
|
|
2
|
+
"_components-CEsu6itL.js": {
|
|
3
|
+
"file": "assets/components-CEsu6itL.js",
|
|
4
4
|
"name": "components",
|
|
5
5
|
"imports": [
|
|
6
6
|
"_vendor-DsnEJuEV.js",
|
|
7
7
|
"_vendor-arizeai-DtynTLNi.js",
|
|
8
|
-
"_pages-
|
|
8
|
+
"_pages-eeRVG3GZ.js",
|
|
9
9
|
"_vendor-three-DwGkEfCM.js",
|
|
10
10
|
"_vendor-codemirror-C5to5cK4.js"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
|
-
"_pages-
|
|
14
|
-
"file": "assets/pages-
|
|
13
|
+
"_pages-eeRVG3GZ.js": {
|
|
14
|
+
"file": "assets/pages-eeRVG3GZ.js",
|
|
15
15
|
"name": "pages",
|
|
16
16
|
"imports": [
|
|
17
17
|
"_vendor-DsnEJuEV.js",
|
|
18
|
-
"_components-
|
|
18
|
+
"_components-CEsu6itL.js",
|
|
19
19
|
"_vendor-arizeai-DtynTLNi.js",
|
|
20
20
|
"_vendor-recharts-reihe2SJ.js",
|
|
21
21
|
"_vendor-codemirror-C5to5cK4.js"
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"name": "vendor-three"
|
|
62
62
|
},
|
|
63
63
|
"index.tsx": {
|
|
64
|
-
"file": "assets/index-
|
|
64
|
+
"file": "assets/index-Cuxn1Qdi.js",
|
|
65
65
|
"name": "index",
|
|
66
66
|
"src": "index.tsx",
|
|
67
67
|
"isEntry": true,
|
|
68
68
|
"imports": [
|
|
69
69
|
"_vendor-DsnEJuEV.js",
|
|
70
70
|
"_vendor-arizeai-DtynTLNi.js",
|
|
71
|
-
"_pages-
|
|
72
|
-
"_components-
|
|
71
|
+
"_pages-eeRVG3GZ.js",
|
|
72
|
+
"_components-CEsu6itL.js",
|
|
73
73
|
"_vendor-three-DwGkEfCM.js",
|
|
74
74
|
"_vendor-recharts-reihe2SJ.js",
|
|
75
75
|
"_vendor-codemirror-C5to5cK4.js"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as e1,p as $n,d as n1,r as p,j as e,R as Y,n as H1,a as Ee,C as Ne,b as q,s as Zn,e as Gn,f as se,g as De,h as Ze,i as _e,k as ve,l as Un,m as Qn,o as le,q as jn,t as qn,u as Wn,v as o,w as m,x as Ae,$ as N,L as K1,y as Jn,z as Xn,A as Yn,B as et,D as f1,F as Oe,E as ue,G as nt,H as tt,I as B1,S as at,J as it,Q as L1,K as rt,M as lt,N as ot,P as Ge,O as $1,T as st,U as ct,V as dt,W as ut,X as mt,Y as pt,Z as ht,_ as gt,a0 as ft,a1 as ze,a2 as z,a3 as Z1,a4 as Lt,a5 as Ct,a6 as vt,a7 as yt,a8 as bt}from"./vendor-DsnEJuEV.js";import{u as kt,_ as X,a as Se,b as Q,c as V,T as R,F as G1,d as B,I as E,e as S,f as G,A as wt,g as U1,h as y,i as D,j as b,k as xt,l as St,P as Mt,R as $,m as Me,n as Tt,o as It,L as t1,p as ee,q as ne,r as Te,s as Et,t as Q1,E as j1,v as Dt,w as Vt,x as _t,y as Ft,z as Nt,B as Pt,C as C1,D as At,G as Ot}from"./vendor-arizeai-DtynTLNi.js";import{u as zt}from"./pages-
|
|
1
|
+
import{c as e1,p as $n,d as n1,r as p,j as e,R as Y,n as H1,a as Ee,C as Ne,b as q,s as Zn,e as Gn,f as se,g as De,h as Ze,i as _e,k as ve,l as Un,m as Qn,o as le,q as jn,t as qn,u as Wn,v as o,w as m,x as Ae,$ as N,L as K1,y as Jn,z as Xn,A as Yn,B as et,D as f1,F as Oe,E as ue,G as nt,H as tt,I as B1,S as at,J as it,Q as L1,K as rt,M as lt,N as ot,P as Ge,O as $1,T as st,U as ct,V as dt,W as ut,X as mt,Y as pt,Z as ht,_ as gt,a0 as ft,a1 as ze,a2 as z,a3 as Z1,a4 as Lt,a5 as Ct,a6 as vt,a7 as yt,a8 as bt}from"./vendor-DsnEJuEV.js";import{u as kt,_ as X,a as Se,b as Q,c as V,T as R,F as G1,d as B,I as E,e as S,f as G,A as wt,g as U1,h as y,i as D,j as b,k as xt,l as St,P as Mt,R as $,m as Me,n as Tt,o as It,L as t1,p as ee,q as ne,r as Te,s as Et,t as Q1,E as j1,v as Dt,w as Vt,x as _t,y as Ft,z as Nt,B as Pt,C as C1,D as At,G as Ot}from"./vendor-arizeai-DtynTLNi.js";import{u as zt}from"./pages-eeRVG3GZ.js";import{V as Rt}from"./vendor-three-DwGkEfCM.js";import{j as q1,E as W1,l as J1,a as X1,R as Re,n as He,p as Ht,b as Kt}from"./vendor-codemirror-C5to5cK4.js";const Bt=n=>{const t=a=>({markdownDisplayMode:"text",setMarkdownDisplayMode:i=>{a({markdownDisplayMode:i})},traceStreamingEnabled:!0,setTraceStreamingEnabled:i=>{a({traceStreamingEnabled:i})},showSpanAside:!0,setShowSpanAside:i=>{a({showSpanAside:i})},showMetricsInTraceTree:!0,setShowMetricsInTraceTree:i=>{a({showMetricsInTraceTree:i})},...n});return e1()($n(n1(t),{name:"arize-phoenix-preferences"}))},Y1=p.createContext(null);function F2({children:n,...t}){const a=p.useRef();return a.current||(a.current=Bt(t)),e(Y1.Provider,{value:a.current,children:n})}function ke(n,t){const a=Y.useContext(Y1);if(!a)throw new Error("Missing PreferencesContext.Provider in the tree");return H1(a,n,t)}var Z=(n=>(n.primary="primary",n.reference="reference",n.corpus="corpus",n))(Z||{});function A(n){throw new Error("Unreachable")}function a1(n){return typeof n=="number"||n===null}function $t(n){return typeof n=="string"||n===null}function N2(n){return Array.isArray(n)?n.every(t=>typeof t=="string"):!1}function Zt(n){return typeof n=="object"&&n!==null}const i1=p.createContext(null);function Ke(){const n=Y.useContext(i1);if(n===null)throw new Error("useInferences must be used within a InferencesProvider");return n}function P2(n){return e(i1.Provider,{value:{primaryInferences:n.primaryInferences,referenceInferences:n.referenceInferences,corpusInferences:n.corpusInferences,getInferencesNameByRole:t=>{var a,i;switch(t){case Z.primary:return n.primaryInferences.name;case Z.reference:return((a=n.referenceInferences)==null?void 0:a.name)??"reference";case Z.corpus:return((i=n.corpusInferences)==null?void 0:i.name)??"corpus";default:A()}}},children:n.children})}const en=function(){var n={defaultValue:null,kind:"LocalArgument",name:"clusters"},t={defaultValue:null,kind:"LocalArgument",name:"dataQualityMetricColumnName"},a={defaultValue:null,kind:"LocalArgument",name:"fetchDataQualityMetric"},i={defaultValue:null,kind:"LocalArgument",name:"fetchPerformanceMetric"},r={defaultValue:null,kind:"LocalArgument",name:"performanceMetric"},l=[{alias:null,args:null,kind:"ScalarField",name:"primaryValue",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"referenceValue",storageKey:null}],s=[{alias:null,args:[{kind:"Variable",name:"clusters",variableName:"clusters"}],concreteType:"Cluster",kind:"LinkedField",name:"clusters",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"eventIds",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"driftRatio",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"primaryToCorpusRatio",storageKey:null},{condition:"fetchDataQualityMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"columnName",variableName:"dataQualityMetricColumnName"},{kind:"Literal",name:"metric",value:"mean"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"dataQualityMetric",plural:!1,selections:l,storageKey:null}]},{condition:"fetchPerformanceMetric",kind:"Condition",passingValue:!0,selections:[{alias:null,args:[{fields:[{kind:"Variable",name:"metric",variableName:"performanceMetric"}],kind:"ObjectValue",name:"metric"}],concreteType:"DatasetValues",kind:"LinkedField",name:"performanceMetric",plural:!1,selections:l,storageKey:null}]}],storageKey:null}];return{fragment:{argumentDefinitions:[n,t,a,i,r],kind:"Fragment",metadata:null,name:"pointCloudStore_clusterMetricsQuery",selections:s,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[n,a,t,i,r],kind:"Operation",name:"pointCloudStore_clusterMetricsQuery",selections:s},params:{cacheID:"86666967012812887ac0a0149d2d2535",id:null,metadata:{},name:"pointCloudStore_clusterMetricsQuery",operationKind:"query",text:`query pointCloudStore_clusterMetricsQuery(
|
|
2
2
|
$clusters: [ClusterInput!]!
|
|
3
3
|
$fetchDataQualityMetric: Boolean!
|
|
4
4
|
$dataQualityMetricColumnName: String
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as e,d4 as P,v as s,F,R as v,w as E,aP as S,d5 as L,d6 as R,d7 as a,d8 as w,d9 as z,b as A,da as j}from"./vendor-DsnEJuEV.js";import{S as C,j as k,Z as $,U as _,t as I,a4 as O}from"./vendor-arizeai-DtynTLNi.js";import{E as T,L as D,a as N,h as G,M,b as m,D as U,d as B,c as q,e as J,P as K,f as W,T as H,p as V,g,i as Y,j as Z,k as u,l as Q,m as h,n as b,o as X,q as ee,r as re,s as ae,t as te,A as oe,S as ne,F as se}from"./pages-
|
|
1
|
+
import{r as d,j as e,d4 as P,v as s,F,R as v,w as E,aP as S,d5 as L,d6 as R,d7 as a,d8 as w,d9 as z,b as A,da as j}from"./vendor-DsnEJuEV.js";import{S as C,j as k,Z as $,U as _,t as I,a4 as O}from"./vendor-arizeai-DtynTLNi.js";import{E as T,L as D,a as N,h as G,M,b as m,D as U,d as B,c as q,e as J,P as K,f as W,T as H,p as V,g,i as Y,j as Z,k as u,l as Q,m as h,n as b,o as X,q as ee,r as re,s as ae,t as te,A as oe,S as ne,F as se}from"./pages-eeRVG3GZ.js";import{b9 as ie,d as le,R as ce,ba as de,bb as pe}from"./components-CEsu6itL.js";import"./vendor-three-DwGkEfCM.js";import"./vendor-recharts-reihe2SJ.js";import"./vendor-codemirror-C5to5cK4.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function l(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=l(t);fetch(t.href,o)}})();const x="arize-phoenix-feature-flags",p={__CLEAR__:!0};function me(){const r=localStorage.getItem(x);if(!r)return p;try{const n=JSON.parse(r);return Object.assign({},p,n)}catch{return p}}const f=d.createContext(null);function ge(){const r=v.useContext(f);if(r===null)throw new Error("useFeatureFlags must be used within a FeatureFlagsProvider");return r}function ue(r){const[n,l]=d.useState(me()),c=t=>{localStorage.setItem(x,JSON.stringify(t)),l(t)};return e(f.Provider,{value:{featureFlags:n,setFeatureFlags:c},children:e(he,{children:r.children})})}function he(r){const{children:n}=r,{featureFlags:l,setFeatureFlags:c}=ge(),[t,o]=d.useState(!1);return P("ctrl+shift+f",()=>o(!0)),s(F,{children:[n,e(_,{type:"modal",isDismissable:!0,onDismiss:()=>o(!1),children:t&&e(C,{title:"Feature Flags",children:e(k,{height:"size-1000",padding:"size-100",children:Object.keys(l).map(i=>e($,{isSelected:l[i],onChange:y=>c({...l,[i]:y}),children:i},i))})})})]})}function be(){return e(S,{styles:r=>E`
|
|
2
2
|
body {
|
|
3
3
|
background-color: var(--ac-global-color-grey-75);
|
|
4
4
|
color: var(--ac-global-text-color-900);
|