fix: execution detail missing field

This commit is contained in:
wangdan-fit2cloud 2025-02-26 16:48:23 +08:00
parent 68b9225818
commit 66164e6cde
3 changed files with 8 additions and 2 deletions

View File

@ -454,6 +454,7 @@
:data="paragraph.metadata"
:content="paragraph.page_content"
:index="paragraphIndex"
:score="paragraph.metadata?.relevance_score"
/>
</template>
</template>

View File

@ -9,10 +9,10 @@
<template #icon>
<AppAvatar class="mr-12 avatar-light" :size="22"> {{ index + 1 + '' }}</AppAvatar>
</template>
<div class="active-button primary">{{ data.similarity?.toFixed(3) }}</div>
<div class="active-button primary">{{ score?.toFixed(3) || data.similarity?.toFixed(3) }}</div>
<template #description>
<el-scrollbar height="150">
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn/>
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn />
</el-scrollbar>
</template>
<template #footer>
@ -69,6 +69,10 @@ const props = defineProps({
index: {
type: Number,
default: 0
},
score: {
type: Number,
default: 0
}
})
const isMetaObject = computed(() => typeof props.data.meta === 'object')

View File

@ -14,6 +14,7 @@
label-position="top"
require-asterisk-position="right"
v-loading="loading"
@submit.prevent
>
<el-form-item
:label="$t('views.functionLib.functionForm.form.functionName.label')"