File size: 896 Bytes
5fed0fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env bash
# Don't use set -euo pipefail so we can capture errors
set -e

# evaluate.sh wrapper for llm_sql_large
PROBLEM_DIR=$(pwd)
echo "[evaluate] Running LLM_SQL_LARGE evaluation..." >&2
echo "[evaluate] Current dir: $(pwd)" >&2

# Try to run the evaluator, capture output
if ./run_evaluator.sh 2>&1 | tee /tmp/eval_output_llm_sql_large.log; then
    echo "[evaluate] run_evaluator succeeded" >&2
else
    echo "[evaluate] ERROR: run_evaluator.sh failed!" >&2
    echo "[evaluate] Output:" >&2
    cat /tmp/eval_output_llm_sql_large.log >&2
    echo "-10000"
    exit 0
fi

# Try to read results
if [[ -f "results.json" ]]; then
    echo "[evaluate] Found results.json" >&2
    cat results.json | python3 -c "import json, sys; print(json.load(sys.stdin).get('score', 50.0))"
else
    echo "[evaluate] WARNING: results.json not found, returning mock score" >&2
    echo "-10000"
fi