Skip to content

Commit

Permalink
docs: pin tutorials to openai<1 (#1718)
Browse files Browse the repository at this point in the history
* add more notebooks

* langchain adjustments

* more adjustments

* update toxicity evals notebook

* Fix more eval notebooks

* remove misc mkdown file

* fix
  • Loading branch information
mikeldking authored Nov 7, 2023
1 parent c7782c3 commit 831c041
Show file tree
Hide file tree
Showing 19 changed files with 125 additions and 580 deletions.
8 changes: 4 additions & 4 deletions tutorials/evals/evaluate_QA_classifications.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

314 changes: 46 additions & 268 deletions tutorials/evals/evaluate_hallucination_classifications.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tutorials/evals/evaluate_relevance_classifications.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tutorials/evals/evaluate_summarization_classifications.ipynb

Large diffs are not rendered by default.

319 changes: 41 additions & 278 deletions tutorials/evals/evaluate_toxicity_classifications.ipynb

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions tutorials/find_cluster_export_and_explore_with_gpt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install openai\n",
"!pip install ipywidgets"
"!pip install \"openai<1\" ipywidgets pandas"
]
},
{
Expand Down Expand Up @@ -210,7 +209,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Create the dataset from the conversaiton dataframe & schema\n",
"# Create the dataset from the conversation dataframe & schema\n",
"conv_ds = px.Dataset(conversations_df, schema, \"production\")"
]
},
Expand Down Expand Up @@ -254,7 +253,7 @@
"prompt_cluster_json = px.active_session().exports[-1].prompt.to_json()\n",
"prompt_baseline_jason = conversations_df.sample(n=10).prompt.to_json()\n",
"response_cluster_json = px.active_session().exports[-1].response.to_json()\n",
"chat_intial_input = pre_prompt + prompt_cluster_json"
"chat_initial_input = pre_prompt + prompt_cluster_json"
]
},
{
Expand Down Expand Up @@ -305,7 +304,7 @@
"display(submit_button)\n",
"\n",
"with output:\n",
" message = chat_intial_input\n",
" message = chat_initial_input\n",
" if message:\n",
" messages.append(\n",
" {\"role\": \"user\", \"content\": message},\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix[experimental] langchain chromadb openai tiktoken playwright asyncio nest_asyncio"
"!pip install \"arize-phoenix[experimental]\" \"langchain<=0.0.330\" \"openai<1\" chromadb tiktoken playwright asyncio nest_asyncio"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/internal/llama_index_tracing_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix[experimental]\" gcsfs llama-index tqdm"
"!pip install \"arize-phoenix[experimental]\" \"llama-index<=0.8.61\" gcsfs tqdm"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix langchain openai pinecone-client"
"!pip install \"langchain<0.0.330\" \"openai<1\" arize-phoenix pinecone-client"
]
},
{
Expand Down
7 changes: 6 additions & 1 deletion tutorials/llama_index_search_and_retrieval_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
"## 1. Install Dependencies and Import Libraries"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -75,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix[experimental]\" gcsfs langchain llama-index openai"
"!pip install \"arize-phoenix[experimental]\" \"llama-index<=0.8.61\" \"openai<1\" \"langchain<=0.0.330\" gcsfs"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions tutorials/llm_generative_gpt_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Create the dataset from the conversaiton dataframe & schema\n",
"# Create the dataset from the conversation dataframe & schema\n",
"conv_ds = px.Dataset(conversations_df, schema, \"production\")"
]
},
Expand Down Expand Up @@ -231,7 +231,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install openai"
"!pip install \"openai<1\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install gcsfs \"arize-phoenix[experimental]\" openai"
"!pip install gcsfs \"arize-phoenix[experimental]\" \"openai<1\""
]
},
{
Expand All @@ -89,7 +89,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install langchain llama-index\n",
"!pip install \"langchain<=0.0.330\" \"llama-index<=0.8.61\"\n",
"!pip install pymilvus==2.2.15\n",
"!pip install --upgrade --force-reinstall grpcio==1.56.0"
]
Expand Down
2 changes: 1 addition & 1 deletion tutorials/ragas_retrieval_evals_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix gcsfs langchain llama-index datasets ragas"
"!pip install \"langchain<=0.0.330\" \"llama-index<=0.8.61\" \"openai<1\" arize-phoenix gcsfs datasets ragas"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tracing/langchain_agent_tracing_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix langchain openai"
"!pip install \"langchain<=0.0.330\" \"openai<1\" numexpr arize-phoenix"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tracing/langchain_tracing_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix langchain openai tiktoken"
"!pip install \"langchain<=0.0.330\" \"openai<1\" arize-phoenix tiktoken"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix llama-index openai"
"!pip install \"llama-index<=0.8.61\" \"openai<1\" arize-phoenix"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tracing/llama_index_tracing_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix[experimental]\" gcsfs \"llama-index>0.8.36\" openai"
"!pip install \"arize-phoenix[experimental]\" \"llama-index>0.8.36\" \"openai<1\" gcsfs"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tracing/openai_tracing_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix jsonschema openai"
"!pip install \"openai<1\" arize-phoenix jsonschema"
]
},
{
Expand Down

0 comments on commit 831c041

Please sign in to comment.