diff --git a/pgvector/sqlalchemy/__init__.py b/pgvector/sqlalchemy/__init__.py index e6c128a..964a53c 100644 --- a/pgvector/sqlalchemy/__init__.py +++ b/pgvector/sqlalchemy/__init__.py @@ -22,6 +22,10 @@ def process(value): return to_db(value, self.dim) return process + def literal_processor(self, dialect): + # Allows compiling with the literal_binds flag + return self.bind_processor() + def result_processor(self, dialect, coltype): def process(value): return from_db(value)