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
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 1–5 (5 = most similar).
Setup
-
Capture 20–30 real queries from your PF app and save them as a CSV with columns
questionandpf_output. See test_inputs.csv.example. -
If you are validating a workflow other than the default sample, set
MAF_WORKFLOW_FILEto the Python file that defines your module-levelworkflowobject (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.