This commit is contained in:
Alex Garcia 2026-02-13 06:38:01 -08:00
parent bbb3238209
commit 5e4226a257
2 changed files with 1 additions and 22 deletions

21
dbg.sql
View file

@ -1,21 +0,0 @@
.load dist/vec0
create virtual table vec_items using vec0(
vector float[1]
);
insert into vec_items(rowid, vector)
select value, json_array(value) from generate_series(1, 100);
select vec_to_json(vector), distance
from vec_items
where vector match '[1]'
and k = 5;
select vec_to_json(vector), distance
from vec_items
where vector match '[1]'
and k = 5
and distance > 4.0;

View file

@ -1,5 +1,5 @@
.load dist/vec0 .load dist/vec0main
.bail on .bail on
.mode qbox .mode qbox