Skip to content

Commit 3bed876

Browse files
author
Sam Partee
committed
Fix jupyter dependency bug
1 parent 10a9766 commit 3bed876

File tree

5 files changed

+94
-87
lines changed

5 files changed

+94
-87
lines changed

docs/user_guide/getting_started_01.ipynb

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,15 @@
177177
"cell_type": "code",
178178
"execution_count": 3,
179179
"metadata": {},
180-
"outputs": [],
180+
"outputs": [
181+
{
182+
"name": "stdout",
183+
"output_type": "stream",
184+
"text": [
185+
"Index already exists, overwriting.\n"
186+
]
187+
}
188+
],
181189
"source": [
182190
"from redisvl.index import SearchIndex\n",
183191
"\n",
@@ -210,8 +218,8 @@
210218
"name": "stdout",
211219
"output_type": "stream",
212220
"text": [
213-
"\u001b[32m11:16:09\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
214-
"\u001b[32m11:16:09\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. user_index\n"
221+
"\u001b[32m18:25:34\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
222+
"\u001b[32m18:25:34\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. user_index\n"
215223
]
216224
}
217225
],
@@ -271,7 +279,7 @@
271279
"name": "stdout",
272280
"output_type": "stream",
273281
"text": [
274-
"['user:bb34a7ba16f541679b6219ca8d1cf369', 'user:04d6f8b805dd45c4b83616272e08898c', 'user:5ccee56134bd460cbfaf9fa492633ba5']\n"
282+
"['user:31d4f3c73f1a4c26b41cf0e2b8e0248a', 'user:c9ff740437064b919245e49ef585484d', 'user:6db5f2e09f08438785b73d8048d5350b']\n"
275283
]
276284
}
277285
],
@@ -338,7 +346,7 @@
338346
"name": "stdout",
339347
"output_type": "stream",
340348
"text": [
341-
"['user:056675110eba40009886b4c7a186b91f']\n"
349+
"['user:054a3091bd99457f826f3278f4a0dc98']\n"
342350
]
343351
}
344352
],
@@ -373,8 +381,7 @@
373381
"outputs": [],
374382
"source": [
375383
"from redisvl.query import VectorQuery\n",
376-
"from redisvl.utils.utils import result_print\n",
377-
"\n",
384+
"from jupyterutils import result_print\n",
378385
"\n",
379386
"query = VectorQuery(\n",
380387
" vector=[0.1, 0.1, 0.5],\n",
@@ -608,7 +615,7 @@
608615
{
609616
"data": {
610617
"text/html": [
611-
"<table><tr><th>vector_distance</th><th>user</th><th>age</th><th>job</th><th>credit_score</th></tr><tr><td>0</td><td>mary</td><td>2</td><td>doctor</td><td>low</td></tr><tr><td>0</td><td>john</td><td>1</td><td>engineer</td><td>high</td></tr><tr><td>0.0566299557686</td><td>tyler</td><td>9</td><td>engineer</td><td>high</td></tr></table>"
618+
"<table><tr><th>vector_distance</th><th>user</th><th>age</th><th>job</th><th>credit_score</th></tr><tr><td>0</td><td>john</td><td>1</td><td>engineer</td><td>high</td></tr><tr><td>0</td><td>mary</td><td>2</td><td>doctor</td><td>low</td></tr><tr><td>0.0566299557686</td><td>tyler</td><td>9</td><td>engineer</td><td>high</td></tr></table>"
612619
],
613620
"text/plain": [
614621
"<IPython.core.display.HTML object>"
@@ -656,15 +663,15 @@
656663
"│ bytes_per_record_avg │ 1 │\n",
657664
"│ doc_table_size_mb │ 0.000400543 │\n",
658665
"│ inverted_sz_mb │ 1.52588e-05 │\n",
659-
"│ key_table_size_mb │ 0.000165939\n",
666+
"│ key_table_size_mb │ 0.000138283\n",
660667
"│ offset_bits_per_record_avg │ nan │\n",
661668
"│ offset_vectors_sz_mb │ 0 │\n",
662669
"│ offsets_per_term_avg │ 0 │\n",
663670
"│ records_per_doc_avg │ 4 │\n",
664671
"│ sortable_values_size_mb │ 0 │\n",
665-
"│ total_indexing_time │ 0.822\n",
672+
"│ total_indexing_time │ 0.664\n",
666673
"│ total_inverted_index_blocks │ 7 │\n",
667-
"│ vector_index_sz_mb │ 0.235603\n",
674+
"│ vector_index_sz_mb │ 0.17852 \n",
668675
"╰─────────────────────────────┴─────────────╯\n"
669676
]
670677
}
@@ -707,7 +714,7 @@
707714
"name": "python",
708715
"nbconvert_exporter": "python",
709716
"pygments_lexer": "ipython3",
710-
"version": "3.9.12"
717+
"version": "3.10.6"
711718
},
712719
"orig_nbformat": 4,
713720
"vscode": {

docs/user_guide/hash_vs_json_05.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"# import necessary modules\n",
3737
"import pickle\n",
3838
"\n",
39-
"from redisvl.utils.utils import table_print, result_print, buffer_to_array\n",
39+
"from redisvl.utils.utils import buffer_to_array\n",
40+
"from jupyterutils import result_print, table_print\n",
4041
"from redisvl.index import SearchIndex\n",
4142
"\n",
4243
"\n",
@@ -238,9 +239,9 @@
238239
"│ offsets_per_term_avg │ 0.204545 │\n",
239240
"│ records_per_doc_avg │ 6.28571 │\n",
240241
"│ sortable_values_size_mb │ 0 │\n",
241-
"│ total_indexing_time │ 0.595\n",
242+
"│ total_indexing_time │ 0.121\n",
242243
"│ total_inverted_index_blocks │ 18 │\n",
243-
"│ vector_index_sz_mb │ 0.0202332\n",
244+
"│ vector_index_sz_mb │ 0.0200424\n",
244245
"╰─────────────────────────────┴─────────────╯\n"
245246
]
246247
}
@@ -379,9 +380,9 @@
379380
"name": "stdout",
380381
"output_type": "stream",
381382
"text": [
382-
"\u001b[32m11:23:10\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
383-
"\u001b[32m11:23:10\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. user-hashes\n",
384-
"\u001b[32m11:23:10\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 2. user-json\n"
383+
"\u001b[32m18:29:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
384+
"\u001b[32m18:29:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. user-hashes\n",
385+
"\u001b[32m18:29:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 2. user-json\n"
385386
]
386387
}
387388
],
@@ -504,7 +505,7 @@
504505
"name": "python",
505506
"nbconvert_exporter": "python",
506507
"pygments_lexer": "ipython3",
507-
"version": "3.9.12"
508+
"version": "3.10.6"
508509
},
509510
"orig_nbformat": 4,
510511
"vscode": {

0 commit comments

Comments
 (0)