feat(faq): enhance FAQ handling and localization support

- Updated the agent system prompt to clarify mandatory deep read requirements for FAQ entries, ensuring accurate retrieval and response generation.
- Added new localization strings for FAQ-related labels in English and Chinese, improving user experience and consistency across the application.
- Refactored the document and grep results components to support distinct FAQ identification, enhancing clarity in the output.
- Introduced new tests for FAQ metadata handling, ensuring robust functionality and correctness in the FAQ processing logic.
This commit is contained in:
wizardchen
2026-06-04 20:17:43 +08:00
committed by lyingbug
parent ba8c96d83a
commit 4bb8906520
14 changed files with 1075 additions and 225 deletions
+5
View File
@@ -806,6 +806,9 @@ export default {
referenceIconAlt: "参考内容图标",
chunkIdLabel: "片段ID:",
documentIdLabel: "文档ID:",
faqIdLabel: "FAQ ID:",
faqContainerIdLabel: "所属文档ID:",
faqAnswersLabel: "答案:",
chunkOrdinal: "片段 {index}",
previewContent: "预览内容",
noPlanSteps: "未提供具体步骤",
@@ -4564,6 +4567,7 @@ export default {
getDocument: "获取文档:{title}",
document: "文档",
listChunks: "查看 {title}",
listFaqEntry: "查看 FAQ:{question}",
deepThinking: "深度思考",
},
plan: {
@@ -4582,6 +4586,7 @@ export default {
chunkHits: "{count} 片段",
keywordHits: "{count} 次",
titleMatch: "标题匹配",
faqEntry: "FAQ 条目",
},
toolStatus: {
calling: "正在调用 {name}...",