Skip to content

Commit 5da6e3b

Browse files
committed
simple fixes
1 parent ea5bab3 commit 5da6e3b

File tree

2 files changed

+91
-542
lines changed

2 files changed

+91
-542
lines changed

python-recipes/RAG/01_redisvl.ipynb

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
},
187187
{
188188
"cell_type": "code",
189-
"execution_count": 1,
189+
"execution_count": 2,
190190
"metadata": {
191191
"id": "ggh5TzhkJkD9"
192192
},
@@ -229,7 +229,7 @@
229229
},
230230
{
231231
"cell_type": "code",
232-
"execution_count": 2,
232+
"execution_count": 5,
233233
"metadata": {
234234
"colab": {
235235
"base_uri": "https://localhost:8080/"
@@ -259,7 +259,7 @@
259259
},
260260
{
261261
"cell_type": "code",
262-
"execution_count": 3,
262+
"execution_count": 6,
263263
"metadata": {
264264
"colab": {
265265
"base_uri": "https://localhost:8080/"
@@ -268,19 +268,11 @@
268268
"outputId": "a8430acc-2e6d-45fd-fc8b-601fbbd8289b"
269269
},
270270
"outputs": [
271-
{
272-
"name": "stderr",
273-
"output_type": "stream",
274-
"text": [
275-
"/Users/robert.shelton/.pyenv/versions/3.11.9/lib/python3.11/site-packages/pypdf/_crypt_providers/_cryptography.py:32: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0.\n",
276-
" from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4\n"
277-
]
278-
},
279271
{
280272
"name": "stdout",
281273
"output_type": "stream",
282274
"text": [
283-
"Done preprocessing. Created 210 chunks of the original pdf resources/nke-10k-2023.pdf\n"
275+
"Done preprocessing. Created 211 chunks of the original pdf resources/nke-10k-2023.pdf\n"
284276
]
285277
}
286278
],
@@ -312,7 +304,7 @@
312304
},
313305
{
314306
"cell_type": "code",
315-
"execution_count": 4,
307+
"execution_count": 7,
316308
"metadata": {
317309
"colab": {
318310
"base_uri": "https://localhost:8080/",
@@ -467,31 +459,24 @@
467459
"outputId": "b0f0d2c1-41dc-4932-990b-53d2912af19e"
468460
},
469461
"outputs": [
470-
{
471-
"name": "stderr",
472-
"output_type": "stream",
473-
"text": [
474-
"/Users/robert.shelton/.pyenv/versions/3.11.9/lib/python3.11/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\n",
475-
" warnings.warn(\n",
476-
"/Users/robert.shelton/.pyenv/versions/3.11.9/lib/python3.11/site-packages/huggingface_hub/file_download.py:1142: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.\n",
477-
" warnings.warn(\n"
478-
]
479-
},
480462
{
481463
"data": {
482464
"text/plain": [
483465
"True"
484466
]
485467
},
486-
"execution_count": 4,
468+
"execution_count": 7,
487469
"metadata": {},
488470
"output_type": "execute_result"
489471
}
490472
],
491473
"source": [
492-
"from redisvl.utils.vectorize import HFTextVectorizer\n",
474+
"import warnings\n",
493475
"import pandas as pd\n",
494476
"from tqdm.auto import tqdm\n",
477+
"from redisvl.utils.vectorize import HFTextVectorizer\n",
478+
"\n",
479+
"warnings.filterwarnings(\"ignore\")\n",
495480
"\n",
496481
"hf = HFTextVectorizer(\"sentence-transformers/all-MiniLM-L6-v2\")\n",
497482
"os.environ[\"TOKENIZERS_PARALLELISM\"] = \"false\"\n",

0 commit comments

Comments
 (0)