start_phase1_shortest_path.sh
545 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PYTHON_BIN="${PYTHON_BIN:-/usr/local/miniconda3/bin/python}"
DSN="${1:-${PG_DSN:-}}"
OUTPUT="${2:-$ROOT_DIR/data/pgvector_eval/music20/planner_validation_commands_runner_report.json}"
if [[ -z "$DSN" ]]; then
echo "usage: $0 <postgres-dsn> [output-json]" >&2
echo "or set PG_DSN before running this script" >&2
exit 1
fi
cd "$ROOT_DIR"
"$PYTHON_BIN" scripts/run_planner_validation_commands_live.py \
--dsn "$DSN" \
--output "$OUTPUT"