-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 789 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: all build release test lint clean demo
BINARY := ./target/debug/shardlake
DATA_DIR := /tmp/shardlake-demo
FIXTURE := fixtures/sample_10.jsonl
all: build
build:
cargo build
release:
cargo build --release
test:
cargo test
lint:
cargo fmt --check
cargo clippy -- -D warnings
clean:
cargo clean
rm -rf $(DATA_DIR)
demo: build
@echo "=== Shardlake demo ==="
rm -rf $(DATA_DIR)
$(BINARY) --storage $(DATA_DIR) ingest --input $(FIXTURE) --dataset-version ds-v1
$(BINARY) --storage $(DATA_DIR) build-index \
--dataset-version ds-v1 \
--index-version idx-v1 \
--num-shards 2 \
--metric cosine \
--nprobe 2
$(BINARY) --storage $(DATA_DIR) publish --index-version idx-v1
$(BINARY) --storage $(DATA_DIR) benchmark --k 5 --nprobe 2
@echo "=== Demo complete ==="