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 1a568d7 commit 695557eCopy full SHA for 695557e
pgvector/peewee/__init__.py
@@ -19,7 +19,7 @@ def python_value(self, value):
19
return from_db(value)
20
21
def _distance(self, op, vector):
22
- return Expression(lhs=self, op=op, rhs=Value(vector, converter=to_db, unpack=False))
+ return Expression(lhs=self, op=op, rhs=self.to_value(vector))
23
24
def l2_distance(self, vector):
25
return self._distance('<->', vector)
0 commit comments