Skip to content

Commit 66164e6

Browse files
fix: execution detail missing field
1 parent 68b9225 commit 66164e6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@
454454
:data="paragraph.metadata"
455455
:content="paragraph.page_content"
456456
:index="paragraphIndex"
457+
:score="paragraph.metadata?.relevance_score"
457458
/>
458459
</template>
459460
</template>

ui/src/components/ai-chat/component/ParagraphCard.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<template #icon>
1010
<AppAvatar class="mr-12 avatar-light" :size="22"> {{ index + 1 + '' }}</AppAvatar>
1111
</template>
12-
<div class="active-button primary">{{ data.similarity?.toFixed(3) }}</div>
12+
<div class="active-button primary">{{ score?.toFixed(3) || data.similarity?.toFixed(3) }}</div>
1313
<template #description>
1414
<el-scrollbar height="150">
15-
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn/>
15+
<MdPreview ref="editorRef" editorId="preview-only" :modelValue="content" noImgZoomIn />
1616
</el-scrollbar>
1717
</template>
1818
<template #footer>
@@ -69,6 +69,10 @@ const props = defineProps({
6969
index: {
7070
type: Number,
7171
default: 0
72+
},
73+
score: {
74+
type: Number,
75+
default: 0
7276
}
7377
})
7478
const isMetaObject = computed(() => typeof props.data.meta === 'object')

ui/src/views/function-lib/component/FunctionFormDrawer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
label-position="top"
1515
require-asterisk-position="right"
1616
v-loading="loading"
17+
@submit.prevent
1718
>
1819
<el-form-item
1920
:label="$t('views.functionLib.functionForm.form.functionName.label')"

0 commit comments

Comments
 (0)