mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: execution detail missing field
This commit is contained in:
parent
68b9225818
commit
66164e6cde
|
|
@ -454,6 +454,7 @@
|
|||
:data="paragraph.metadata"
|
||||
:content="paragraph.page_content"
|
||||
:index="paragraphIndex"
|
||||
:score="paragraph.metadata?.relevance_score"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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')"
|
||||
|
|
|
|||
Loading…
Reference in New Issue