fix(qa): 表头筛选并统一未覆盖正确性待确认
build / build (push) Successful in 1m17s

修正筛选入口位置:五项条件在表头就地选择,保持完整集筛选与无感续载。
统一固定规则:未覆盖一律待确认,原问答/人工模型证据不改写,已覆盖仍保留点踩优先。
验证:行为红绿、前端/Go全套及隔离PostgreSQL全mirror竞态通过;完整本地门禁与原生备份真实恢复通过。
This commit is contained in:
姚章浩
2026-10-25 13:58:08 +08:00
parent 80d5078363
commit 09b2c1dce5
26 changed files with 378 additions and 119 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
)
const DictionaryVersion = "qa-approved-labels-v1"
const EvaluationPromptVersion = "qa-evaluate-question-answer-v2"
const EvaluationPromptVersion = "qa-evaluate-question-answer-v3"
const TranslationPromptVersion = "qa-question-zh-v1"
var Taxonomy = qaopsfields.ClassificationTaxonomy
@@ -93,7 +93,7 @@ func DecodeAssessment(raw string, input AssessmentInput) (Assessment, error) {
if value.Basis != "semantic_only" && value.Basis != "reference_evidence" && value.Basis != "insufficient_evidence" {
return out, ErrInvalid
}
if field == "is_correct" && value.Value == "待确认" && input.Coverage != "uncovered" {
if field == "is_correct" && ((value.Value == "待确认") != (input.Coverage == "uncovered")) {
return out, ErrInvalid
}
if field == "root_cause" && correctness == "是" && value.Value != "" {