Skip to content

Commit

Permalink
adds new required dtype when calling array_to_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-cechmanek committed Oct 3, 2024
1 parent 100567f commit a53fc13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit a53fc13

Please sign in to comment.