forked from qdrant/vector-db-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using pipeline 1 and batch size 1 on CE upload
- Loading branch information
1 parent
2d8e250
commit 6f50710
Showing
2 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import json | ||
|
||
ms = [4, 8, 16, 32] | ||
ef_constructs = [4, 8, 16, 32] | ||
ef_runtimes = [4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192] | ||
data_type = "FLOAT16" | ||
for algo in ["hnsw"]: | ||
configs = [] | ||
for m in ms: | ||
for ef_construct in ef_constructs: | ||
config = { | ||
"name": f"redis-intel-{data_type.lower()}-{algo}-m-{m}-ef-{ef_construct}", | ||
"engine": "redis", | ||
"connection_params": {}, | ||
"collection_params": { | ||
"algorithm": algo, | ||
"data_type": data_type, | ||
f"{algo}_config": {"M": m, "EF_CONSTRUCTION": ef_construct}, | ||
}, | ||
"search_params": [], | ||
"upload_params": { | ||
"parallel": 1, | ||
"batch_size": 1, | ||
"algorithm": algo, | ||
"data_type": data_type, | ||
}, | ||
} | ||
for client in [1, 50, 100, 200]: | ||
for ef_runtime in ef_runtimes: | ||
test_config = { | ||
"parallel": client, | ||
"search_params": {"ef": ef_runtime, "data_type": data_type}, | ||
} | ||
config["search_params"].append(test_config) | ||
configs.append(config) | ||
fname = f"redis-intel-{algo}-single-node.json" | ||
with open(fname, "w") as json_fd: | ||
json.dump(configs, json_fd, indent=2) | ||
print(f"created {len(configs)} configs for {fname}.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters