mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 执行详情增加多路召回
This commit is contained in:
parent
1e710b5ba0
commit
f388cb5695
|
|
@ -41,7 +41,9 @@
|
|||
<h5 class="p-8-12">参数输入</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div>用户问题: {{ item.question || '-' }}</div>
|
||||
<div v-for="(f, i) in item.global_fields" :key="i">{{f.label}}: {{f.value}}</div>
|
||||
<div v-for="(f, i) in item.global_fields" :key="i">
|
||||
{{ f.label }}: {{ f.value }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -165,6 +167,31 @@
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 多路召回 -->
|
||||
<template v-if="item.type == WorkflowType.RrerankerNode">
|
||||
<div class="card-never border-r-4">
|
||||
<h5 class="p-8-12">检索内容</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">{{ item.question || '-' }}</div>
|
||||
</div>
|
||||
<div class="card-never border-r-4 mt-8">
|
||||
<h5 class="p-8-12">检索结果</h5>
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<template v-if="item.paragraph_list?.length > 0">
|
||||
<template
|
||||
v-for="(paragraph, paragraphIndex) in arraySort(
|
||||
item.paragraph_list,
|
||||
'similarity',
|
||||
true
|
||||
)"
|
||||
:key="paragraphIndex"
|
||||
>
|
||||
<ParagraphCard :data="paragraph" :index="paragraphIndex" />
|
||||
</template>
|
||||
</template>
|
||||
<template v-else> - </template>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="card-never border-r-4">
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
label-position="top"
|
||||
require-asterisk-position="right"
|
||||
>
|
||||
<h4 class="title-decoration-1 mb-16">应用信息</h4>
|
||||
<template v-for="(item, key) in configFields[configType]" :key="key">
|
||||
<el-form-item :label="item.label" :prop="key">
|
||||
<el-input v-model="form[configType][key]" :placeholder="item.placeholder" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue