We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc5dfd commit eadb932Copy full SHA for eadb932
redisvl/redis/utils.py
@@ -41,7 +41,7 @@ def array_to_buffer(array: List[float], dtype: str) -> bytes:
41
raise ValueError(
42
f"Invalid data type: {dtype}. Supported types are: {[t.lower() for t in VectorDataType]}"
43
)
44
- return np.array(array, dtype.lower()).tobytes()
+ return np.array(array, dtype=dtype.lower()).tobytes()
45
46
47
def buffer_to_array(buffer: bytes, dtype: str) -> List[Any]:
0 commit comments