Skip to content

Commit

Permalink
Pin a minimum version for each notebook (0.7.2 default) (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Sep 10, 2024
1 parent cc753b0 commit 203eee0
Show file tree
Hide file tree
Showing 62 changed files with 62 additions and 83 deletions.
2 changes: 1 addition & 1 deletion examples/Agents_Function_Calling_Barista_Bot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"outputs": [],
"source": [
"!pip install -qU google-generativeai"
"!pip install -qU \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Analyze_a_Video_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Analyze_a_Video_Historic_Event_Recognition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Analyze_a_Video_Summarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Anomaly_detection_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Apollo_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Classify_text_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Entity_Extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Guess_the_shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Object_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Opossum_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"outputs": [],
"source": [
"!pip install -q -U google-generativeai"
"!pip install -q -U \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Search_Wikipedia_using_ReAct.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
},
"outputs": [],
"source": [
"!pip install -q google-generativeai"
"!pip install -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Search_reranking_using_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},
"outputs": [],
"source": [
"!pip install -q -U google-generativeai"
"!pip install -q -U \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Story_Writing_with_Prompt_Chaining.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
"outputs": [],
"source": [
"! pip install -q -U google-generativeai"
"! pip install -q -U \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Tag_and_caption_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Talk_to_documents_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Translate_a_Public_Domain_Book.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai tqdm"
"!pip install -U -q \"google-generativeai>=0.7.2\" tqdm"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Upload_files_to_Colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Voice_memos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Working_with_Charts_Graphs_and_Slide_Decks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/chromadb/Vectordb_with_chroma.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai\n",
"!pip install -U -q \"google-generativeai>=0.7.2\"\n",
"!pip install -q chromadb"
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/json_capabilities/Entity_Extraction_JSON.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/json_capabilities/Sentiment_Analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/json_capabilities/Text_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai # Install the Python SDK"
"!pip install -U -q \"google-generativeai>=0.7.2\" # Install the Python SDK"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/json_capabilities/Text_Summarization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/langchain/Chat_with_SQL_using_langchain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai langchain langchain-community langchain-google-genai"
"!pip install -U -q \"google-generativeai>=0.7.2\" langchain langchain-community langchain-google-genai"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Adding_context_information.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Basic_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Basic_Code_Generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Basic_Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Basic_Information_Extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Basic_Reasoning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Chain_of_thought_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Few_shot_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Providing_base_cases.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Role_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Self_ask_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/prompting/Zero_shot_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/qdrant/Qdrant_similarity_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
],
"source": [
"!pip install -q google-generativeai\n",
"!pip install -q \"google-generativeai>=0.7.2\"\n",
"!pip install -q protobuf==4.25.1 qdrant-client[fastembed]"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"source": [
"!sudo apt-get install python3.11\n",
"!pip install weaviate-client==4.7.1\n",
"!pip install -U -q google-generativeai\n",
"!pip install -U -q \"google-generativeai>=0.7.2\"\n",
"!pip install requests\n",
"!pip install 'protobuf>=5'"
]
Expand Down
2 changes: 1 addition & 1 deletion quickstarts/Audio.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
],
"source": [
"!pip install -q -U google-generativeai"
"!pip install -q -U \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion quickstarts/Authentication.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
},
"outputs": [],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion quickstarts/Authentication_with_OAuth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
}
],
"source": [
"!pip install -U -q google-generativeai"
"!pip install -U -q \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion quickstarts/Code_Execution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
],
"source": [
"!pip install -Uq google-generativeai"
"!pip install -Uq \"google-generativeai>=0.7.2\""
]
},
{
Expand Down
Loading

0 comments on commit 203eee0

Please sign in to comment.