refactor some text knn filtering

This commit is contained in:
Alex Garcia 2024-11-18 11:21:49 -08:00
parent 1a216a684d
commit 10a2216845
3 changed files with 101 additions and 105 deletions

View file

@ -120,16 +120,6 @@ def test_text_knn(db, snapshot):
== snapshot()
)
# this break KNN :(
db.execute("insert into v(vector, name) values ('[3.0]', '1234567890123')")
assert (
exec(
db,
"select rowid, name, distance from v where vector match '[.01]' and k = 5 and name != 'aaa'",
)
== snapshot()
)
def test_long_text_updates(db, snapshot):
db.execute(