fix: execution detail missing field
This commit is contained in:
parent
68b9225818
commit
66164e6cde
@ -454,6 +454,7 @@
|
|||||||
:data="paragraph.metadata"
|
:data="paragraph.metadata"
|
||||||
:content="paragraph.page_content"
|
:content="paragraph.page_content"
|
||||||
:index="paragraphIndex"
|
:index="paragraphIndex"
|
||||||
|
:score="paragraph.metadata?.relevance_score"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -9,10 +9,10 @@
|
|||||||
<template #icon>
|
<template #icon>
|
||||||
<AppAvatar class="mr-12 avatar-light" :size="22"> {{ index + 1 + '' }}</AppAvatar>
|
<AppAvatar class="mr-12 avatar-light" :size="22"> {{ index + 1 + '' }}</AppAvatar>
|
||||||
</template>
|
</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>
|
<template #description>
|
||||||
<el-scrollbar height="150">
|
<el-scrollbar height="150">
|
||||||
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn/>
|
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn />
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@ -69,6 +69,10 @@ const props = defineProps({
|
|||||||
index: {
|
index: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 0
|
default: 0
|
||||||
|
},
|
||||||
|
score: {
|
||||||
|
type: Number,
|
||||||
|
default: 0
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const isMetaObject = computed(() => typeof props.data.meta === 'object')
|
const isMetaObject = computed(() => typeof props.data.meta === 'object')
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
label-position="top"
|
label-position="top"
|
||||||
require-asterisk-position="right"
|
require-asterisk-position="right"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
|
@submit.prevent
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('views.functionLib.functionForm.form.functionName.label')"
|
:label="$t('views.functionLib.functionForm.form.functionName.label')"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user