Refactor AI Gap Fill and Progression Path Evaluation Logic
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Has been cancelled
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Has been cancelled
- Removed the `try_suggest_ai_stage_step` function from `_enrich_roadmap_unfilled_gap_offers`, simplifying the gap fill offer generation process. - Updated `_run_evaluate_only_path_qa` and `suggest_progression_path` to disable AI calls and proposals, enhancing control over evaluation parameters. - Adjusted `ProgressionGraphEditor` to reflect changes in API requests, ensuring consistent handling of evaluation data. - Added a new test to validate the behavior of proposed QA when no slot differences are present, improving test coverage for comparison logic.
This commit is contained in:
1 parent
89c6780294
commit
53f1c7161f
3 files changed
+29
-31
No files matched your search
@@ -494,6 +494,8 @@ export default function ProgressionGraphEditor({ graphId, embedded = false, onSa
|
||||
...buildMatchRequestBase(synced),
|
||||
evaluate_steps: slotsToEvaluateSteps(synced),
|
||||
compare_with_assignments: true,
|
||||
include_llm_intent: false,
|
||||
include_llm_path_qa: false,
|
||||
})
|
||||
if (!res?.comparison_mode) {
|
||||
throw new Error('Kein Vergleich in der Antwort')
|
||||
@@ -503,10 +505,9 @@ export default function ProgressionGraphEditor({ graphId, embedded = false, onSa
|
||||
|
||||
const runMatchCompareFlow = async (synced, { source = 'match' } = {}) => {
|
||||
const res = await fetchMatchCompare(synced)
|
||||
const evalRes = await fetchPathEvaluate(synced)
|
||||
setGapFillOffers(mergeGapOffersForDraft(synced, res, evalRes))
|
||||
setGapFillOffers(mergeGapOffersForDraft(synced, res))
|
||||
presentMatchCompare(res, { source })
|
||||
setPathQa(evalRes?.path_qa || res?.baseline_path_qa || null)
|
||||
setPathQa(res?.baseline_path_qa || null)
|
||||
return res
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user