diff --git a/ui/src/views/application/CreateAndSetting.vue b/ui/src/views/application/CreateAndSetting.vue index ba041722f..c18426290 100644 --- a/ui/src/views/application/CreateAndSetting.vue +++ b/ui/src/views/application/CreateAndSetting.vue @@ -102,7 +102,7 @@ @@ -123,7 +123,7 @@
高于 TOP 最多引用字符数
- 取消 + 确认
@@ -267,6 +271,7 @@ +

通过调整提示词内容,可以引导大模型聊天方向,该提示词会被固定在上下文的开头。

@@ -347,8 +352,7 @@ const defaultPrompt = `已知信息: 问题: {question} - ` - +` const createModelRef = ref>() const selectProviderRef = ref>() @@ -396,6 +400,17 @@ const datasetList = ref([]) const dialogFormVisible = ref(false) const model_setting_prompt = ref('') +const dataset_setting = ref({}) + +function datasetSettingChange(val: string) { + if (val === 'open') { + popoverVisible.value = true + dataset_setting.value = cloneDeep(applicationForm.value.dataset_setting) + } else if (val === 'close') { + popoverVisible.value = false + applicationForm.value.dataset_setting = cloneDeep(dataset_setting.value) + } +} function promptChange(val: string) { if (val === 'open') { diff --git a/ui/src/views/hit-test/index.vue b/ui/src/views/hit-test/index.vue index 3b8110b47..944977e77 100644 --- a/ui/src/views/hit-test/index.vue +++ b/ui/src/views/hit-test/index.vue @@ -75,17 +75,15 @@
- +
相似度高于 返回 Top 个分段
- - 确认 + 取消 + 确认
@@ -141,6 +139,7 @@