Files
wehub-resource-sync e768098d0e
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
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:52 +08:00

30 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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](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.