perf: 应用设置增加提示词
This commit is contained in:
parent
9c26d551a9
commit
8e1f676d82
@ -11,5 +11,6 @@ export enum modelType {
|
|||||||
EMBEDDING = '向量模型',
|
EMBEDDING = '向量模型',
|
||||||
LLM = '大语言模型',
|
LLM = '大语言模型',
|
||||||
STT = '语音识别',
|
STT = '语音识别',
|
||||||
TTS = '语音合成'
|
TTS = '语音合成',
|
||||||
|
RERANKER = '重排模型'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -168,13 +168,18 @@
|
|||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<div class="flex-between mr-4">
|
<span class="mr-4"
|
||||||
<span
|
>{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||||
>{{ $t('views.application.applicationForm.form.prompt.label') }}
|
(无引用知识库)
|
||||||
(无引用知识库)
|
</span>
|
||||||
<span class="danger" v-if="applicationForm.model_id">*</span>
|
<el-tooltip
|
||||||
</span>
|
effect="dark"
|
||||||
</div>
|
content="通过调整提示词内容,可以引导大模型聊天方向,该提示词会被固定在上下文的开头。可以使用变量:{question} 是用户提出问题的占位符。"
|
||||||
|
placement="right"
|
||||||
|
>
|
||||||
|
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
|
||||||
|
</el-tooltip>
|
||||||
|
<span class="danger ml-4" v-if="applicationForm.model_id">*</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -273,13 +278,18 @@
|
|||||||
>
|
>
|
||||||
<template #label>
|
<template #label>
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
<div class="flex-between mr-4">
|
<span class="mr-4">
|
||||||
<span>
|
{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||||
{{ $t('views.application.applicationForm.form.prompt.label') }}
|
(引用知识库)
|
||||||
(引用知识库)
|
</span>
|
||||||
<span class="danger" v-if="applicationForm.model_id">*</span>
|
<el-tooltip
|
||||||
</span>
|
effect="dark"
|
||||||
</div>
|
content="通过调整提示词内容,可以引导大模型聊天方向,该提示词会被固定在上下文的开头。可以使用变量:{data} 是引用知识库中分段的占位符;{question} 是用户提出问题的占位符。"
|
||||||
|
placement="right"
|
||||||
|
>
|
||||||
|
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
|
||||||
|
</el-tooltip>
|
||||||
|
<span class="danger ml-4" v-if="applicationForm.model_id">*</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@ -107,11 +107,11 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="AI 模型"
|
label="重排模型"
|
||||||
prop="reranker_model_id"
|
prop="reranker_model_id"
|
||||||
:rules="{
|
:rules="{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请选择 AI 模型',
|
message: '请选择重排模型',
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user