Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update test to work with latest version of pgvector

davidmezzetti6544d123f628
diff --git a/test/python/testann/testdense.py b/test/python/testann/testdense.py
index 23ce586f..29c45a6c 100644
--- a/test/python/testann/testdense.py
+++ b/test/python/testann/testdense.py
@@ -12,6 +12,9 @@ from unittest.mock import patch
import numpy as np
+from sqlalchemy.dialects.postgresql import BIT
+from sqlalchemy.ext.compiler import compiles
+
from txtai.ann import ANNFactory, ANN
from txtai.serialize import SerializeFactory
@@ -260,6 +263,11 @@ class TestDense(unittest.TestCase):
Test PGVector backend
"""
+ # pylint: disable=W0613
+ @compiles(BIT, "sqlite")
+ def compile_bit_sqlite(type_, compiler, **kw):
+ return "BLOB"
+
# Generate test record
data = np.random.rand(1, 240).astype(np.float32)