Files
wehub-resource-sync e768098d0e
Flake8 Lint / flake8 (push) Waiting to run
Spell check CI / Spell_Check (push) Waiting to run
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00
..

Phase 3 — Validate Output Parity

Run your captured PF outputs and the new MAF workflow against the same test inputs, then score semantic similarity using the Azure AI Evaluation SDK. Similarity scores are 15 (5 = most similar).

Setup

  1. Capture 2030 real queries from your PF app and save them as a CSV with columns question and pf_output. See test_inputs.csv.example.

  2. If you are validating a workflow other than the default sample, set MAF_WORKFLOW_FILE to the Python file that defines your module-level workflow object (example: phase-2-rebuild/01_linear_flow.py).

Run

cd phase-3-validate
python parity_check.py

Outputs parity_results.csv. Rows below the threshold are printed to stdout.

Interpreting scores

Score Meaning
< 3.5 Outputs diverge --> check for missing prompt context or unmigrated nodes
3.5 4.5 Minor phrasing differences --> generally acceptable
> 4.5 Strong semantic match --> safe to proceed to Phase 4

Do not proceed to Phase 4 until mean similarity is consistently ≥ 3.5.