Skip to content

Commit

Permalink
feat: Add BQ to CI benchmarks (#148)
Browse files Browse the repository at this point in the history
* feat: Add BQ to CI benchmarks

* feat: Allow manual benchmarks to specify engine config
  • Loading branch information
KShivendu authored May 31, 2024
1 parent a3a9b6b commit 9598214
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
DATASET_TO_ENGINE["laion-small-clip"]="qdrant-continuous-benchmark"
DATASET_TO_ENGINE["msmarco-sparse-100K"]="qdrant-sparse-vector"
DATASET_TO_ENGINE["h-and-m-2048-angular-filters"]="qdrant-continuous-benchmark"
DATASET_TO_ENGINE["dbpedia-openai-1M-1536-angular"]="qdrant-bq-continuous-benchmark"
for dataset in "${!DATASET_TO_ENGINE[@]}"; do
export ENGINE_NAME=${DATASET_TO_ENGINE[$dataset]}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/manual-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
dataset:
description: "Dataset to benchmark"
default: laion-small-clip
engine_config:
description: "Engine config to benchmark"
default: qdrant-continuous-benchmark

jobs:
runManualBenchmark:
Expand All @@ -27,6 +30,7 @@ jobs:
export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
export QDRANT_VERSION=${{ inputs.qdrant_version }}
export DATASETS=${{ inputs.dataset }}
export ENGINE_NAME=${{ inputs.engine_config }}
export POSTGRES_TABLE=benchmark_manual
bash -x tools/setup_ci.sh
bash -x tools/run_ci.sh
27 changes: 27 additions & 0 deletions experiments/configurations/qdrant-single-node.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,33 @@
],
"upload_params": { "parallel": 16, "batch_size": 1024 }
},
{
"name": "qdrant-bq-continuous-benchmark",
"engine": "qdrant",
"connection_params": { "timeout": 30 },
"collection_params": {
"hnsw_config": {
"m": 32,
"ef_construct": 256
},
"quantization_config": { "binary": {"always_ram": true} },
"optimizers_config": {
"max_segment_size": 1000000,
"default_segment_number": 3,
"memmap_threshold": 10000000
}
},
"search_params": [
{
"parallel": 8,
"config": {
"hnsw_ef": 256,
"quantization": { "rescore": true, "oversampling": 2.0 }
}
}
],
"upload_params": { "parallel": 16, "batch_size": 1024 }
},
{
"name": "qdrant-sparse-vector",
"engine": "qdrant",
Expand Down

0 comments on commit 9598214

Please sign in to comment.