Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python-recipes/RAG/01_redisvl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
" 'chunk_id': i,\n",
" 'content': chunk.page_content,\n",
" # For HASH -- must convert embeddings to bytes\n",
" 'text_embedding': array_to_buffer(embeddings[i])\n",
" 'text_embedding': array_to_buffer(embeddings[i], dtype='float32')\n",
" } for i, chunk in enumerate(chunks)\n",
"]\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion python-recipes/RAG/04_advanced_redisvl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
" 'chunk_id': f'{i}',\n",
" 'proposition': proposition,\n",
" # For HASH -- must convert embeddings to bytes\n",
" 'text_embedding': array_to_buffer(prop_embeddings[i])\n",
" 'text_embedding': array_to_buffer(prop_embeddings[i], dtype=\"float32\")\n",
" } for i, proposition in enumerate(propositions)\n",
"]\n",
"\n",
Expand Down
Loading
Loading