We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52ce715 commit c75b212Copy full SHA for c75b212
1 file changed
pgvector/bit.py
@@ -67,7 +67,8 @@ def _length(self):
67
return length
68
69
def to_list(self) -> list[bool]:
70
- return self.to_numpy().tolist()
+ # TODO improve
71
+ return [v != '0' for v in self.to_text()]
72
73
def to_numpy(self) -> np.ndarray[tuple[int], np.dtype[np.bool]]:
74
import numpy as np
0 commit comments