Skip to content

Commit

Permalink
chore: add embeddings extra to notebook pip install (#5143)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang authored Oct 22, 2024
1 parent 035e394 commit b632b68
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 46 deletions.
2 changes: 1 addition & 1 deletion tutorials/credit_card_fraud_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix>=3.20.0\" \"arize[AutoEmbeddings]\""
"%pip install -Uq \"arize-phoenix[embeddings]\" \"arize[AutoEmbeddings]\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/find_cluster_export_and_explore_with_gpt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qq \"arize-phoenix>=3.20.0\""
"%pip install -Uqq \"arize-phoenix[embeddings]\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/image_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix>=3.20.0\""
"%pip install -Uq \"arize-phoenix[embeddings]\""
]
},
{
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[evals,llama-index]\" gcsfs nltk langchain llama_index openai"
"%pip install -Uq \"arize-phoenix[evals,llama-index,embeddings]\" gcsfs nltk langchain llama_index openai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/llama_index_search_and_retrieval_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix[evals]>=3.20.0\" \"openai>=1\" \"llama-index<0.10.0\" gcsfs"
"%pip install -Uq \"arize-phoenix[evals,embeddings]\" \"openai>=1\" \"llama-index<0.10.0\" gcsfs"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/llm_generative_gpt_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix>=3.20.0\""
"%pip install -Uq \"arize-phoenix[embeddings]\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/llm_ops_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qq \"arize-phoenix[evals,llama-index]\" \"llama-index-llms-openai\" \"openai>=1\" gcsfs nest_asyncio"
"%pip install -Uqq \"arize-phoenix[evals,llama-index,embeddings]\" \"llama-index-llms-openai\" \"openai>=1\" gcsfs nest_asyncio"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/llm_summarization_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize-phoenix>=3.20.0\" \"arize[AutoEmbeddings, LLM_Evaluation]\""
"%pip install -Uq \"arize-phoenix[embeddings]\" \"arize[AutoEmbeddings, LLM_Evaluation]\""
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install gcsfs \"langchain>=0.0.334\" \"arize-phoenix[evals,llama-index]>=3.20.0\" \"openai>=1\""
"%pip install -Uq gcsfs \"langchain>=0.0.334\" \"arize-phoenix[evals,llama-index,embeddings]\" \"openai>=1\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/mistral/evaluate_rag--mistral.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -qq \"arize-phoenix>=3.20.0\" \"arize-phoenix-evals>=0.5.0\" \"llama-index==0.10.19\" \"llama-index-llms-mistralai\" \"llama-index-embeddings-mistralai\" \"openinference-instrumentation-mistralai>=0.0.2\" \"openinference-instrumentation-llama-index>=1.0.0\" \"llama-index-callbacks-arize-phoenix>=0.1.2\" gcsfs nest_asyncio"
"%pip install -Uqq \"arize-phoenix[embeddings]\" \"arize-phoenix-evals>=0.5.0\" \"llama-index==0.10.19\" \"llama-index-llms-mistralai\" \"llama-index-embeddings-mistralai\" \"openinference-instrumentation-mistralai>=0.0.2\" \"openinference-instrumentation-llama-index>=1.0.0\" \"llama-index-callbacks-arize-phoenix>=0.1.2\" gcsfs nest_asyncio"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install --upgrade langchain qdrant-client langchain_community tiktoken cohere langchain-openai \"protobuf>=3.20.3\" \"arize-phoenix[evals, llama-index]\" \"openai>=1\""
"%pip install -Uq langchain qdrant-client langchain_community tiktoken cohere langchain-openai \"protobuf>=3.20.3\" \"arize-phoenix[evals,llama-index,embeddings]\" \"openai>=1\""
]
},
{
Expand Down
38 changes: 5 additions & 33 deletions tutorials/quickstarts/inferences_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install arize-phoenix"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e5c96c16",
"metadata": {},
"outputs": [],
"source": [
"import phoenix as px"
"%pip install -Uq 'arize-phoenix[embeddings]'"
]
},
{
Expand Down Expand Up @@ -89,6 +79,8 @@
"source": [
"import pandas as pd\n",
"\n",
"import phoenix as px\n",
"\n",
"train_df = pd.read_parquet(\n",
" \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet\"\n",
")"
Expand Down Expand Up @@ -363,13 +355,7 @@
"cell_type": "code",
"execution_count": null,
"id": "e6e52bc5",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"prod_ds = px.Inferences(dataframe=prod_df, schema=prod_schema, name=\"production\")"
Expand Down Expand Up @@ -504,22 +490,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"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.11.9"
"name": "python"
}
},
"nbformat": 4,
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 @@ -72,7 +72,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"ragas==0.1.4\" pypdf \"arize-phoenix[llama-index]\" \"openai>=1.0.0\" pandas"
"%pip install -Uq \"ragas==0.1.4\" pypdf \"arize-phoenix[llama-index,embeddings]\" \"openai>=1.0.0\" pandas"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tutorials/sentiment_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"arize[AutoEmbeddings]\" \"arize-phoenix>=3.20.0\""
"%pip install -Uq \"arize[AutoEmbeddings]\" \"arize-phoenix[embeddings]\""
]
},
{
Expand Down

0 comments on commit b632b68

Please sign in to comment.