diff --git a/ui/src/components/app-table/index.vue b/ui/src/components/app-table/index.vue
index 5884f2577..f691609f6 100644
--- a/ui/src/components/app-table/index.vue
+++ b/ui/src/components/app-table/index.vue
@@ -103,7 +103,7 @@ function submitHandle() {
loading.value = false
}, 200)
} else {
- MsgError(`${props.quickCreateName}${t('dynamicsForm.tip.requiredMessage')}`)
+ MsgError(`${props.quickCreateName} ${t('dynamicsForm.tip.requiredMessage')}`)
}
}
diff --git a/ui/src/components/dynamics-form/FormItem.vue b/ui/src/components/dynamics-form/FormItem.vue
index a00751d61..83297ccff 100644
--- a/ui/src/components/dynamics-form/FormItem.vue
+++ b/ui/src/components/dynamics-form/FormItem.vue
@@ -105,8 +105,8 @@ const errMsg = computed(() => {
return props_info.value.err_msg
? props_info.value.err_msg
: isString(props.formfield.label)
- ? props.formfield.label + t('dynamicsForm.tip.requiredMessage')
- : props.formfield.label.label + t('dynamicsForm.tip.requiredMessage')
+ ? props.formfield.label + ' ' + t('dynamicsForm.tip.requiredMessage')
+ : props.formfield.label.label + ' ' + t('dynamicsForm.tip.requiredMessage')
})
/**
* 反序列化
diff --git a/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue b/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue
index 4fdd4e01e..942e11445 100644
--- a/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue
+++ b/ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue
@@ -40,7 +40,12 @@
-
+
{
props_info: {
rules: [
{
- message: formValue.value.label + t('dynamicsForm.tip.requiredMessage'),
+ message: formValue.value.label + ' ' + t('dynamicsForm.tip.requiredMessage'),
trigger: 'blur',
required: formValue.value.required
}
diff --git a/ui/src/components/generate-related-dialog/index.vue b/ui/src/components/generate-related-dialog/index.vue
index d9a6d36ec..3df5e8380 100644
--- a/ui/src/components/generate-related-dialog/index.vue
+++ b/ui/src/components/generate-related-dialog/index.vue
@@ -19,9 +19,9 @@
-
{{ $t('views.document.setting.generateQuestion.tip1', { data: '{data}' }) }}
-
{{ $t('views.document.setting.generateQuestion.tip2') }}
-
{{ $t('views.document.setting.generateQuestion.tip3') }}
+
{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}
+
{{ $t('views.document.generateQuestion.tip2') }}
+
{{ $t('views.document.generateQuestion.tip3') }}
{
if (apiType.value === 'paragraph') {
const data = { ...form.value, paragraph_id_list: idList.value }
paragraphApi.batchGenerateRelated(id, documentId, data, loading).then(() => {
- MsgSuccess(t('views.document.setting.generateQuestion.successMessage'))
+ MsgSuccess(t('views.document.generateQuestion.successMessage'))
emit('refresh')
dialogVisible.value = false
})
} else if (apiType.value === 'document') {
const data = { ...form.value, document_id_list: idList.value }
documentApi.batchGenerateRelated(id, data, loading).then(() => {
- MsgSuccess(t('views.document.setting.generateQuestion.successMessage'))
+ MsgSuccess(t('views.document.generateQuestion.successMessage'))
emit('refresh')
dialogVisible.value = false
})
diff --git a/ui/src/layout/components/top-bar/avatar/ResetPassword.vue b/ui/src/layout/components/top-bar/avatar/ResetPassword.vue
index 313925851..7c1c96253 100644
--- a/ui/src/layout/components/top-bar/avatar/ResetPassword.vue
+++ b/ui/src/layout/components/top-bar/avatar/ResetPassword.vue
@@ -1,7 +1,7 @@
diff --git a/ui/src/locales/lang/en-US/ai-chat.ts b/ui/src/locales/lang/en-US/ai-chat.ts
index d581b1599..3a261cad5 100644
--- a/ui/src/locales/lang/en-US/ai-chat.ts
+++ b/ui/src/locales/lang/en-US/ai-chat.ts
@@ -67,7 +67,7 @@ export default {
title: 'Execution Details',
paramInput: 'Parameter Input',
paramOutput: 'Parameter Output',
- paramOutputTooltip: 'Each document supports preview of up to 500 characters',
+ paramOutputTooltip: 'Each document supports preview of up to 500 words',
audioFile: 'Audio File',
searchContent: 'Search Content',
searchResult: 'Search Results',
@@ -91,7 +91,7 @@ export default {
consumeTime: 'Time Consumed'
},
paragraphSource: {
- title: 'Knowledge Base Reference',
+ title: 'Knowledge Reference',
question: 'User Question',
optimizationQuestion: 'Optimized Question'
}
diff --git a/ui/src/locales/lang/en-US/common.ts b/ui/src/locales/lang/en-US/common.ts
index e354debdf..594e8b693 100644
--- a/ui/src/locales/lang/en-US/common.ts
+++ b/ui/src/locales/lang/en-US/common.ts
@@ -27,7 +27,7 @@ export default {
createDate: 'Create date',
createTime: 'Create time',
operation: 'Operation',
- character: 'characters',
+ character: 'words',
export: 'Export',
exportSuccess: 'Export successful',
unavailable: '(Unavailable)',
diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts
index d80ecfa6b..8c3b65622 100644
--- a/ui/src/locales/lang/en-US/views/application-workflow.ts
+++ b/ui/src/locales/lang/en-US/views/application-workflow.ts
@@ -164,7 +164,7 @@ Please output an optimized question.`,
},
higher: 'Higher',
ScoreTooltip: 'The higher the Score, the stronger the relevance.',
- max_paragraph_char_number: 'Maximum number of characters to quote',
+ max_paragraph_char_number: 'Maximum number of words to quote',
reranker_model: {
label: 'Rerank',
placeholder: 'Please select a Rerank'
diff --git a/ui/src/locales/lang/en-US/views/application.ts b/ui/src/locales/lang/en-US/views/application.ts
index e0852c0a7..6496479ca 100644
--- a/ui/src/locales/lang/en-US/views/application.ts
+++ b/ui/src/locales/lang/en-US/views/application.ts
@@ -127,11 +127,12 @@ export default {
hybridSearchTooltip:
'Hybrid search is a retrieval method based on both vector and text similarity, suitable for medium data volumes in the knowledge.',
similarityThreshold: 'Similarity Threshold',
+ similarityTooltip: 'The higher the similarity, the stronger the correlation。',
topReferences: 'Top N References',
- maxCharacters: 'Maximum Characters per Reference',
+ maxCharacters: 'Maximum words per Reference',
noReferencesAction: 'When there are no knowledge references',
- continueQuestioning: 'Continue Questioning AI Model',
- provideAnswer: 'Provide a Specific Answer',
+ continueQuestioning: 'Continue to ask questions to the Al model',
+ provideAnswer: 'Provide a specific answer',
designated_answer:
'Hello, I am XXX Assistant. My knowledge only contains information related to XXX products. Please rephrase your question.',
defaultPrompt1:
diff --git a/ui/src/locales/lang/en-US/views/dataset.ts b/ui/src/locales/lang/en-US/views/dataset.ts
index 76efbe2ce..eb22cac8f 100644
--- a/ui/src/locales/lang/en-US/views/dataset.ts
+++ b/ui/src/locales/lang/en-US/views/dataset.ts
@@ -3,7 +3,9 @@ export default {
createDataset: 'Create Knowledge',
general: 'General',
web: 'Web Site',
- relatedApplications: 'Related App',
+ relatedApplications: 'Linked App',
+ document_count: 'docs',
+ relatedApp_count: 'linked apps',
searchBar: {
placeholder: 'Search by name'
},
diff --git a/ui/src/locales/lang/en-US/views/document.ts b/ui/src/locales/lang/en-US/views/document.ts
index 1c7d086c7..655561e8a 100644
--- a/ui/src/locales/lang/en-US/views/document.ts
+++ b/ui/src/locales/lang/en-US/views/document.ts
@@ -80,7 +80,7 @@ export default {
},
with_filter: {
label: 'Auto Clean',
- text: 'Remove duplicate extra symbols, spaces, blank lines, and tab characters.'
+ text: 'Remove duplicate extra symbols, spaces, blank lines, and tab words.'
},
checkedConnect: {
label:
@@ -95,7 +95,7 @@ export default {
},
table: {
name: 'File Name',
- char_length: 'Character',
+ char_length: 'words',
paragraph: 'Segment',
all: 'All',
updateTime: 'Update Time'
@@ -166,7 +166,11 @@ export default {
title: 'Generate Questions',
successMessage: 'Question generation successful',
tip1: 'The {data} in the prompt is a placeholder for segmented content, which is replaced by the segmented content when executed and sent to the AI model;',
- tip2: 'The AI model generates relevant questions based on the segmented content. Please place the generated questions within the tags, and the system will automatically associate the questions within these tags;',
- tip3: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.'
+ tip2: 'The AI model generates relevant questions based on the segmented content. Please place the generated questions within the <question></question> tags, and the system will automatically associate the questions within these tags;',
+ tip3: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.',
+ prompt:`Content: {data}\n
+ \n
+ Please summarize the above content and generate a summary based on the content 5 a question. \n
+ Answer requirements: \n - Please output only questions; \n - Please place each question in<question></question>tag.`
}
}
diff --git a/ui/src/locales/lang/en-US/views/login.ts b/ui/src/locales/lang/en-US/views/login.ts
index f6033ef2b..dc2edba57 100644
--- a/ui/src/locales/lang/en-US/views/login.ts
+++ b/ui/src/locales/lang/en-US/views/login.ts
@@ -2,7 +2,7 @@ export default {
title: 'Login',
jump_tip: 'You will be redirected to the authentication source page for authentication',
jump: 'Redirect',
- resetPassword: 'Reset Password',
+ resetPassword: 'Change Password',
forgotPassword: 'Forgot Password',
userRegister: 'User Registration',
buttons: {
diff --git a/ui/src/locales/lang/en-US/views/paragraph.ts b/ui/src/locales/lang/en-US/views/paragraph.ts
index 5da3177b9..396ca2661 100644
--- a/ui/src/locales/lang/en-US/views/paragraph.ts
+++ b/ui/src/locales/lang/en-US/views/paragraph.ts
@@ -3,7 +3,7 @@ export default {
editParagraph: 'Edit Paragraph',
addParagraph: 'Add Paragraph',
paragraphDetail: 'Paragraph Details',
- character_count: 'characters',
+ character_count: 'words',
setting: {
batchSelected: 'Batch Select',
cancelSelected: 'Cancel Selection'
@@ -25,7 +25,7 @@ export default {
label: 'Paragraph Content',
placeholder: 'Please enter the paragraph content',
requiredMessage1: 'Please enter the paragraph content',
- requiredMessage2: 'Content must not exceed 100,000 characters'
+ requiredMessage2: 'Content must not exceed 100,000 words'
}
}
}
diff --git a/ui/src/locales/lang/en-US/views/template.ts b/ui/src/locales/lang/en-US/views/template.ts
index efafe3718..2417bd584 100644
--- a/ui/src/locales/lang/en-US/views/template.ts
+++ b/ui/src/locales/lang/en-US/views/template.ts
@@ -53,7 +53,7 @@ export default {
permissionType: {
label: 'Permission',
privateDesc: 'Only the current user can use',
- publicDesc: 'All users can use, but cannot be edited',
+ publicDesc: 'All users can use, but can not be edited',
requiredMessage: 'Permission cannot be empty'
},
model_type: {
diff --git a/ui/src/locales/lang/en-US/views/user.ts b/ui/src/locales/lang/en-US/views/user.ts
index 1ca59202e..10b0e5bf1 100644
--- a/ui/src/locales/lang/en-US/views/user.ts
+++ b/ui/src/locales/lang/en-US/views/user.ts
@@ -26,7 +26,7 @@ export default {
label: 'Username',
placeholder: 'Please enter username',
requiredMessage: 'Please enter username',
- lengthMessage: 'Length must be between 6 and 20 characters'
+ lengthMessage: 'Length must be between 6 and 20 words'
},
nick_name: {
label: 'Name',
@@ -45,7 +45,7 @@ export default {
label: 'Login Password',
placeholder: 'Please enter password',
requiredMessage: 'Please enter password',
- lengthMessage: 'Length must be between 6 and 20 characters'
+ lengthMessage: 'Length must be between 6 and 20 words'
},
new_password: {
label: 'New Password',
diff --git a/ui/src/locales/lang/zh-CN/views/dataset.ts b/ui/src/locales/lang/zh-CN/views/dataset.ts
index 8e41a0b7d..fd433c3e1 100644
--- a/ui/src/locales/lang/zh-CN/views/dataset.ts
+++ b/ui/src/locales/lang/zh-CN/views/dataset.ts
@@ -4,6 +4,8 @@ export default {
general: '通用型',
web: 'web 站点',
relatedApplications: '关联应用',
+ document_count: '文档数',
+ relatedApp_count: '关联应用',
searchBar: {
placeholder: '按名称搜索'
},
@@ -78,5 +80,5 @@ export default {
complete: '整体同步',
completeText: '先删除本地知识库所有文档,重新获取 Web 站点文档',
tip: '注意:所有同步都会删除已有数据重新获取新数据,请谨慎操作。'
- },
+ }
}
diff --git a/ui/src/locales/lang/zh-CN/views/document.ts b/ui/src/locales/lang/zh-CN/views/document.ts
index fe237ff59..c00fa4f7e 100644
--- a/ui/src/locales/lang/zh-CN/views/document.ts
+++ b/ui/src/locales/lang/zh-CN/views/document.ts
@@ -163,6 +163,12 @@ export default {
successMessage: '生成问题成功',
tip1: '提示词中的 {data} 为分段内容的占位符,执行时替换为分段内容发送给 AI 模型;',
tip2: 'AI 模型根据分段内容生成相关问题,请将生成的问题放至<question></question>标签中,系统会自动关联标签中的问题;',
- tip3: '生成效果依赖于所选模型和提示词,用户可自行调整至最佳效果。'
+ tip3: '生成效果依赖于所选模型和提示词,用户可自行调整至最佳效果。',
+ prompt:`内容:{data}\n
+ \n
+ 请总结上面的内容,并根据内容总结生成 5 个问题。\n
+ 回答要求:\n
+ - 请只输出问题;\n
+ - 请将每个问题放置<question></question>标签中。`
}
}
diff --git a/ui/src/locales/lang/zh-Hant/views/dataset.ts b/ui/src/locales/lang/zh-Hant/views/dataset.ts
index d3105da6a..8ad1ca2c3 100644
--- a/ui/src/locales/lang/zh-Hant/views/dataset.ts
+++ b/ui/src/locales/lang/zh-Hant/views/dataset.ts
@@ -4,6 +4,8 @@ export default {
general: '通用型',
web: 'Web 站點',
relatedApplications: '關聯應用',
+ document_count: '文檔數',
+ relatedApp_count: '關聯應用',
searchBar: {
placeholder: '按名稱搜尋'
},
diff --git a/ui/src/locales/lang/zh-Hant/views/document.ts b/ui/src/locales/lang/zh-Hant/views/document.ts
index 977c29302..9fcecc574 100644
--- a/ui/src/locales/lang/zh-Hant/views/document.ts
+++ b/ui/src/locales/lang/zh-Hant/views/document.ts
@@ -163,7 +163,11 @@ export default {
title: '生成問題',
successMessage: '生成問題成功',
tip1: '提示詞中的 {data} 為分段內容的佔位符,執行時替換為分段內容並發送給 AI 模型;',
- tip2: 'AI 模型根據分段內容生成相關問題,請將生成的問題放置於 標籤中,系統會自動關聯標籤中的問題;',
- tip3: '生成效果取決於所選模型和提示詞,用戶可自行調整至最佳效果。'
+ tip2: 'AI 模型根據分段內容生成相關問題,請將生成的問題放置於<question></question> 標籤中,系統會自動關聯標籤中的問題;',
+ tip3: '生成效果取決於所選模型和提示詞,用戶可自行調整至最佳效果。',
+ prompt:`內容:{data}\n
+ \n
+ 請總結上面的內容,並根據內容總結生成 5 個問題。 \n
+ 回答要求:\n - 請只輸出問題;\n - 請將每個問題放置在<question></question>標籤中。`
}
}
diff --git a/ui/src/stores/modules/prompt.ts b/ui/src/stores/modules/prompt.ts
index ec4be979d..37bc6b132 100644
--- a/ui/src/stores/modules/prompt.ts
+++ b/ui/src/stores/modules/prompt.ts
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
-
+import { t } from '@/locales'
export interface promptTypes {
user: string
formValue: { model_id: string, prompt: string }
@@ -26,12 +26,7 @@ const usePromptStore = defineStore({
}
return {
model_id: '',
- prompt: '内容:{data}\n' +
- '\n' +
- '请总结上面的内容,并根据内容总结生成 5 个问题。\n' +
- '回答要求:\n' +
- '- 请只输出问题;\n' +
- '- 请将每个问题放置标签中。'
+ prompt: t('views.document.generateQuestion.prompt', { data: '{data}' })
}
}
}
diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss
index f9baa7a9b..50d43fb2d 100644
--- a/ui/src/styles/app.scss
+++ b/ui/src/styles/app.scss
@@ -133,6 +133,9 @@ h5 {
.max-w-200 {
max-width: 200px;
}
+.max-w-350 {
+ max-width: 350px;
+}
.mt-4 {
margin-top: calc(var(--app-base-px) - 4px);
diff --git a/ui/src/views/application/ApplicationSetting.vue b/ui/src/views/application/ApplicationSetting.vue
index 68fe28b34..bf7cf01f9 100644
--- a/ui/src/views/application/ApplicationSetting.vue
+++ b/ui/src/views/application/ApplicationSetting.vue
@@ -121,6 +121,7 @@
})
"
placement="right"
+ popper-class="max-w-350"
>
@@ -247,6 +248,7 @@
question: '{question}'
})
"
+ popper-class="max-w-350"
placement="right"
>
@@ -291,9 +293,13 @@
-
{{
- $t('views.application.applicationForm.form.voiceInput.autoSend')
- }}
+
{{
+ $t('views.application.applicationForm.form.voiceInput.autoSend')
+ }}
- {{
- $t('views.application.applicationForm.form.voicePlay.autoPlay')
- }}
+ {{
+ $t('views.application.applicationForm.form.voicePlay.autoPlay')
+ }}
-
+
{{ $t('common.exprt') }} Markdown{{ $t('common.export') }} Markdown
{{ $t('common.exprt') }} HTML{{ $t('common.export') }} HTML
diff --git a/ui/src/views/dataset/component/CreateDatasetDialog.vue b/ui/src/views/dataset/component/CreateDatasetDialog.vue
index d0334d5d6..bf8c8cd55 100644
--- a/ui/src/views/dataset/component/CreateDatasetDialog.vue
+++ b/ui/src/views/dataset/component/CreateDatasetDialog.vue
@@ -2,7 +2,7 @@
- {{ $t('views.document.setRules.buttons.preview') }}
+ {{ $t('views.document.buttons.preview') }}
diff --git a/ui/src/views/dataset/index.vue b/ui/src/views/dataset/index.vue
index 42000716d..209841683 100644
--- a/ui/src/views/dataset/index.vue
+++ b/ui/src/views/dataset/index.vue
@@ -85,11 +85,11 @@