Skip to content

Commit 93e55c4

Browse files
committed
circle ci config updated
1 parent 56df37e commit 93e55c4

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
python -m venv venv
2121
. venv/bin/activate
2222
pip install -r requirements.txt
23+
curl "${medLLM_config_file_azure}"" -o .env
2324
2425
# Step 3: Clone BreakYourLLM repository
2526
- run:
2627
name: Clone BreakYourLLM Repository
2728
command: |
28-
git clone https://$GITHUB_TOKEN@github.com/ModelPulse/BreakYourLLM.git
29+
git clone https://${GITHUB_TOKEN}@github.com/ModelPulse/BreakYourLLM.git
2930
cd BreakYourLLM
3031
python -m venv venv
3132
. venv/bin/activate
@@ -35,9 +36,8 @@ jobs:
3536
- run:
3637
name: Replace Configurations
3738
command: |
38-
cp medLLM/config/user_config1.json BreakYourLLM/config/config1.json
39-
cp medLLM/config/user_config2.json BreakYourLLM/config/config2.json
40-
39+
curl "${breakyourllm_config}"" -o BreakYourLLM/config/.env
40+
4141
# Step 5: Run main.py in BreakYourLLM
4242
- run:
4343
name: Run main.py in BreakYourLLM
@@ -50,10 +50,10 @@ jobs:
5050
- run:
5151
name: Check Results
5252
command: |
53-
if grep -q '"status": "pass"' BreakYourLLM/results/stage5_metric_evaluation.json; then
54-
echo "Build Passed"
55-
else
53+
if grep -q '"status": "error"' BreakYourLLM/results/stage5_metric_evaluation.json; then
5654
echo "Build Failed"
55+
else
56+
echo "Build Passed"
5757
exit 1
5858
fi
5959

data.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
question,answer,guideline
2+
Q) What should be the dose of eliquis for DVT/PE?,,"-> Should specify the dosage of the medicine:
3+
a) Standard dosages for adults and children
4+
b) Dose adjustments for specific disease conditions
5+
c) Dosing in special populations (elderwly, pregnant women, etc."""

0 commit comments

Comments
 (0)