Skip to content

Commit 328a1cc

Browse files
Upgrade RedisVL to 0.3.0 (#27)
* bumps redisvl minor version
1 parent de89741 commit 328a1cc

13 files changed

+699
-1130
lines changed

python-recipes/RAG/01_redisvl.ipynb

Lines changed: 92 additions & 224 deletions
Large diffs are not rendered by default.

python-recipes/RAG/02_langchain.ipynb

Lines changed: 118 additions & 316 deletions
Large diffs are not rendered by default.

python-recipes/RAG/03_llamaindex.ipynb

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,14 @@
7575
},
7676
{
7777
"cell_type": "code",
78-
"execution_count": 2,
78+
"execution_count": 1,
7979
"metadata": {},
8080
"outputs": [
8181
{
8282
"name": "stdout",
8383
"output_type": "stream",
8484
"text": [
85-
"\u001b[33mWARNING: You are using pip version 22.0.4; however, version 24.0 is available.\n",
86-
"You should consider upgrading via the '/Users/robert.shelton/.pyenv/versions/3.9.12/bin/python -m pip install --upgrade pip' command.\u001b[0m\u001b[33m\n",
87-
"\u001b[0mNote: you may need to restart the kernel to use updated packages.\n"
85+
"Note: you may need to restart the kernel to use updated packages.\n"
8886
]
8987
}
9088
],
@@ -150,7 +148,7 @@
150148
},
151149
{
152150
"cell_type": "code",
153-
"execution_count": 4,
151+
"execution_count": 2,
154152
"metadata": {},
155153
"outputs": [],
156154
"source": [
@@ -189,7 +187,7 @@
189187
},
190188
{
191189
"cell_type": "code",
192-
"execution_count": 16,
190+
"execution_count": 3,
193191
"metadata": {
194192
"colab": {
195193
"base_uri": "https://localhost:8080/"
@@ -202,7 +200,7 @@
202200
"name": "stdout",
203201
"output_type": "stream",
204202
"text": [
205-
"Sample doc Doc ID: 0cd0b3a7-7b46-4c09-8989-7fd7032e9299\n",
203+
"Sample doc Doc ID: dca6856a-186a-409d-b388-7c2baa7883e9\n",
206204
"Text: UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington,\n",
207205
"D.C. 20549 FORM 10-K (Mark One) ☒ ANNUAL REPORT PURSUANT T O SECTION\n",
208206
"13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 For the fiscal year\n",
@@ -227,7 +225,7 @@
227225
},
228226
{
229227
"cell_type": "code",
230-
"execution_count": 8,
228+
"execution_count": 4,
231229
"metadata": {},
232230
"outputs": [],
233231
"source": [
@@ -247,17 +245,9 @@
247245
},
248246
{
249247
"cell_type": "code",
250-
"execution_count": 9,
248+
"execution_count": 5,
251249
"metadata": {},
252-
"outputs": [
253-
{
254-
"name": "stdout",
255-
"output_type": "stream",
256-
"text": [
257-
"14:11:50 redisvl.index.index INFO Index already exists, overwriting.\n"
258-
]
259-
}
260-
],
250+
"outputs": [],
261251
"source": [
262252
"from llama_index.core import StorageContext\n",
263253
"from redis import Redis\n",
@@ -280,7 +270,7 @@
280270
},
281271
{
282272
"cell_type": "code",
283-
"execution_count": 10,
273+
"execution_count": 6,
284274
"metadata": {},
285275
"outputs": [],
286276
"source": [
@@ -298,30 +288,30 @@
298288
},
299289
{
300290
"cell_type": "code",
301-
"execution_count": 14,
291+
"execution_count": 7,
302292
"metadata": {},
303293
"outputs": [
304294
{
305295
"name": "stdout",
306296
"output_type": "stream",
307297
"text": [
308-
"Node ID: c46402e9-977e-4511-82ff-0c5a925ce960\n",
298+
"Node ID: 83736c26-06ac-4eb3-aaa0-52757d0cd84f\n",
309299
"Text: Table of Contents FISCAL 2023 NIKE BRAND REVENUE HIGHLIGHTS The\n",
310300
"following tables present NIKE Brand revenues disaggregated by\n",
311301
"reportable operating segment, distribution channel and major product\n",
312302
"line: FISCAL 2023 COMPARED TO FISCAL 2022 •NIKE, Inc. Revenues were\n",
313303
"$51.2 billion in fiscal 2023, which increased 10% and 16% compared to\n",
314304
"fiscal 2022 on...\n",
315-
"Score: 0.900\n",
305+
"Score: 0.899\n",
316306
"\n",
317-
"Node ID: 3b568603-3de0-46c4-9a02-266e11122e2f\n",
318-
"Text: Table of Contents NORTH AMERICA (Dollars in millions) FISCAL\n",
319-
"2023FISCAL 2022 % CHANGE% CHANGE EXCLUDING CURRENCY CHANGESFISCAL 2021\n",
320-
"% CHANGE% CHANGE EXCLUDING CURRENCY CHANGES Revenues by: Footwear $\n",
321-
"14,897 $ 12,228 22 % 22 %$ 11,644 5 % 5 % Apparel 5,947 5,492 8 % 9 %\n",
322-
"5,028 9 % 9 % Equipment 764 633 21 % 21 % 507 25 % 25 % TOTAL REVENUES\n",
323-
"$ 21,6...\n",
324-
"Score: 0.886\n",
307+
"Node ID: 5b56a72c-905a-4ef8-b7fd-a0b271defdf5\n",
308+
"Text: NIKE, Inc. Revenues in FISCAL 2023 totaled $51,217 million,\n",
309+
"showing a 10% increase compared to FISCAL 2022. NIKE Brand Revenues in\n",
310+
"FISCAL 2023 were divided by category: Footwear was $33,135 million,\n",
311+
"Apparel was $13,843 million, and Equipment was $1,727 million. Total\n",
312+
"NIKE Brand Revenues in FISCAL 2023 amounted to $48,763 million.\n",
313+
"Converse Corpor...\n",
314+
"Score: 0.891\n",
325315
"\n"
326316
]
327317
}
@@ -342,7 +332,7 @@
342332
},
343333
{
344334
"cell_type": "code",
345-
"execution_count": 15,
335+
"execution_count": 8,
346336
"metadata": {},
347337
"outputs": [
348338
{
@@ -351,7 +341,7 @@
351341
"\"NIKE's revenue in fiscal 23 was $51.2 billion.\""
352342
]
353343
},
354-
"execution_count": 15,
344+
"execution_count": 8,
355345
"metadata": {},
356346
"output_type": "execute_result"
357347
}
@@ -382,7 +372,7 @@
382372
"name": "python",
383373
"nbconvert_exporter": "python",
384374
"pygments_lexer": "ipython3",
385-
"version": "3.9.12"
375+
"version": "3.11.9"
386376
},
387377
"widgets": {
388378
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)