Skip to content

Commit

Permalink
feat: adds o1 testing demo project (#4636)
Browse files Browse the repository at this point in the history
* Adds o1 testing demo project
  • Loading branch information
Jgilhuly authored Sep 17, 2024
1 parent 229bfe8 commit 8140eaf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 41 deletions.
8 changes: 8 additions & 0 deletions src/phoenix/trace/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ class TracesFixture:
),
)

demo_o1_preview_timeseries_testing_fixture = TracesFixture(
name="demo_o1_preview_timeseries_evals",
project_name="demo_o1_preview_timeseries",
description="Shows the traces for a timeseries evaluation of o1-preview",
file_name="o1-preview-testing-traces.parquet",
)

demo_llama_index_rag_llm_fixture = TracesFixture(
name="demo_llama_index_rag_llm",
project_name="demo_llama_index_rag_llm",
Expand Down Expand Up @@ -252,6 +259,7 @@ class TracesFixture:
TRACES_FIXTURES: List[TracesFixture] = [
demo_llama_index_rag_fixture,
demo_llama_index_rag_llm_fixture,
demo_o1_preview_timeseries_testing_fixture,
llama_index_rag_fixture,
llama_index_rag_fixture_with_davinci,
langchain_rag_stuff_document_chain_fixture,
Expand Down
47 changes: 6 additions & 41 deletions tutorials/tracing/groq_tracing_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Y52gaK9n_oTZ",
"outputId": "be9068b4-17e8-419e-a393-04d057c2d7ce"
},
"metadata": {},
"outputs": [],
"source": [
"! pip install -q openinference-instrumentation-groq groq arize-phoenix"
Expand All @@ -57,9 +51,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Z_II5NGXA3k-"
},
"metadata": {},
"outputs": [],
"source": [
"import os\n",
Expand All @@ -85,14 +77,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 86
},
"id": "9o1L0rXTD_ED",
"outputId": "fa273488-b603-4c2e-d028-d412dc025e46"
},
"metadata": {},
"outputs": [],
"source": [
"import phoenix as px\n",
Expand All @@ -116,9 +101,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "jdP_j9YF_qAr"
},
"metadata": {},
"outputs": [],
"source": [
"from openinference.instrumentation.groq import GroqInstrumentor\n",
Expand All @@ -140,9 +123,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "0VE3hHDF_9TB"
},
"metadata": {},
"outputs": [],
"source": [
"from groq import Groq\n",
Expand Down Expand Up @@ -192,24 +173,8 @@
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"name": "python"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 8140eaf

Please sign in to comment.