Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 1544c89

Browse files
Merge pull request #126 from cohere-ai/heads/refs/pin
Pin notebooks to cohere<5
2 parents 0c0e14b + 636522f commit 1544c89

File tree

34 files changed

+209
-175
lines changed

34 files changed

+209
-175
lines changed

notebooks/Analyzing_Hacker_News_with_Six_Language_Understanding_Methods.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"# Install Cohere for embeddings, Umap to reduce embeddings to 2 dimensions, \n",
4141
"# Altair for visualization, Annoy for approximate nearest neighbor search\n",
4242
"# tqdm for progress bars, bertopic for its ctfidf algorithm\n",
43-
"!pip install cohere umap-learn altair annoy datasets tqdm bertopic"
43+
"# TODO: upgrade to \"cohere>5\"\n",
44+
"!pip install \"cohere<5\" umap-learn altair annoy datasets tqdm bertopic"
4445
]
4546
},
4647
{

notebooks/Article_Recommender_with_Text_Embedding_Classification_Extraction.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
}
8383
],
8484
"source": [
85-
"! pip install cohere"
85+
"# TODO: upgrade to \"cohere>5\"",
86+
"! pip install \"cohere<5\""
8687
]
8788
},
8889
{

notebooks/Basic_Semantic_Search.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"source": [
3737
"# Install Cohere for embeddings, Umap to reduce embeddings to 2 dimensions, \n",
3838
"# Altair for visualization, Annoy for approximate nearest neighbor search\n",
39-
"!pip install cohere umap-learn altair annoy datasets tqdm"
39+
"# TODO: upgrade to \"cohere>5\"",
40+
"!pip install \"cohere<5\" umap-learn altair annoy datasets tqdm"
4041
]
4142
},
4243
{

notebooks/Basic_Summarization_Notebook.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"outputs": [],
3030
"source": [
3131
"# Let's first install Cohere's python SDK\n",
32-
"!pip install cohere"
32+
"# TODO: upgrade to \"cohere>5\"",
33+
"!pip install \"cohere<5\""
3334
]
3435
},
3536
{

notebooks/Brainstorming_Story_Ideas_with_Cohere_and_Stable_Diffusion.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
"outputs": [],
3333
"source": [
34-
"!pip install stability-sdk cohere > /dev/null"
34+
"# TODO: upgrade to \"cohere>5\"\n",
35+
"!pip install \"cohere<5\" stability-sdk > /dev/null"
3536
]
3637
},
3738
{

notebooks/Classify_Endpoint_Colab.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"outputs": [],
4444
"source": [
4545
"# Install the libraries\n",
46-
"! pip install cohere altair umap-learn > /dev/null"
46+
"# TODO: upgrade to \"cohere>5\"",
47+
"! pip install \"cohere<5\" altair umap-learn > /dev/null"
4748
]
4849
},
4950
{

notebooks/Embed_Endpoint_Colab.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"outputs": [],
3333
"source": [
3434
"# Install the libraries\n",
35-
"! pip install cohere altair umap-learn -q"
35+
"# TODO: upgrade to \"cohere>5\"",
36+
"! pip install \"cohere<5\" altair umap-learn -q"
3637
]
3738
},
3839
{

notebooks/Embed_Jobs_Semantic_Search.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"outputs": [],
1919
"source": [
20-
"! pip install cohere hnswlib -q"
20+
"# TODO: upgrade to \"cohere>5\"",
21+
"! pip install \"cohere<5\" hnswlib -q"
2122
]
2223
},
2324
{

notebooks/Embed_Jobs_Serverless_Pinecone_Semantic_Search.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"outputs": [],
1919
"source": [
20-
"! pip install cohere pinecone-client==3.0.0.dev3 -q"
20+
"# TODO: upgrade to \"cohere>5\"\n",
21+
"! pip install \"cohere<5\" pinecone-client==3.0.0.dev3 -q"
2122
]
2223
},
2324
{

notebooks/End_To_End_Wikipedia_Search.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
{
4343
"cell_type": "code",
4444
"source": [
45-
"!pip install cohere weaviate-client"
45+
"# TODO: upgrade to \"cohere>5\"",
46+
"!pip install \"cohere<5\" weaviate-client"
4647
],
4748
"metadata": {
4849
"colab": {

0 commit comments

Comments
 (0)