Skip to content

Commit 7b2800e

Browse files
committed
fix type for execution
1 parent d204584 commit 7b2800e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/user_guide/vectorizers_04.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@
762762
},
763763
{
764764
"cell_type": "code",
765-
"execution_count": 17,
765+
"execution_count": null,
766766
"metadata": {},
767767
"outputs": [
768768
{
@@ -781,9 +781,10 @@
781781
"source": [
782782
"# load expects an iterable of dictionaries where\n",
783783
"# the vector is stored as a bytes buffer\n",
784+
"from redisvl.redis.utils import array_to_buffer\n",
784785
"\n",
785786
"data = [{\"text\": t,\n",
786-
" \"embedding\": v}\n",
787+
" \"embedding\": array_to_buffer(v, dtype=\"float32\")}\n",
787788
" for t, v in zip(sentences, embeddings)]\n",
788789
"\n",
789790
"index.load(data)"

0 commit comments

Comments
 (0)