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 3e7d56b commit ab79b72Copy full SHA for ab79b72
1 file changed
pgvector/sparsevec.py
@@ -64,9 +64,7 @@ def indices(self) -> list[int]:
64
def values(self) -> list[float]:
65
return self._values
66
67
- def to_coo(self) -> Any:
68
- from scipy.sparse import coo_array
69
-
+ def to_coo(self) -> coo_array:
70
coords = ([0] * len(self._indices), self._indices)
71
return coo_array((self._values, coords), shape=(1, self._dim))
72
0 commit comments