Skip to content

Commit

Permalink
Merge pull request #26 from cassiebreviu/main
Browse files Browse the repository at this point in the history
update threshold to 3, fix req files, gh action fixes
  • Loading branch information
cassiebreviu authored Jan 4, 2024
2 parents ed289ce + 5593059 commit 5b843e6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/run-chat-eval-pf-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
- name: List current directory
run: ls
- name: Install promptflow
run: pip install -r ../contoso-chat/requirements.txt
- name: Install promptflow again
run: pip install -r ../contoso-chat/requirements.txt
run: pip install -r contoso-chat/requirements.txt
- name: Run promptflow
run: |
pfazure run create -f contoso-chat/run.yml --subscription ${{env.SUBSCRIPTION}} -g ${{env.GROUP}} -w ${{env.WORKSPACE}} --stream > run_info.txt
Expand All @@ -54,7 +52,7 @@ jobs:
- name: Get eval run name
run: echo "EVAL_RUN_NAME=$(python deployment/llmops-helper/parse_run_output.py eval_info.txt)" >> "$GITHUB_ENV"
- name: Show the current eval run name
run: echo "Eval run name is:" ${{env.EVAL_RUN_NAME}}
run: echo "Eval run name is:" ${{env.EVAL_RUN_NAME}}
- name: Show promptflow details
run: pfazure run show-details --name ${{env.EVAL_RUN_NAME}} --subscription ${{env.SUBSCRIPTION}} -g ${{env.GROUP}} -w ${{env.WORKSPACE}}
- name: Show promptflow metrics
Expand All @@ -67,7 +65,7 @@ jobs:
id: jobMetricAssert
run: |
# NOTE The number after the file is the threshold score to pass the assertion.
export ASSERT=$(python deployment/llmops-helper/assert.py eval_result.json 2) # NOTE <file>.json is the file name and decimal is the threshold for the assertion
export ASSERT=$(python deployment/llmops-helper/assert.py eval_result.json 3) # NOTE <file>.json is the file name and decimal is the threshold for the assertion
echo "::debug::Assert has returned the following value: $ASSERT"
# assert.py will return True or False, but bash expects lowercase.
if ${ASSERT,,} ; then
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/run-support-eval-pf-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
run: ls
- name: Install promptflow
run: pip install -r contoso-support/requirements.txt
- name: Install promptflow again
run: pip install -r contoso-support/requirements.txt
- name: Run promptflow
run: |
pfazure run create -f contoso-support/run.yml --subscription ${{env.SUBSCRIPTION}} -g ${{env.GROUP}} -w ${{env.WORKSPACE}} --stream > run_info.txt
Expand Down Expand Up @@ -67,7 +65,7 @@ jobs:
id: jobMetricAssert
run: |
# NOTE The number after the file is the threshold score to pass the assertion.
export ASSERT=$(python deployment/llmops-helper/assert.py eval_result.json 2) # NOTE <file>.json is the file name and decimal is the threshold for the assertion
export ASSERT=$(python deployment/llmops-helper/assert.py eval_result.json 3) # NOTE <file>.json is the file name and decimal is the threshold for the assertion
echo "::debug::Assert has returned the following value: $ASSERT"
# assert.py will return True or False, but bash expects lowercase.
if ${ASSERT,,} ; then
Expand Down
3 changes: 2 additions & 1 deletion contoso-chat/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
promptflow
promptflow-tools
azure-cosmos
azure-search-documents==11.4.0
azure-search-documents==11.4.0
azure-ai-ml
2 changes: 1 addition & 1 deletion contoso-intent/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
promptflow
promptflow-tools
azure-cosmos
azure-search-documents
azure-search-documents==11.4.0
azure-ai-ml
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
promptflow
promptflow-tools
azure-cosmos
azure-search-documents
azure-search-documents==11.4.0
azure-ai-ml
3 changes: 2 additions & 1 deletion runtime/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
promptflow
promptflow-tools
azure-cosmos
azure-search-documents==11.4.0
azure-search-documents==11.4.0
azure-ai-ml

0 comments on commit 5b843e6

Please sign in to comment.