mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
more work on nbc headlines sample
This commit is contained in:
parent
687a2821f2
commit
fa6edfe246
16 changed files with 3036 additions and 1169 deletions
26
examples/nbc-headlines/bench.sql
Normal file
26
examples/nbc-headlines/bench.sql
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
.open tmp.db
|
||||
--.load ./vec0
|
||||
.load ./lembed0
|
||||
.timer on
|
||||
|
||||
insert into lembed_models(name, model)
|
||||
values (
|
||||
'default',
|
||||
lembed_model_from_file('all-MiniLM-L6-v2.e4ce9877.q8_0.gguf')
|
||||
);
|
||||
|
||||
with subset as (
|
||||
select headline from articles limit 1000
|
||||
)
|
||||
select sum(lembed(headline)) from subset;
|
||||
|
||||
|
||||
.load ./rembed0
|
||||
|
||||
insert into rembed_clients(name, options)
|
||||
values ('default','llamafile');
|
||||
|
||||
with subset as (
|
||||
select headline from articles limit 1000
|
||||
)
|
||||
select sum(rembed('default', headline)) from subset;
|
||||
Loading…
Add table
Add a link
Reference in a new issue