We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ab418e commit 4e02d6fCopy full SHA for 4e02d6f
pgvector/sqlalchemy/__init__.py
@@ -1,6 +1,6 @@
1
from sqlalchemy.types import UserDefinedType, Float
2
from ..utils import from_db, to_db
3
-
+from sqlalchemy.dialects import postgresql
4
__all__ = ['Vector']
5
6
@@ -35,3 +35,6 @@ def max_inner_product(self, other):
35
36
def cosine_distance(self, other):
37
return self.op('<=>', return_type=Float)(other)
38
+
39
+# Register Vector type to PostgreSQL's reflection subsystem
40
+postgresql.base.ischema_names['vector'] = Vector
0 commit comments