fix(agents): remove official website referral from fallback labels, use neutral disclaimer

Replace "请以入境处官方信息为准" / "建议向香港入境处官网核实" with
"基于AI训练数据,可能不是最新信息" across all fallback messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-06 22:10:45 -08:00
parent cc4b7d50e3
commit ce13c8b770
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ export class PolicyExpertService extends BaseSpecialistService {
});
if (!ragResult || !ragResult.content) {
return '[KB_EMPTY] 知识库未找到相关内容。如需回答,必须在回复中明确标注"基于AI内置知识,请以入境处官方信息为准"。';
return '[KB_EMPTY] 知识库未找到相关内容。如需回答,必须在回复中明确标注"基于AI训练数据,可能不是最新信息"。';
}
const hasConfident = ragResult.sources?.some(
@ -68,13 +68,13 @@ export class PolicyExpertService extends BaseSpecialistService {
);
if (!hasConfident) {
return `[KB_LOW_CONFIDENCE] 知识库找到以下内容但置信度较低,引用时请标注"仅供参考,请以官方信息为准"\n\n${ragResult.content}`;
return `[KB_LOW_CONFIDENCE] 知识库找到以下内容但置信度较低,引用时请标注"仅供参考,可能不是最新信息"\n\n${ragResult.content}`;
}
return ragResult.content;
} catch (error) {
this.logger.error(`Knowledge search failed: ${error}`);
return '[KB_ERROR] 知识库搜索暂时不可用。如需回答,必须在回复中明确标注"基于AI内置知识,请以入境处官方信息为准"。';
return '[KB_ERROR] 知识库搜索暂时不可用。如需回答,必须在回复中明确标注"基于AI训练数据,可能不是最新信息"。';
}
}
return `Unknown tool: ${toolName}`;

View File

@ -372,7 +372,7 @@ export class ImmigrationToolsService {
success: false,
content: null,
sourceType: 'BUILT_IN_KNOWLEDGE',
message: '[来源: AI内置知识] 知识库和网络搜索均未找到相关信息。如需回答请务必在回复中明确告知用户此信息基于AI训练数据可能不是最新信息仅供参考,建议向香港入境事务处官网(immd.gov.hk)核实最新政策。',
message: '[来源: AI内置知识] 知识库和网络搜索均未找到相关信息。如需回答请务必在回复中明确告知用户此信息基于AI训练数据可能不是最新信息仅供参考。',
};
}