mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 16:56:27 +02:00
Extend benchmarks-ann/ with results database (SQLite with per-query detail and continuous writes), dataset subfolder organization, --subset-size and --warmup options. Supports systematic comparison across flat, rescore, IVF, and DiskANN index types.
29 lines
538 B
Makefile
29 lines
538 B
Makefile
MODEL ?= mixedbread-ai/mxbai-embed-xsmall-v1
|
|
K ?= 100
|
|
BATCH_SIZE ?= 512
|
|
DATA_DIR ?= ../nyt/data
|
|
|
|
all: base.db
|
|
|
|
$(DATA_DIR):
|
|
$(MAKE) -C ../nyt data
|
|
|
|
contents.db: $(DATA_DIR)
|
|
uv run ../nyt-768/build-contents.py --data-dir $(DATA_DIR) -o $@
|
|
|
|
base.db: contents.db queries.txt
|
|
uv run ../nyt-1024/build-base.py \
|
|
--contents-db contents.db \
|
|
--model $(MODEL) \
|
|
--queries-file queries.txt \
|
|
--batch-size $(BATCH_SIZE) \
|
|
--k $(K) \
|
|
-o $@
|
|
|
|
queries.txt:
|
|
cp ../nyt/queries.txt $@
|
|
|
|
clean:
|
|
rm -f base.db contents.db
|
|
|
|
.PHONY: all clean
|