mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 16:56:27 +02:00
cleanup
This commit is contained in:
parent
bbb3238209
commit
5e4226a257
2 changed files with 1 additions and 22 deletions
21
dbg.sql
21
dbg.sql
|
|
@ -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;
|
|
||||||
2
test.sql
2
test.sql
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
.load dist/vec0
|
.load dist/vec0main
|
||||||
.bail on
|
.bail on
|
||||||
|
|
||||||
.mode qbox
|
.mode qbox
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue