Commit fcee0a5a authored by nick zheng's avatar nick zheng

chore(应用调试): 修改知识库高级说明和提示

parent 84fc2a5b
...@@ -324,17 +324,19 @@ personal_space_module: ...@@ -324,17 +324,19 @@ personal_space_module:
advanced_setting: 'Advanced setting' advanced_setting: 'Advanced setting'
knowledge_base_setting: 'Knowledge base setting' knowledge_base_setting: 'Knowledge base setting'
reply: 'Reply' reply: 'Reply'
reply_desc: 'When the user asks questions beyond the scope of the knowledge base, the system supports the setting of super-class reply, which is automatically responded by the default model, and the user can also customize the reply content'
reply_to_superclass_question: 'Reply to superclass question' reply_to_superclass_question: 'Reply to superclass question'
default_reply: 'Default reply' default_reply: 'Default reply'
custom_reply: 'Custom reply' custom_reply: 'Custom reply'
please_enter_custom_content: 'Please enter custom content' please_enter_custom_content: 'Please enter custom content'
knowledge_base_retrieval_strategy: 'Knowledge base retrieval strategy' knowledge_base_retrieval_strategy: 'Knowledge base retrieval strategy'
knowledge_base_retrieval_strategy_desc: 'The knowledge base provides a variety of search methods, supports multiple scenarios, and can be selected as required'
mix: 'Mix' mix: 'Mix'
mix_desc: 'Keyword retrieval strategy and semantic retrieval strategy are used to retrieve knowledge base and return slices with high relevance. It is recommended to be used in the scenario where both keywords and semantic understanding are required.' mix_desc: 'Keywords and semantic retrieval in fusion problems return knowledge base content with high similarity. It is suitable for both problem keywords and semantic understanding scenarios.'
keyword: 'Keyword' keyword: 'Keyword'
keyword_desc: 'The key word retrieval strategy is used to retrieve the knowledge base and return the slices with high correlation to the keywords in the question. It is recommended for scenarios that require an exact match with the keyword in the question.' keyword_desc: 'The knowledge base is retrieved by question keywords and the contents with high similarity are returned. Applicable to scenarios that require accurate keyword matching.'
semantics: 'Semantics' semantics: 'Semantics'
semantics_desc: 'The semantic retrieval strategy is used to retrieve the knowledge base and return the slice content that matches the meaning of the question. It is recommended for use in scenarios where the semantic relevance of questions and the relevance of intent recognition need to be matched.' semantics_desc: 'The knowledge base is retrieved according to the semantic meaning of the problem, and the content matching the meaning of the problem is returned. It is recommended for scenarios where semantics and intent need to be matched.'
retrieval_strategy_setting: 'Retrieval strategy setting' retrieval_strategy_setting: 'Retrieval strategy setting'
retrieval_strategy_setting_desc: 'Set the minimum similarity and the number of results returned' retrieval_strategy_setting_desc: 'Set the minimum similarity and the number of results returned'
minimum_similarity: 'Minimum similarity' minimum_similarity: 'Minimum similarity'
......
...@@ -322,17 +322,19 @@ personal_space_module: ...@@ -322,17 +322,19 @@ personal_space_module:
advanced_setting: '高级设置' advanced_setting: '高级设置'
knowledge_base_setting: '知识库设置' knowledge_base_setting: '知识库设置'
reply: '回复' reply: '回复'
reply_desc: '当用户提问超出知识库范围时,系统支持设置超纲回复,默认由模型自动响应,用户也可自定义答复内容'
reply_to_superclass_question: '超纲问题回复' reply_to_superclass_question: '超纲问题回复'
default_reply: '默认回复' default_reply: '默认回复'
custom_reply: '自定义回复' custom_reply: '自定义回复'
please_enter_custom_content: '请输入自定义内容' please_enter_custom_content: '请输入自定义内容'
knowledge_base_retrieval_strategy: '知识库检索策略' knowledge_base_retrieval_strategy: '知识库检索策略'
knowledge_base_retrieval_strategy_desc: '知识库提供多种检索方法,支持多场景适配,可按需选用'
mix: '混合检索' mix: '混合检索'
mix_desc: '使用关键词检索策略和语义检索策略检索知识库,并返回相关性高的切片内容。推荐在需要兼顾提问关键词和提问语义理解的场景下使用。' mix_desc: '融合问题中的关键词和语义检索,返回高相似度的知识库内容。适用于兼顾问题关键词和语义理解的场景'
keyword: '关键词检索' keyword: '关键词检索'
keyword_desc: '使用关键词检索策略检索知识库,返回与提问中关键字相关度高的切片内容。推荐在需要与提问里关键字精准匹配的场景中使用。' keyword_desc: '通过问题关键词检索知识库,返回高相似度的内容。适用于需要精准匹配关键词的场景'
semantics: '语义检索' semantics: '语义检索'
semantics_desc: '使用语义检索策略检索知识库,返回与提问含义相匹配的切片内容。推荐在需要匹配提问语义相关性和意图识别相关性的场景中使用。' semantics_desc: '根据问题语义检索知识库,返回与问题含义相匹配的内容。推荐在需要匹配语义和意图的场景下使用'
retrieval_strategy_setting: '检索策略设置' retrieval_strategy_setting: '检索策略设置'
retrieval_strategy_setting_desc: '配置最低相似度与匹配结果返回数量' retrieval_strategy_setting_desc: '配置最低相似度与匹配结果返回数量'
minimum_similarity: '最低相似度' minimum_similarity: '最低相似度'
......
...@@ -322,17 +322,19 @@ personal_space_module: ...@@ -322,17 +322,19 @@ personal_space_module:
advanced_setting: '高級設置' advanced_setting: '高級設置'
knowledge_base_setting: '知識庫設置' knowledge_base_setting: '知識庫設置'
reply: '回覆' reply: '回覆'
reply_desc: '當用户提問超出知識庫範圍時,系統支持設置超綱回覆,默認由模型自動響應,用户也可自定義答覆內容'
reply_to_superclass_question: '超綱問題回覆' reply_to_superclass_question: '超綱問題回覆'
default_reply: '默認回覆' default_reply: '默認回覆'
custom_reply: '自定義回覆' custom_reply: '自定義回覆'
please_enter_custom_content: '請輸入自定義內容' please_enter_custom_content: '請輸入自定義內容'
knowledge_base_retrieval_strategy: '知識庫檢索策略' knowledge_base_retrieval_strategy: '知識庫檢索策略'
knowledge_base_retrieval_strategy_desc: '知識庫提供多種檢索方法,支持多場景適配,可按需選用'
mix: '混合檢索' mix: '混合檢索'
mix_desc: '使用關鍵詞檢索策略和語義檢索策略檢索知識庫,並返回相關性高的切片內容。推薦在需要兼顧提問關鍵詞和提問語義理解的場景下使用。' mix_desc: '融合問題中的關鍵詞和語義檢索,返回高相似度的知識庫內容。適用於兼顧問題關鍵詞和語義理解的場景'
keyword: '關鍵詞檢索' keyword: '關鍵詞檢索'
keyword_desc: '使用關鍵詞檢索策略檢索知識庫,返回與提問中關鍵字相關度高的切片內容。推薦在需要與提問裏關鍵字精準匹配的場景中使用。' keyword_desc: '通過問題關鍵詞檢索知識庫,返回高相似度的內容。適用於需要精準匹配關鍵詞的場景'
semantics: '語義檢索' semantics: '語義檢索'
semantics_desc: '使用語義檢索策略檢索知識庫,返回與提問含義相匹配的切片內容。推薦在需要匹配提問語義相關性和意圖識別相關性的場景中使用。' semantics_desc: '根據問題語義檢索知識庫,返回與問題含義相匹配的內容。推薦在需要匹配語義和意圖的場景下使用'
retrieval_strategy_setting: '檢索策略設置' retrieval_strategy_setting: '檢索策略設置'
retrieval_strategy_setting_desc: '配置最低相似度與匹配結果返回數量' retrieval_strategy_setting_desc: '配置最低相似度與匹配結果返回數量'
minimum_similarity: '最低相似度' minimum_similarity: '最低相似度'
......
...@@ -107,6 +107,14 @@ function handleConfirm() { ...@@ -107,6 +107,14 @@ function handleConfirm() {
<div class="font-family-medium"> <div class="font-family-medium">
{{ t('personal_space_module.agent_module.agent_setting_module.agent_config_module.reply') }} {{ t('personal_space_module.agent_module.agent_setting_module.agent_config_module.reply') }}
</div> </div>
<n-popover trigger="hover" class="max-w-[300px]!">
<template #trigger>
<Help theme="outline" size="15" fill="#999" :stroke-width="3" class="mt-[2px] cursor-pointer" />
</template>
<span class="text-xs">
{{ t('personal_space_module.agent_module.agent_setting_module.agent_config_module.reply_desc') }}
</span>
</n-popover>
</div> </div>
<div class="mb-[8px] mt-[12px] flex items-center gap-[20px]"> <div class="mb-[8px] mt-[12px] flex items-center gap-[20px]">
...@@ -156,6 +164,18 @@ function handleConfirm() { ...@@ -156,6 +164,18 @@ function handleConfirm() {
) )
}} }}
</div> </div>
<n-popover trigger="hover" class="max-w-[300px]!">
<template #trigger>
<Help theme="outline" size="15" fill="#999" :stroke-width="3" class="mt-[2px] cursor-pointer" />
</template>
<span class="text-xs">
{{
t(
'personal_space_module.agent_module.agent_setting_module.agent_config_module.knowledge_base_retrieval_strategy_desc',
)
}}
</span>
</n-popover>
</div> </div>
<div class="mt-3 grid grid-cols-3 gap-[18px]"> <div class="mt-3 grid grid-cols-3 gap-[18px]">
...@@ -176,7 +196,7 @@ function handleConfirm() { ...@@ -176,7 +196,7 @@ function handleConfirm() {
> >
{{ item.label }} {{ item.label }}
</n-radio> </n-radio>
<span class="text-font-color mt-2 text-xs">{{ item.desc }}</span> <span class="text-gray-font-color mt-2 text-xs">{{ item.desc }}</span>
</div> </div>
</div> </div>
</article> </article>
......
...@@ -322,11 +322,13 @@ declare namespace I18n { ...@@ -322,11 +322,13 @@ declare namespace I18n {
advanced_setting: string advanced_setting: string
knowledge_base_setting: string knowledge_base_setting: string
reply: string reply: string
reply_desc: string
reply_to_superclass_question: string reply_to_superclass_question: string
default_reply: string default_reply: string
custom_reply: string custom_reply: string
please_enter_custom_content: string please_enter_custom_content: string
knowledge_base_retrieval_strategy: string knowledge_base_retrieval_strategy: string
knowledge_base_retrieval_strategy_desc: string
mix: string mix: string
mix_desc: string mix_desc: string
keyword: string keyword: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment