Enhance Path QA and Progression Review Logic
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 41s
Test Suite / playwright-tests (push) Successful in 1m27s
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 41s
Test Suite / playwright-tests (push) Successful in 1m27s
- Introduced `_resolve_hint_major_index` to accurately map hints to major step indices, improving the handling of optimization hints in path evaluations. - Added `_problematic_slots_from_path_qa` to identify and categorize problematic slots based on baseline QA, enhancing the quality assessment process. - Updated `_slot_suggestion_accepted` to incorporate new parameters for slot problems and stage specifications, refining the decision-making process for slot suggestions. - Enhanced `ProgressionGraphEditor` to improve user notifications regarding identified issues and suggestions, ensuring clearer communication of path evaluation results. - Modified `buildProgressionComparePayload` and `buildUnifiedSlotReviewComparePayload` to support baseline evaluations, streamlining the comparison process for proposed paths.
This commit is contained in:
1 parent
a1e4ad66df
commit
3468b2066e
4 files changed
+251
-29
No files matched your search
@@ -1091,7 +1091,7 @@ function mergeGapFillOffersFromSteps(steps, offers) {
|
||||
*/
|
||||
export function buildProgressionComparePayload(baselineRes, proposedRes) {
|
||||
if (proposedRes?.unified_slot_review) {
|
||||
return buildUnifiedSlotReviewComparePayload(proposedRes)
|
||||
return buildUnifiedSlotReviewComparePayload(proposedRes, baselineRes)
|
||||
}
|
||||
|
||||
const baselineSteps = Array.isArray(baselineRes?.steps) ? baselineRes.steps : []
|
||||
@@ -1154,9 +1154,11 @@ export function buildProgressionComparePayload(baselineRes, proposedRes) {
|
||||
}
|
||||
|
||||
/** Einheitlicher Match-Review (Bewertung + Slot-Vorschläge in einem Lauf). */
|
||||
export function buildUnifiedSlotReviewComparePayload(res) {
|
||||
const baselineSteps = Array.isArray(res?.baseline_steps) ? res.baseline_steps : (res?.steps || [])
|
||||
const baselineQa = res?.baseline_path_qa || res?.path_qa || null
|
||||
export function buildUnifiedSlotReviewComparePayload(res, baselineRes = null) {
|
||||
const baselineSteps = Array.isArray(baselineRes?.steps)
|
||||
? baselineRes.steps
|
||||
: (Array.isArray(res?.baseline_steps) ? res.baseline_steps : (res?.steps || []))
|
||||
const baselineQa = baselineRes?.path_qa || res?.baseline_path_qa || res?.path_qa || null
|
||||
const scoring = res?.slot_diff_scoring
|
||||
const suggestions = Array.isArray(res?.slot_suggestions) ? res.slot_suggestions : []
|
||||
const improving = suggestions.filter((s) => s?.improves_path)
|
||||
|
||||
Reference in new issue
Block a user