|
|
@@ -68,7 +68,7 @@
|
|
|
<!-- <a-option value="1">英文</a-option>-->
|
|
|
<!-- </a-select>-->
|
|
|
<!-- </a-form-item>-->
|
|
|
- <a-form-item field="section" label="嵌入模型">
|
|
|
+ <a-form-item field="embd_id" label="嵌入模型">
|
|
|
<a-space direction="vertical" size="large">
|
|
|
<a-select :size="'large'" v-model="form.embd_id" :style="{width:'100%'}" placeholder="请选择 ..." :disabled="kbObj.chunk_num==0 && kbObj.token_num==0" allow-clear>
|
|
|
<a-optgroup :label="index" v-for="(item,index) in modelList" :key=index>
|
|
|
@@ -236,6 +236,24 @@ const rules = {
|
|
|
message:'知识库名称不允许为空',
|
|
|
},
|
|
|
],
|
|
|
+ embd_id: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message:'请选择',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ parser_id: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message:'请选择',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ prompt: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message:'提示词不允许为空',
|
|
|
+ },
|
|
|
+ ],
|
|
|
}
|
|
|
|
|
|
|