diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index abea811b..fdfeadb3 100644 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1030,12 +1030,12 @@ export default { indexModeRequired: "请选择 FAQ 的索引方式", }, document: { - title: "文档管理", - subtitle: "上传和管理文档,支持多种文件格式的解析与分块", + title: "文档", + subtitle: "上传各类文档,系统自动解析内容并智能分块,构建可检索的知识库", }, faq: { - title: "FAQ 配置", - subtitle: "管理 FAQ 条目,支持批量导入、编辑和检索测试", + title: "问答", + subtitle: "结构化问答管理,支持标准问、相似问和反例,精准匹配用户查询,提升问答准确率", description: "设置 FAQ 知识库的索引策略和问答组织方式", indexModeLabel: "索引方式", indexModeDescription: "仅索引问题可提升精度,索引问答可提高召回率", @@ -1049,9 +1049,13 @@ export default { separate: "分别索引", }, standardQuestion: "标准问", + standardQuestionDesc: "设置问题的标准表述,这是用户最常问的问题形式。", answers: "答案", + answersDesc: "提供完整准确的答案内容,可添加多个答案以覆盖不同场景。", similarQuestions: "相似问", + similarQuestionsDesc: "添加与标准问意思相同但表述不同的问题,帮助系统更好地匹配用户查询。", negativeQuestions: "反例", + negativeQuestionsDesc: "添加不应匹配此答案的问题,用于排除误匹配的情况。", editorCreate: "新增 FAQ 条目", editorEdit: "编辑 FAQ 条目", addAnswer: "添加答案", diff --git a/frontend/src/views/knowledge/components/FAQEntryManager.vue b/frontend/src/views/knowledge/components/FAQEntryManager.vue index 8fb0a3d1..22f74648 100644 --- a/frontend/src/views/knowledge/components/FAQEntryManager.vue +++ b/frontend/src/views/knowledge/components/FAQEntryManager.vue @@ -220,135 +220,174 @@ :data="editorForm" :rules="editorRules" layout="vertical" - class="editor-form" + :label-width="0" + class="faq-editor-form" > - - - - - - - - - - - - - - {{ question }} - - - + + + + + + {{ $t('knowledgeEditor.faq.standardQuestion') }} + * + + {{ $t('knowledgeEditor.faq.standardQuestionDesc') }} + + + - - - - - - - - - - - - - {{ question }} - - - + + + + {{ $t('knowledgeEditor.faq.similarQuestions') }} + {{ $t('knowledgeEditor.faq.similarQuestionsDesc') }} + + + + + + + + + + + {{ question }} + + + + + - - - - - - - - - - - {{ editorForm.answers.length }}/5 - - - {{ answer }} - - - + + + + {{ $t('knowledgeEditor.faq.negativeQuestions') }} + {{ $t('knowledgeEditor.faq.negativeQuestionsDesc') }} + + + + + + + + + + + {{ question }} + + + + + - + + + + + + {{ $t('knowledgeEditor.faq.answers') }} + * + + {{ $t('knowledgeEditor.faq.answersDesc') }} + + + + + + + + + + {{ editorForm.answers.length }}/5 + + + + {{ answer }} + + + + + + + + @@ -491,56 +530,80 @@ class="faq-search-drawer" > - - - - - - - - - {{ searchForm.vectorThreshold.toFixed(2) }} + + + + + + {{ $t('knowledgeEditor.faq.queryLabel') }} + {{ $t('knowledgeEditor.faq.queryPlaceholder') }} + + + + - {{ $t('knowledgeEditor.faq.vectorThresholdDesc') }} - - - - - {{ searchForm.matchCount }} + + + + {{ $t('knowledgeEditor.faq.similarityThresholdLabel') }} + {{ $t('knowledgeEditor.faq.vectorThresholdDesc') }} + + + + + {{ searchForm.vectorThreshold.toFixed(2) }} + + - {{ $t('knowledgeEditor.faq.matchCountDesc') }} - - - - {{ searching ? $t('knowledgeEditor.faq.searching') : $t('knowledgeEditor.faq.searchButton') }} - - + + + + {{ $t('knowledgeEditor.faq.matchCountLabel') }} + {{ $t('knowledgeEditor.faq.matchCountDesc') }} + + + + + {{ searchForm.matchCount }} + + + + + + + + + {{ searching ? $t('knowledgeEditor.faq.searching') : $t('knowledgeEditor.faq.searchButton') }} + + + + @@ -616,7 +679,7 @@
{{ $t('knowledgeEditor.faq.standardQuestionDesc') }}
{{ $t('knowledgeEditor.faq.similarQuestionsDesc') }}
{{ $t('knowledgeEditor.faq.negativeQuestionsDesc') }}
{{ $t('knowledgeEditor.faq.answersDesc') }}
{{ $t('knowledgeEditor.faq.queryPlaceholder') }}
{{ $t('knowledgeEditor.faq.vectorThresholdDesc') }}
{{ $t('knowledgeEditor.faq.matchCountDesc') }}