fix: allow exports with QA warnings
This commit is contained in:
@@ -31,7 +31,6 @@ const REQUIRED_RULES: QualityRuleId[] = [
|
||||
|
||||
const HARD_FAILURE_RULES = new Set<QualityRuleId>([
|
||||
"company_name_integrity",
|
||||
"hallucination_risk",
|
||||
"claim_consistency",
|
||||
]);
|
||||
|
||||
@@ -213,14 +212,14 @@ function inspectRule(
|
||||
const unsupportedNumber = findUnsupportedNumbers(combined, factCard).length > 0;
|
||||
return check(
|
||||
ruleId,
|
||||
unsupportedNumber || article.requires_user_confirmation.length > 0 ? "fail" : "pass",
|
||||
unsupportedNumber || article.requires_user_confirmation.length > 0 ? "warn" : "pass",
|
||||
unsupportedNumber
|
||||
? findUnsupportedNumbers(combined, factCard).join(", ")
|
||||
: "未发现未确认的数字类事实主张。",
|
||||
unsupportedNumber
|
||||
? "数字类主张无法追溯到已确认事实卡。"
|
||||
? "发现需要人工复核的数字类事实主张。"
|
||||
: "事实主张可以追溯到已确认事实卡。",
|
||||
"删除未确认主张,或先补充到事实卡并确认。",
|
||||
"建议人工复核,必要时删除未确认主张,或补充到事实卡后再确认。",
|
||||
unsupportedNumber ? "body" : null,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user