mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
Initial commit
This commit is contained in:
commit
4c8ad629e0
28 changed files with 6758 additions and 0 deletions
17
benchmarks/profiling/build-from-npy.sql
Normal file
17
benchmarks/profiling/build-from-npy.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.timer on
|
||||
pragma page_size = 32768;
|
||||
--pragma page_size = 16384;
|
||||
--pragma page_size = 16384;
|
||||
--pragma page_size = 4096;
|
||||
|
||||
create virtual table vec_items using vec0(
|
||||
embedding float[1536]
|
||||
);
|
||||
|
||||
-- 65s (limit 1e5), ~615MB on disk
|
||||
insert into vec_items
|
||||
select
|
||||
rowid,
|
||||
vector
|
||||
from vec_npy_each(vec_npy_file('examples/dbpedia-openai/data/vectors.npy'))
|
||||
limit 1e5;
|
||||
Loading…
Add table
Add a link
Reference in a new issue