diff --git a/tutorials/evals/evaluate_user_frustration_classifications.ipynb b/tutorials/evals/evaluate_user_frustration_classifications.ipynb index da5d9acea0..b15ac60b82 100644 --- a/tutorials/evals/evaluate_user_frustration_classifications.ipynb +++ b/tutorials/evals/evaluate_user_frustration_classifications.ipynb @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -59,18 +59,7 @@ }, "outputs": [], "source": [ - "!pip install -qqq \"arize-phoenix\" \"openai>=1\" ipython matplotlib pycm scikit-learn tiktoken" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "id": "P1eMMKBhxPBE" - }, - "outputs": [], - "source": [ - "!pip -qqq install 'arize-phoenix[evals]'" + "!pip install -qqq \"arize-phoenix\" \"openai>=1\" ipython matplotlib pycm scikit-learn tiktoken openinference-instrumentation-openai" ] }, { @@ -245,7 +234,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/", @@ -266,11 +255,14 @@ } ], "source": [ + "from openinference.instrumentation.openai import OpenAIInstrumentor\n", + "\n", "import phoenix as px\n", - "from phoenix.trace.openai import OpenAIInstrumentor\n", + "from phoenix.otel import register\n", "\n", "(session := px.launch_app()).view()\n", - "OpenAIInstrumentor().instrument()" + "tracer_provider = register()\n", + "OpenAIInstrumentor(tracer_provider=tracer_provider).instrument()" ] }, {