Commit 0af764a
committed
fix: convert NumPy arrays and other vector types in insert_many (Fixes #1002)
insert_many() in executor.py constructs _BatchObject directly without
converting the vector, causing NumPy arrays, torch tensors, and other
supported vector types to be silently discarded. The fix applies
_get_vector_v4() conversion (same as BatchObject.__init__) before
storing the vector in _BatchObject.
Also handles named vectors (dict[str, vector]) by converting each value.
Signed-off-by: rtmalikian <rtmalikian@gmail.com>1 parent 17a9887 commit 0af764a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
0 commit comments