@@ -4,7 +4,8 @@ set dotenv-load := true
44
55# --- Paths and defaults ---
66
7- bm_local_path := " /Users/phernandez/dev/basicmachines/basic-memory"
7+ bm_local_path := env_var_or_default (" BM_LOCAL_PATH" , " " )
8+ bm_local_path_flag := if bm_local_path != " " { " --bm-local-path " + bm_local_path } else { " " }
89locomo_dataset_path := " benchmarks/datasets/locomo/locomo10.json"
910locomo_output_dir := " benchmarks/generated/locomo"
1011locomo_c1_output_dir := " benchmarks/generated/locomo-c1"
@@ -84,7 +85,7 @@ bench-run-short:
8485 - -corpus-dir benchmarks/ generated/ locomo-c1/ docs \
8586 - -queries-path benchmarks/ generated/ locomo-c1/ queries.quick25. json \
8687 - -providers bm-local,mem0-local \
87- - -bm-local-path {{ bm_local_path }} \
88+ {{ bm_local_path_flag }} \
8889 - -allow-provider-skip
8990
9091bench-run-short-strict :
@@ -94,7 +95,7 @@ bench-run-short-strict:
9495 - -corpus-dir benchmarks/ generated/ locomo-c1/ docs \
9596 - -queries-path benchmarks/ generated/ locomo-c1/ queries.quick25. json \
9697 - -providers bm-local,mem0-local \
97- - -bm-local-path {{ bm_local_path }} \
98+ {{ bm_local_path_flag }} \
9899 - -strict-providers
99100
100101# Long benchmark: full LoCoMo query set
@@ -105,7 +106,7 @@ bench-run-long:
105106 - -corpus-dir benchmarks/ generated/ locomo/ docs \
106107 - -queries-path benchmarks/ generated/ locomo/ queries.json \
107108 - -providers bm-local,mem0-local \
108- - -bm-local-path {{ bm_local_path }} \
109+ {{ bm_local_path_flag }} \
109110 - -allow-provider-skip
110111
111112bench-run-long-strict :
@@ -115,7 +116,7 @@ bench-run-long-strict:
115116 - -corpus-dir benchmarks/ generated/ locomo/ docs \
116117 - -queries-path benchmarks/ generated/ locomo/ queries.json \
117118 - -providers bm-local,mem0-local \
118- - -bm-local-path {{ bm_local_path }} \
119+ {{ bm_local_path_flag }} \
119120 - -strict-providers
120121
121122bench-run-bm-local :
@@ -125,7 +126,7 @@ bench-run-bm-local:
125126 - -dataset-path {{ locomo_dataset_path}} \
126127 - -corpus-dir benchmarks/ generated/ locomo/ docs \
127128 - -queries-path benchmarks/ generated/ locomo/ queries.json \
128- - -bm-local-path {{ bm_local_path }}
129+ {{ bm_local_path_flag }}
129130
130131bench-run-mem0-local :
131132 uv run bm-bench run retrieval \
@@ -143,7 +144,7 @@ bench-run-full:
143144 - -corpus-dir benchmarks/ generated/ locomo/ docs \
144145 - -queries-path benchmarks/ generated/ locomo/ queries.json \
145146 - -providers bm-local,mem0-local \
146- - -bm-local-path {{ bm_local_path }} \
147+ {{ bm_local_path_flag }} \
147148 - -allow-provider-skip
148149
149150bench-run-full-judge model = " gpt-4o-mini":
@@ -153,7 +154,7 @@ bench-run-full-judge model="gpt-4o-mini":
153154 - -corpus-dir benchmarks/ generated/ locomo/ docs \
154155 - -queries-path benchmarks/ generated/ locomo/ queries.json \
155156 - -providers bm-local,mem0-local \
156- - -bm-local-path {{ bm_local_path }} \
157+ {{ bm_local_path_flag }} \
157158 - -allow-provider-skip \
158159 - -judge \
159160 - -judge-model " {{ model}} "
0 commit comments