-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (26 loc) · 810 Bytes
/
Copy pathcalibrate.yml
File metadata and controls
28 lines (26 loc) · 810 Bytes
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
name: calibrate
on:
pull_request:
paths:
- "ragproof/judge/templates/**"
- "ragproof/judge/fixtures/**"
jobs:
calibrate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- run: uv sync --extra dev
- name: run judge calibration
env:
RAGPROOF_LLM_PROVIDER: ${{ vars.RAGPROOF_LLM_PROVIDER }}
RAGPROOF_JUDGE_MODEL: ${{ vars.RAGPROOF_JUDGE_MODEL }}
RAGPROOF_LLM_API_KEY: ${{ secrets.RAGPROOF_LLM_API_KEY }}
run: |
if [ -z "$RAGPROOF_LLM_API_KEY" ]; then
echo "::warning::RAGPROOF_LLM_API_KEY secret is not set; skipping judge calibration"
exit 0
fi
uv run ragproof calibrate