Skip to content

Commit

Permalink
chore: Upgrade dependencies
Browse files Browse the repository at this point in the history
Tested at faiss-cpu==1.7.4, ipywidgets==7.6.5, langchain==0.0.249,
pillow==9.5.0, pypdf==3.14.0, transformers==4.31.0 Switched to ranges
for stable libraries, kept pinned version for unstable langchain.
  • Loading branch information
athewsey committed Aug 1, 2023
1 parent ad0f57f commit a1bca2a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 00_Intro/bedrock_boto3_setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 01_Generation/00_generate_w_bedrock.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 01_Generation/01_zero_shot_generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 01_Generation/02_contextual_generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190 transformers==4.24.0"
"%pip install --quiet langchain==0.0.249 \"transformers>=4.24,<5\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 02_Summarization/01.small-text-summarization-claude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 02_Summarization/01.small-text-summarization-titan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 02_Summarization/02.long-text-summarization-titan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190 transformers==4.24.0"
"%pip install --quiet langchain==0.0.249 \"transformers>=4.24,<5\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 03_QuestionAnswering/00_qa_w_bedrock_titan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet langchain==0.0.190"
"%pip install --quiet langchain==0.0.249"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 03_QuestionAnswering/01_qa_w_rag_claude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet faiss-cpu==1.7.4 langchain==0.0.190 pypdf=3.8.1"
"%pip install --quiet \"faiss-cpu>=1.7,<2\" langchain==0.0.249 \"pypdf>=3.8,<4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 04_Chatbot/00_Chatbot_AI21.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --quiet faiss-cpu==1.7.4 \"ipywidgets>=7,<8\" langchain==0.0.190 pypdf==3.8.1"
"%pip install --quiet \"faiss-cpu>=1.7,<2\" \"ipywidgets>=7,<8\" langchain==0.0.249 \"pypdf>=3.8,<4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 04_Chatbot/00_Chatbot_Claude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --quiet faiss-cpu==1.7.4 \"ipywidgets>=7,<8\" langchain==0.0.190 pypdf==3.8.1"
"%pip install --quiet \"faiss-cpu>=1.7,<2\" \"ipywidgets>=7,<8\" langchain==0.0.249 \"pypdf>=3.8,<4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 04_Chatbot/00_Chatbot_Titan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --quiet faiss-cpu==1.7.4 \"ipywidgets>=7,<8\" langchain==0.0.190 pypdf==3.8.1"
"%pip install --quiet \"faiss-cpu>=1.7,<2\" \"ipywidgets>=7,<8\" langchain==0.0.249 \"pypdf>=3.8,<4\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion 05_Image/Bedrock Stable Diffusion XL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
" ../dependencies/boto3-1.26.162-py3-none-any.whl \\\n",
" ../dependencies/botocore-1.29.162-py3-none-any.whl\n",
"\n",
"%pip install --quiet pillow==9.5.0"
"%pip install --quiet \"pillow>=9.5,<10\""
]
},
{
Expand Down

0 comments on commit a1bca2a

Please sign in to comment.