diff --git a/ui/src/components/generate-related-dialog/index.vue b/ui/src/components/generate-related-dialog/index.vue index 38e86f79..8c3a3e1d 100644 --- a/ui/src/components/generate-related-dialog/index.vue +++ b/ui/src/components/generate-related-dialog/index.vue @@ -20,7 +20,10 @@

{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}

-

{{ $t('views.document.generateQuestion.tip2')+ '' + $t('views.document.generateQuestion.tip3') }}

+

+ {{ $t('views.document.generateQuestion.tip2')+ '' + + $t('views.document.generateQuestion.tip3') }} +

{{ $t('views.document.generateQuestion.tip4') }}

@@ -105,6 +108,13 @@ const rules = reactive({ ] }) +watch(dialogVisible, (bool) => { + if (!bool) { + form.value = prompt.get(userId) + FormRef.value?.clearValidate() + } +}) + const open = (ids: string[], type: string) => { getModel() idList.value = ids diff --git a/ui/src/locales/lang/en-US/views/dataset.ts b/ui/src/locales/lang/en-US/views/dataset.ts index 62e48785..664229ad 100644 --- a/ui/src/locales/lang/en-US/views/dataset.ts +++ b/ui/src/locales/lang/en-US/views/dataset.ts @@ -44,7 +44,7 @@ export default { EmbeddingModel: { label: 'Embedding Model', placeholder: 'Please select a embedding model', - requiredMessage: 'Please enter the embedding model' + requiredMessage: 'Please select the embedding model' }, datasetType: { label: 'Knowledge Type', diff --git a/ui/src/locales/lang/en-US/views/document.ts b/ui/src/locales/lang/en-US/views/document.ts index 70391170..aec942aa 100644 --- a/ui/src/locales/lang/en-US/views/document.ts +++ b/ui/src/locales/lang/en-US/views/document.ts @@ -84,7 +84,7 @@ export default { }, checkedConnect: { label: - 'Add segment titles as associated questions during import (Applicable for QA pairs where titles are questions)' + 'Add "Related Questions" section for question-based QA pairs during import.' } }, buttons: { @@ -126,7 +126,7 @@ export default { }, delete: { confirmTitle1: 'Confirm batch deletion of', - confirmTitle2: 'Documents?', + confirmTitle2: 'documents?', confirmMessage: 'Segments within the selected documents will also be deleted. Please proceed with caution.', successMessage: 'Batch deletion successful', @@ -145,7 +145,7 @@ export default { placeholder: 'Default is body, you can input .classname/#idname/tagname' }, hit_handling_method: { - label: 'Hit Handling Method', + label: 'Retrieve-Respond', tooltip: 'When user asks a question, handle matched segments according to the set method.' }, similarity: { diff --git a/ui/src/locales/lang/en-US/views/problem.ts b/ui/src/locales/lang/en-US/views/problem.ts index 5af53b4a..bde906ba 100644 --- a/ui/src/locales/lang/en-US/views/problem.ts +++ b/ui/src/locales/lang/en-US/views/problem.ts @@ -3,7 +3,7 @@ export default { createProblem: 'Create Question', detailProblem: 'Question Details', quickCreateProblem: 'Quick Create Question', - quickCreateName: 'Question', + quickCreateName: 'question', tip: { placeholder: 'Enter the question, support multiple entries, one per line.', errorMessage: 'Question cannot be empty!', @@ -19,7 +19,7 @@ export default { placeholder: 'Search by name' }, table: { - paragraph_count: 'Number of Associated Paragraphs', + paragraph_count: 'Associated Paragraphs', updateTime: 'Update Time' }, delete: { diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index d8862de5..909701b1 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -205,7 +205,7 @@ - +