Skip to content

Commit 2afc1fb

Browse files
committed
pin version
1 parent f967965 commit 2afc1fb

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

python-recipes/vector-search/00_redispy.ipynb

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,33 @@
6363
},
6464
{
6565
"cell_type": "code",
66-
"execution_count": 1,
66+
"execution_count": 24,
6767
"id": "c620286e",
6868
"metadata": {},
6969
"outputs": [
70+
{
71+
"name": "stderr",
72+
"output_type": "stream",
73+
"text": [
74+
"huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...\n",
75+
"To disable this warning, you can either:\n",
76+
"\t- Avoid using `tokenizers` before the fork if possible\n",
77+
"\t- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)\n"
78+
]
79+
},
7080
{
7181
"name": "stdout",
7282
"output_type": "stream",
7383
"text": [
84+
"\n",
85+
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.0\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1\u001b[0m\n",
86+
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
7487
"Note: you may need to restart the kernel to use updated packages.\n"
7588
]
7689
}
7790
],
7891
"source": [
79-
"%pip install -q redis numpy sentence-transformers"
92+
"%pip install -q \"redis>=5.0.5\" numpy sentence-transformers"
8093
]
8194
},
8295
{
@@ -627,7 +640,7 @@
627640
},
628641
{
629642
"cell_type": "code",
630-
"execution_count": 19,
643+
"execution_count": null,
631644
"id": "d3110324",
632645
"metadata": {},
633646
"outputs": [
@@ -677,7 +690,7 @@
677690
},
678691
{
679692
"cell_type": "code",
680-
"execution_count": 16,
693+
"execution_count": null,
681694
"id": "3307ab80",
682695
"metadata": {},
683696
"outputs": [

0 commit comments

Comments
 (0)