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 e86d7c4 commit 1913c84Copy full SHA for 1913c84
1 file changed
pgvector/sparsevec.py
@@ -66,7 +66,7 @@ def to_list(self) -> list[float]:
66
vec[i] = v
67
return vec
68
69
- def to_numpy(self) -> np.ndarray:
+ def to_numpy(self) -> np.ndarray[tuple[int], np.dtype[np.float32]]:
70
vec = np.repeat(0.0, self._dim).astype(np.float32)
71
for i, v in zip(self._indices, self._values):
72
0 commit comments