docs: migrate quickstart-evals notebook to current phoenix-evals API - #75
Closed
jimbobbennett wants to merge 1 commit into
Closed
docs: migrate quickstart-evals notebook to current phoenix-evals API#75jimbobbennett wants to merge 1 commit into
jimbobbennett wants to merge 1 commit into
Conversation
Update the evaluations quickstart off the deprecated v7 stack (ArizeExportClient/export_model_to_df, OpenAIModel, llm_classify, log_evaluations_sync) onto the current API: - export spans via ArizeClient().spans.export_to_df - build the judge with phoenix.evals LLM + create_classifier - run with evaluate_dataframe - flatten with to_annotation_dataframe and log via client.spans.update_evaluations Keeps the notebook in sync with the AX docs evaluations quickstart. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Contributor
Author
|
Pairs with docs PR Arize-ai/docs#766 (Phoenix Evals integration, closes Arize-ai/docs#92). |
PatriciaArnedo
approved these changes
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Migrates
python/llm/evaluation/quickstart-evals.ipynboff the deprecated v7 evaluation stack onto the current API.ArizeExportClient(...).export_model_to_df(model_id=..., environment=Environments.TRACING)ArizeClient(...).spans.export_to_df(project_name=...)OpenAIModel(model="gpt-4o", ...)LLM(provider="openai", model="gpt-4.1")llm_classify(dataframe, template, model, rails=[...])+nest_asynciocreate_classifier(...)+evaluate_dataframe(...)arize.pandas.logger.Client(...).log_evaluations_sync(...)to_annotation_dataframe(...)→client.spans.update_evaluations(...)Why
The paired AX docs page (
ax/cookbooks/evaluate/evaluations-quickstart) is being migrated to the current API, and this Colab is linked directly from that page. This keeps the notebook and doc in sync.phoenix.evals' classicllm_classify/OpenAIModelinterface is deprecated (moved tophoenix.evals.legacy) in favor of theLLM+create_classifier+evaluate_dataframeAPI.Testing
Executed end-to-end via
jupyter nbconvert --executeagainst a live AX space witharize8.35.0 /arize-phoenix-evals3.x: exported 4 spans, graded them (positive/negative), and uploaded —records_updated: 4, no cell errors.🤖 Generated with Claude Code