We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1451cc6 commit e005b45Copy full SHA for e005b45
1 file changed
pgvector/utils/sparsevec.py
@@ -24,7 +24,7 @@ def __init__(self, value, dimensions=NO_DEFAULT, /):
24
25
def __repr__(self):
26
elements = dict(zip(self._indices, self._values))
27
- return f'SparseVector({elements}, {self.dimensions()})'
+ return f'SparseVector({elements}, {self._dim})'
28
29
def dimensions(self):
30
return self._dim
0 commit comments