We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0266a2e commit 1bc26e4Copy full SHA for 1bc26e4
1 file changed
pgvector/utils/sparsevec.py
@@ -61,6 +61,7 @@ def _from_dict(self, d, dim):
61
62
elements = [(i, v) for i, v in d.items() if v != 0]
63
elements.sort()
64
+
65
self._dim = int(dim)
66
self._indices = [int(v[0]) for v in elements]
67
self._values = [float(v[1]) for v in elements]
0 commit comments