forked from qdrant/vector-db-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_experiment.sh
40 lines (30 loc) · 969 Bytes
/
run_experiment.sh
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
39
40
#!/bin/bash
set -e
ENGINE_NAME=${ENGINE_NAME:-"qdrant-continuous-benchmark"}
DATASETS=${DATASETS:-""}
PRIVATE_IP_OF_THE_SERVER=${PRIVATE_IP_OF_THE_SERVER:-""}
if [[ -z "$ENGINE_NAME" ]]; then
echo "ENGINE_NAME is not set"
exit 1
fi
if [[ -z "$DATASETS" ]]; then
echo "DATASETS is not set"
exit 1
fi
if [[ -z "$PRIVATE_IP_OF_THE_SERVER" ]]; then
echo "PRIVATE_IP_OF_THE_SERVER is not set"
exit 1
fi
docker rmi --force qdrant/vector-db-benchmark:latest || true
docker run \
--rm \
-it \
-v "$HOME/results:/code/results" \
qdrant/vector-db-benchmark:latest \
python run.py --engines "${ENGINE_NAME}" --datasets "${DATASETS}" --host "${PRIVATE_IP_OF_THE_SERVER}" --no-skip-if-exists --skip-search
docker run \
--rm \
-it \
-v "$HOME/results:/code/results" \
qdrant/vector-db-benchmark:latest \
python run.py --engines "${ENGINE_NAME}" --datasets "${DATASETS}" --host "${PRIVATE_IP_OF_THE_SERVER}" --no-skip-if-exists --skip-upload