mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: 应用设置增加提示词
This commit is contained in:
parent
9c26d551a9
commit
8e1f676d82
|
|
@ -11,5 +11,6 @@ export enum modelType {
|
|||
EMBEDDING = '向量模型',
|
||||
LLM = '大语言模型',
|
||||
STT = '语音识别',
|
||||
TTS = '语音合成'
|
||||
TTS = '语音合成',
|
||||
RERANKER = '重排模型'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -168,13 +168,18 @@
|
|||
>
|
||||
<template #label>
|
||||
<div class="flex align-center">
|
||||
<div class="flex-between mr-4">
|
||||
<span
|
||||
>{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||
(无引用知识库)
|
||||
<span class="danger" v-if="applicationForm.model_id">*</span>
|
||||
</span>
|
||||
</div>
|
||||
<span class="mr-4"
|
||||
>{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||
(无引用知识库)
|
||||
</span>
|
||||
<el-tooltip
|
||||
effect="dark"
|
||||
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>
|
||||
</template>
|
||||
|
||||
|
|
@ -273,13 +278,18 @@
|
|||
>
|
||||
<template #label>
|
||||
<div class="flex align-center">
|
||||
<div class="flex-between mr-4">
|
||||
<span>
|
||||
{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||
(引用知识库)
|
||||
<span class="danger" v-if="applicationForm.model_id">*</span>
|
||||
</span>
|
||||
</div>
|
||||
<span class="mr-4">
|
||||
{{ $t('views.application.applicationForm.form.prompt.label') }}
|
||||
(引用知识库)
|
||||
</span>
|
||||
<el-tooltip
|
||||
effect="dark"
|
||||
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>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -107,11 +107,11 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="AI 模型"
|
||||
label="重排模型"
|
||||
prop="reranker_model_id"
|
||||
:rules="{
|
||||
required: true,
|
||||
message: '请选择 AI 模型',
|
||||
message: '请选择重排模型',
|
||||
trigger: 'change'
|
||||
}"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue