Skip to content

Commit

Permalink
tutorials/evals/evaluate_user_frustration_classifications.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy committed Oct 30, 2024
1 parent 33eb962 commit 5edc157
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions tutorials/evals/evaluate_user_frustration_classifications.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -245,7 +234,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -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()"
]
},
{
Expand Down

0 comments on commit 5edc157

Please sign in to comment.